Panda3D
Loading...
Searching...
No Matches
Public Member Functions | List of all members
InternalNameCollection Class Reference

#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.
 

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

◆ operator+=()

◆ operator=()

◆ 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.

◆ 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.