Panda3D
Public Member Functions | List of all members
InternalNameCollection Class Reference

Public Member Functions

 __init__ ()
 
 __init__ (const InternalNameCollection copy)
 
 addName (const InternalName name)
 Adds a new InternalName to the collection. More...
 
 addNamesFrom (const InternalNameCollection other)
 Adds all the InternalNames indicated in the other collection to this name. More...
 
 clear ()
 Removes all InternalNames from the collection. More...
 
const InternalName getName (int index)
 Returns the nth InternalName in the collection. More...
 
list getNames ()
 
int getNumNames ()
 Returns the number of InternalNames in the collection. More...
 
bool hasName (const InternalName name)
 Returns true if the indicated InternalName appears in this collection, false otherwise. More...
 
const InternalName operator [] (int index)
 Returns the nth InternalName in the collection. More...
 
InternalNameCollection operator+ (const InternalNameCollection other)
 
InternalNameCollection operator+= (const InternalNameCollection other)
 
InternalNameCollection operator= (const InternalNameCollection copy)
 
 output (Ostream out)
 Writes a brief one-line description of the InternalNameCollection to the indicated output stream. More...
 
 removeDuplicateNames ()
 Removes any duplicate entries of the same InternalNames on this collection. More...
 
bool removeName (const InternalName name)
 Removes the indicated InternalName from the collection. More...
 
 removeNamesFrom (const InternalNameCollection other)
 Removes from this collection all of the InternalNames listed in the other collection. More...
 
int size ()
 Returns the number of names in the collection. More...
 
 write (Ostream out, int indent_level)
 Writes a complete multi-line description of the InternalNameCollection to the indicated output stream. More...
 

Member Function Documentation

◆ __init__() [1/2]

__init__ ( )

◆ __init__() [2/2]

__init__ ( const InternalNameCollection  copy)

◆ addName()

addName ( const InternalName  name)

Adds a new InternalName to the collection.

◆ addNamesFrom()

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()

clear ( )

Removes all InternalNames from the collection.

◆ getName()

const InternalName getName ( int  index)

Returns the nth InternalName in the collection.

◆ getNames()

list getNames ( )

◆ getNumNames()

int getNumNames ( )

Returns the number of InternalNames in the collection.

◆ hasName()

bool hasName ( const InternalName  name)

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

◆ operator []()

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.

◆ operator+()

InternalNameCollection operator+ ( const InternalNameCollection  other)

◆ operator+=()

InternalNameCollection operator+= ( const InternalNameCollection  other)

◆ operator=()

◆ output()

output ( Ostream  out)

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

◆ removeDuplicateNames()

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.

◆ removeName()

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()

removeNamesFrom ( const InternalNameCollection  other)

Removes from this collection all of the InternalNames listed in the other collection.

◆ size()

int size ( )

Returns the number of names in the collection.

This is the same thing as get_num_names().

◆ write()

write ( Ostream  out,
int  indent_level 
)

Writes a complete multi-line description of the InternalNameCollection to the indicated output stream.