88class EXPCL_DTOOL_DTOOLBASE TypedObject :
public MemoryBase {
90 INLINE TypedObject() =
default;
91 INLINE TypedObject(
const TypedObject ©) =
default;
92 INLINE TypedObject &operator = (
const TypedObject ©) =
default;
96 virtual ~TypedObject();
102 MAKE_PROPERTY(type, get_type);
109 INLINE
int get_best_parent_from_Set(
const std::set<int> &)
const;
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.
static void init_type()
This function is declared non-inline to work around a compiler bug in g++ 2.96.
bool is_exact_type(TypeHandle handle) const
Returns true if the current object is the indicated type exactly.
bool is_of_type(TypeHandle handle) const
Returns true if the current object is or derives from the indicated type.
TypedObject * as_typed_object()
Returns the object, upcast (if necessary) to a TypedObject pointer.
int get_type_index() const
Returns the internal index number associated with this object's TypeHandle, a unique number for each ...
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.