oaBaseMemNetIter
模块: oapy._oa._design
导入: from oapy._oa import _design
概览
oaBaseMemNetIter 在 oapy 中可用,可通过 _design 模块访问。
本页汇总 oaBaseMemNetIter 当前在 oapy 中可用的 Python 接口。
详细说明
The oaBaseMemNetIter class is the abstract base class for the derived member net iterator classes。 The member net iterator classes return member nets of a member net collection ( oaBaseMemNetCollection )。 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。
方法总览
| 状态 | Python 调用 |
|---|---|
| ✅ | obj.reset() |
方法说明
obj.reset()
绑定状态: 已绑定
Python 调用: obj.reset()
This function restarts the iterator。 The next call to getNext() for this oaBaseMemNetIter returns the first object in the collection。
Python 示例
from oapy._oa import _design
# assume obj is a oaBaseMemNetIter
obj.reset()