28 INLINE
explicit Namable(
const std::string &initial_name =
"");
30 INLINE
void set_name(
const std::string &name);
31 INLINE
void clear_name();
32 INLINE
bool has_name()
const;
33 INLINE
const std::string &get_name()
const;
34 MAKE_PROPERTY(name, get_name, set_name);
38 INLINE
void output(std::ostream &out)
const;
47 static void init_type() {
55 INLINE std::ostream &operator << (std::ostream &out,
const Namable &n);
64 INLINE
bool operator ()(
const Namable *n1,
const Namable *n2)
const;
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
An STL function object for sorting an array of pointers to Namables into order by name.