28 INLINE
explicit Namable(
const std::string &initial_name =
"");
30 INLINE
void set_name(
const std::string &name);
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() {
55INLINE std::ostream &operator << (std::ostream &out,
const Namable &n);
64 INLINE
bool operator ()(
const Namable *n1,
const Namable *n2)
const;
This class is intended to be the base class of all objects in Panda that might be allocated and delet...
An STL function object for sorting an array of pointers to Namables into order by name.
A base class for all things which can have a name.
void clear_name()
Resets the Namable's name to empty.
void output(std::ostream &out) const
Outputs the Namable.
bool has_name() const
Returns true if the Namable has a nonempty name set, false if the name is empty.
TypeHandle is the identifier used to differentiate C++ class types.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.