# InternalNameCollection

from pandac.PandaModules import InternalNameCollection

Class : InternalNameCollection
Description :

## Inheritance:

InternalNameCollection:

## Methods of InternalNameCollection:

InternalNameCollection (Constructor)
addName
addNamesFrom
clear
getName
getNumNames
hasName
operator +
operator +=
operator =
operator []
output
removeDuplicateNames
removeName
removeNamesFrom
size
write

InternalNameCollection InternalNameCollection::InternalNameCollection(void); Description:

addName void InternalNameCollection::add_name(InternalName *name); Description: Adds a new InternalName to the collection.

addNamesFrom void InternalNameCollection::add_names_from(InternalNameCollection const &other); Description: 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.

clear void InternalNameCollection::clear(void); Description: Removes all InternalNames from the collection.

getName InternalName *InternalNameCollection::get_name(int index) const; Description: Returns the nth InternalName in the collection.

getNumNames int InternalNameCollection::get_num_names(void) const; Description: Returns the number of InternalNames in the collection.

hasName bool InternalNameCollection::has_name(InternalName *name) const; Description: Returns true if the indicated InternalName appears in this collection, false otherwise.

operator + InternalNameCollection InternalNameCollection::operator +(InternalNameCollection const &other) const; Description: Returns a InternalNameCollection representing the concatenation of the two lists.

operator += void InternalNameCollection::operator +=(InternalNameCollection const &other); Description: Appends the other list onto the end of this one.

operator = void InternalNameCollection::operator =(InternalNameCollection const &copy); Description:

operator [] InternalName *InternalNameCollection::operator [](int index) const; Description: 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.

output void InternalNameCollection::output(ostream &out) const; Description: Writes a brief one-line description of the InternalNameCollection to the indicated output stream.

removeDuplicateNames void InternalNameCollection::remove_duplicate_names(void); Description: 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.

removeName bool InternalNameCollection::remove_name(InternalName *name); Description: Removes the indicated InternalName from the collection. Returns true if the name was removed, false if it was not a member of the collection.

removeNamesFrom void InternalNameCollection::remove_names_from(InternalNameCollection const &other); Description: Removes from this collection all of the InternalNames listed in the other collection.

size int InternalNameCollection::size(void) const; Description: Returns the number of names in the collection. This is the same thing as get_num_names().

write void InternalNameCollection::write(ostream &out, int indent_level = (0)) const; Description: Writes a complete multi-line description of the InternalNameCollection to the indicated output stream.