21 return get_type().get_index();
43 return get_type() == handle;
49 INLINE
int TypedObject::
50 get_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.
This is an abstract class that all classes which use TypeHandle, and also provide virtual functions t...
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 ...