14#ifndef INTERNALNAMECOLLECTION_H
15#define INTERNALNAMECOLLECTION_H
24class EXPCL_PANDA_PGRAPH InternalNameCollection {
26 InternalNameCollection();
27 InternalNameCollection(
const InternalNameCollection ©);
28 void operator = (
const InternalNameCollection ©);
29 INLINE ~InternalNameCollection();
44 INLINE
void operator += (
const InternalNameCollection &other);
45 INLINE InternalNameCollection operator + (
const InternalNameCollection &other)
const;
47 void output(std::ostream &out)
const;
48 void write(std::ostream &out,
int indent_level = 0)
const;
void add_names_from(const InternalNameCollection &other)
Adds all the InternalNames indicated in the other collection to this name.
int size() const
Returns the number of names in the collection.
get_name
Returns the nth InternalName in the collection.
bool has_name(const InternalName *name) const
Returns true if the indicated InternalName appears in this collection, false otherwise.
void remove_duplicate_names()
Removes any duplicate entries of the same InternalNames on this collection.
void clear()
Removes all InternalNames from the collection.
void write(std::ostream &out, int indent_level=0) const
Writes a complete multi-line description of the InternalNameCollection to the indicated output stream...
void add_name(const InternalName *name)
Adds a new InternalName to the collection.
bool remove_name(const InternalName *name)
Removes the indicated InternalName from the collection.
void remove_names_from(const InternalNameCollection &other)
Removes from this collection all of the InternalNames listed in the other collection.
get_num_names
Returns the number of InternalNames in the collection.
void output(std::ostream &out) const
Writes a brief one-line description of the InternalNameCollection to the indicated output stream.
Encodes a string name in a hash table, mapping it to a pointer.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.