18 #include "pandabase.h" 20 #include "typedObject.h" 31 INLINE
Namable(
const string &initial_name =
"");
32 INLINE Namable(
const Namable ©);
33 INLINE Namable &operator = (
const Namable &other);
35 INLINE
void set_name(
const string &name);
36 INLINE
void clear_name();
37 INLINE
bool has_name()
const;
38 INLINE
const string &get_name()
const;
42 INLINE
void output(ostream &out)
const;
51 static void init_type() {
52 register_type(_type_handle,
"Namable");
59 INLINE ostream &operator << (ostream &out,
const Namable &n);
70 INLINE
bool operator ()(
const Namable *n1,
const Namable *n2)
const;
A base class for all things which can have a name.
This class is intended to be the base class of all objects in Panda that might be allocated and delet...
TypeHandle is the identifier used to differentiate C++ class types.
An STL function object for sorting an array of pointers to Namables into order by name...