39 INLINE
void TypedObject::
79 return get_type() == handle;
87 INLINE
int TypedObject::
88 get_best_parent_from_Set(
const std::set<int> &inset)
const {
bool is_exact_type(TypeHandle handle) const
Returns true if the current object is the indicated type exactly.
int get_best_parent_from_Set(const std::set< int > &legal_vals) const
Return the Index of the BEst fit Classs from a set.
bool is_derived_from(TypeHandle parent, TypedObject *object=(TypedObject *) NULL) const
Returns true if this type is derived from the indicated type, false otherwise.
int get_index() const
Returns the integer index associated with this TypeHandle.
string get_name(TypedObject *object=(TypedObject *) NULL) const
Returns the name of the type.
This is an abstract class that all classes which use TypeHandle, and also provide virtual functions t...
TypedObject * as_typed_object()
Returns the object, upcast (if necessary) to a TypedObject pointer.
bool is_of_type(TypeHandle handle) const
Returns true if the current object is or derives from the indicated type.
TypeHandle is the identifier used to differentiate C++ class types.
int get_type_index() const
Returns the internal index number associated with this object's TypeHandle, a unique number for each ...