InternalNameCollection¶
from acron.core import InternalNameCollection
- class InternalNameCollection¶
Bases:
Inheritance diagram
digraph inheritance2f936a145e { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "InternalNameCollection" [URL="acron.core.InternalNameCollection.html#acron.core.InternalNameCollection",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "InternalNameCollection" [arrowsize=0.75,style=""]; }- __add__()¶
- __getitem__()¶
Returns the nth
InternalNamein the collection. This is the same asget_name(), but it may be a more convenient way to access it.
- __iadd__()¶
- __init__()¶
- add_name()¶
Adds a new
InternalNameto the collection.
- add_names_from()¶
Adds all the
InternalNamesindicated in the other collection to this name. The other names are simply appended to the end of the names in this list; duplicates are not automatically removed.
- assign()¶
- clear()¶
Removes all
InternalNamesfrom the collection.
- get_name()¶
Returns the nth
InternalNamein the collection.
- get_num_names()¶
Returns the number of
InternalNamesin the collection.
- has_name()¶
Returns true if the indicated
InternalNameappears in this collection, false otherwise.
- output()¶
Writes a brief one-line description of the
InternalNameCollectionto the indicated output stream.
- remove_duplicate_names()¶
Removes any duplicate entries of the same
InternalNameson this collection. If aInternalNameappears multiple times, the first appearance is retained; subsequent appearances are removed.
- remove_name()¶
Removes the indicated
InternalNamefrom the collection. Returns true if the name was removed, false if it was not a member of the collection.
- remove_names_from()¶
Removes from this collection all of the
InternalNameslisted in the other collection.
- size()¶
Returns the number of names in the collection. This is the same thing as
get_num_names().
- write()¶
Writes a complete multi-line description of the
InternalNameCollectionto the indicated output stream.