oaOccMemNetIter
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaOccMemNetIter 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaOccMemNetIter 当前在 oapy 中可用的 Python 接口。
详细说明
The oaOccMemNetIter class implements a special case iterator。 This class returns member oaNets of an oaOccMemNetCollection 。 A collection of member nets is all those nets of whom the current net is a member。 Because all nets are members of themselves, this iterator will always return at least one net。 For example, a collection of member nets for net a would contain all of the following nets: a x,y,a a4 The member net index is returned in the getNext() function。 This index indicates the member position of the specified net in the collection。 For the example above, the iterator would return the following values: a 0 x,y,a 2 a4 0 a4 1 a4 2 a*4 3 This particular collection and iterator are primarily for those applications that want to traverse single-bit connectivity。
构造函数
_design.oaOccMemNetIter(cl)
obj = _design.oaOccMemNetIter(cl)
_design.oaOccMemNetIter(iterIn)
obj = _design.oaOccMemNetIter(iterIn)
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.getNext(arg) |
方法说明
obj.getNext(arg)
绑定状态: 已绑定
Python 调用: obj.getNext(arg)
This function returns a pointer to the next object in the collection that is being iterated。 NULL is returned when there are no more objects to return。 从 oaBaseMemNetIter 重新实现。
参数
arg: The member index of the current net in the returned net。
Python 示例
from oapy._oa import _design
# assume obj is a oaOccMemNetIter
obj.getNext(arg)