Ets_Obj_Type_Is_A()
Abstract
Tells whether one ETS class belongs to another.
Syntax
Ets_Obj_Type_Is_A (type, super_type)
| Argument | Type | Description |
|---|---|---|
type |
EtsT_Obj_Type |
The class being tested for inclusion in the "super_type" class. Symbolic constants for valid object types are listed in Table 33 General Sub-Package Symbolic Constants. |
super_type |
EtsT_Obj_Type |
The class being tested to see if it includes the class "type". Symbolic constants for valid object types are listed in Table 33 General Sub-Package Symbolic Constants. |
Return Type
EtsT_Boolean
True if the class type belongs to the class super_type. False otherwise.
Header
ets_api_obj.h
Details
Tells whether one type matches another, possibly more general, type.
For example, the call:
Ets_Obj_Type_Is_A (EtsC_Obj_Type_Node_Fix, EtsC_Obj_Mtype_Node)
would return true, because a fixed node is a type of node (the class of fixed nodes belongs to the node "metatype" class). However, the call:
Ets_Obj_Type_Is_A (EtsC_Obj_Mtype_Node, EtsC_Obj_Type_Node_Fix)
would return false, because not all nodes are fixed nodes (the node "metatype" class does not belong to the class of fixed nodes).