21 return get_type().get_index();
31 return handle == my_type || my_type.
is_derived_from(handle, (TypedObject *)
this);
41 get_type().get_name((TypedObject *)
this);
43 return get_type() == handle;
49INLINE
int TypedObject::
50get_best_parent_from_Set(
const std::set<int> &inset)
const {
51 return get_type().get_best_parent_from_Set(inset);
TypeHandle is the identifier used to differentiate C++ class types.
bool is_derived_from(TypeHandle parent, TypedObject *object=nullptr) const
Returns true if this type is derived from the indicated type, false otherwise.
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 ...