Panda3D
|
#include <pandadoc.hpp>
Public Member Functions | |
__init__ () | |
__init__ (const InternalNameCollection copy) | |
addName (const InternalName name) | |
Adds a new InternalName to the collection. | |
addNamesFrom (const InternalNameCollection other) | |
Adds all the InternalNames indicated in the other collection to this name. | |
clear () | |
Removes all InternalNames from the collection. | |
const InternalName | getName (int index) |
Returns the nth InternalName in the collection. | |
list | getNames () |
int | getNumNames () |
Returns the number of InternalNames in the collection. | |
bool | hasName (const InternalName name) |
Returns true if the indicated InternalName appears in this collection, false otherwise. | |
InternalNameCollection | operator+ (const InternalNameCollection other) |
InternalNameCollection | operator+= (const InternalNameCollection other) |
InternalNameCollection | operator= (const InternalNameCollection copy) |
const InternalName | operator[] (int index) |
Returns the nth InternalName in the collection. | |
output (Ostream out) | |
Writes a brief one-line description of the InternalNameCollection to the indicated output stream. | |
removeDuplicateNames () | |
Removes any duplicate entries of the same InternalNames on this collection. | |
bool | removeName (const InternalName name) |
Removes the indicated InternalName from the collection. | |
removeNamesFrom (const InternalNameCollection other) | |
Removes from this collection all of the InternalNames listed in the other collection. | |
int | size () |
Returns the number of names in the collection. | |
write (Ostream out, int indent_level) | |
Writes a complete multi-line description of the InternalNameCollection to the indicated output stream. | |
__init__ | ( | ) |
__init__ | ( | const InternalNameCollection | copy | ) |
addName | ( | const InternalName | name | ) |
Adds a new InternalName to the collection.
addNamesFrom | ( | const InternalNameCollection | other | ) |
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 | ( | ) |
Removes all InternalNames from the collection.
const InternalName getName | ( | int | index | ) |
Returns the nth InternalName in the collection.
list getNames | ( | ) |
int getNumNames | ( | ) |
Returns the number of InternalNames in the collection.
bool hasName | ( | const InternalName | name | ) |
Returns true if the indicated InternalName appears in this collection, false otherwise.
InternalNameCollection operator+ | ( | const InternalNameCollection | other | ) |
InternalNameCollection operator+= | ( | const InternalNameCollection | other | ) |
InternalNameCollection operator= | ( | const InternalNameCollection | copy | ) |
const InternalName operator[] | ( | int | index | ) |
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 | ( | Ostream | out | ) |
Writes a brief one-line description of the InternalNameCollection to the indicated output stream.
removeDuplicateNames | ( | ) |
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.
bool removeName | ( | const InternalName | 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.
removeNamesFrom | ( | const InternalNameCollection | other | ) |
Removes from this collection all of the InternalNames listed in the other collection.
int size | ( | ) |
Returns the number of names in the collection.
This is the same thing as get_num_names().
write | ( | Ostream | out, |
int | indent_level ) |
Writes a complete multi-line description of the InternalNameCollection to the indicated output stream.