Ovis_Group_Parent_Get()
摘要
返回一个 Ovis 组的父组。
语法
Ovis_Group_Parent_Get (group_ptr)
| 参数 | 类型 | 说明 |
|---|---|---|
group_ptr |
OvisT_Group * |
Ovis 组 |
返回类型
OvisT_Group *
指向父组的指针
头文件
ovis_entity.h
详情
该函数访问组的层次结构并返回该 Ovis 组的父组。
示例
OvisT_Group * parent, * child;
/* …child created elsewhere */
parent = Ovis_Group_Parent_Get (child);
错误
- 组为 NIL。
参考
- 使用函数
Ovis_Group_Child_Group_Count()可以获取组的子组数量。 - 使用函数
Ovis_Group_Child_Group_Nth()可以获取组的某个子组。