首页 / base / oaSubset

oaSubset

模块: oapy._oa._base 导入: from oapy._oa import _base

概览

oaSubsetoapy 中可用,可通过 _base 模块访问。

本页汇总 oaSubset 当前在 oapy 中可用的 Python 接口。

详细说明

template class oaSubset< T > This class is a form of array that is stored in a sorted order to allow fast lookup of its elements。 It is used to hold a set of oaType values that can be supplied to an oaConstraintDef to specify the legal classes that the constraint can work with -- see oaLayerConstraintDef::oaLayerConstraintDef for an example of its usage。 The classes used in an oaSubset must be legal for comparison with the built-in C++ comparison operators such as '<'。

构造函数

_base.oaSubset()

obj = _base.oaSubset()

方法总览

状态 Python 调用
obj.add(type)
obj.includes(type)

方法说明

obj.add(type)

绑定状态: 已绑定

Python 调用: obj.add(type)

Python 示例

from oapy._oa import _base

# assume obj is a oaSubset
obj.add(type)

obj.includes(type)

绑定状态: 已绑定

Python 调用: obj.includes(type)

Python 示例

from oapy._oa import _base

# assume obj is a oaSubset
obj.includes(type)