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.

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).

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com