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 InternalName in the collection. This is the same as get_name(), but it may be a more convenient way to access it.

__iadd__()
__init__()
add_name()

Adds a new InternalName to the collection.

add_names_from()

Adds all the InternalNames indicated 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 InternalNames from the collection.

get_name()

Returns the nth InternalName in the collection.

get_names() → list
get_num_names()

Returns the number of InternalNames in the collection.

has_name()

Returns true if the indicated InternalName appears in this collection, false otherwise.

output()

Writes a brief one-line description of the InternalNameCollection to the indicated output stream.

remove_duplicate_names()

Removes any duplicate entries of the same InternalNames on this collection. If a InternalName appears multiple times, the first appearance is retained; subsequent appearances are removed.

remove_name()

Removes the indicated InternalName from 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 InternalNames listed 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 InternalNameCollection to the indicated output stream.