首页 / design / oaOccMemNetCollection

oaOccMemNetCollection

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

概览

oaOccMemNetCollectionoapy 中可用,可通过 _design 模块访问。

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

详细说明

The member net collection class represents a collection of nets that the starting net is a member of。 The oaOccMemNetCollection is such a collection of oaOccNet objects in the occuttence domain。 Examples are that a[1] is a member of a[4:0] 。 All explicit nets are members of themselves and so have a non-empty member net collection。 See oaNet::getMemberNets() for a complete description of which nets are members of which other nets。 The oaOccMemNetCollection class is a specialized collection class because the oaOccMemNetIter used to iterate over it does not have the standard getNext signature use by the template collection classes。 The most common way to use an oaOccMemNetCollection is to use it inline in the construction of an oaOccMemNetIter , so the oaOccMemNetCollection is never explicitly declared。 In the following example, occnet->getMemberNets() returns an oaOccMemNetCollection。 oaUInt4 pos; oaOccMemNetIter nIter(occnet->getMemberNets()); while ( oaOccNet *onet = nIter.getNext(pos)) { 。 }。

方法总览

状态 Python 调用
obj.includes(object)

方法说明

obj.includes(object)

绑定状态: 已绑定

Python 调用: obj.includes(object)

This functions determines if the specified occurrence net is a member of the collection。

Python 示例

from oapy._oa import _design

# assume obj is a oaOccMemNetCollection
obj.includes(object)