首页 / cms / oaHierChangeRec

oaHierChangeRec

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

概览

oaHierChangeRecoapy 中可用,可通过 _cms 模块访问。

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

详细说明

A single, higher-level OpenAccess API call might map to a state change that includes multiple levels of lower-level state changes。 For complex APIs, this decomposition can span more than one level of hierarchy, creating a tree of change records。 The oaHierChangeRec class is used to represent the hierarchy of changes。 A typical example of a hierarchical state change is an API call to destroy a block net。 The high level call causes the following side effects: All of the net’s connections are removed。 If there are terminals connected to the net, those terminals are destroyed。 The parasitic networks on the net are destroyed。 The oaConnectDefs and implicit multi-bit owners of the net are destroyed。 A single leaf level change is specified as the primary change record that represents the set of hierarchical changes with oaHierChangeRec::setPrimary 。 Changes that are side effects of the primary change are then added with the oaHierChangeRec::addChild function。 变更记录由 OpenAccess 变更管理系统(CMS)使用。

构造函数

_cms.oaHierChangeRec(changeSetIn)

obj = _cms.oaHierChangeRec(changeSetIn)

方法总览

状态 Python 调用
obj.accept(visitor, forward=true)
obj.getPrimary()
obj.setPrimary(primary)
obj.beginChild()
obj.endChild()
obj.beginChild()
obj.endChild()
obj.rbeginChild()
obj.rendChild()
obj.rbeginChild()
obj.rendChild()
obj.addChild(child)
obj.removeChild(child)
obj.isCollapsible()

方法说明

obj.accept(visitor, forward=true)

绑定状态: 已绑定

Python 调用: obj.accept(visitor, forward=true)

This function accepts a change record visitor。 It calls the visit function of the specified visitor on this object。 The forward parameter indicates the direction in which the change records are being visited。 The forward parameter might be set to false if the goal of the visit is to roll back changes due to an undo command。 实现 oaChangeRec。

参数

  • visitor: A pointer to the change record visitor to call on this object。
  • forward: Specifies the direction in which change records are being visited。

Python 示例

from oapy._oa import _cms

# assume obj is a oaHierChangeRec
obj.accept(visitor, forward=true)

obj.getPrimary()

绑定状态: 已绑定

Python 调用: obj.getPrimary()

This function returns a pointer to the oaLeafChangeRec object that was set as the primary change record for this set of hierarchical changes。

Python 示例

from oapy._oa import _cms

# assume obj is a oaHierChangeRec
obj.getPrimary()

obj.setPrimary(primary)

绑定状态: 已绑定

Python 调用: obj.setPrimary(primary)

This function sets the specified oaLeafChangeRec object to be the primary change record for this set of hierarchical changes。

参数

  • primary: A pointer to the oaLeafChangeRec to be the primary change。

Python 示例

from oapy._oa import _cms

# assume obj is a oaHierChangeRec
obj.setPrimary(primary)

obj.beginChild()

绑定状态: 已绑定

Python 调用: obj.beginChild()

This function returns an iterator pointing to the first child change record for this set of hierarchical changes。

Python 示例

from oapy._oa import _cms

# assume obj is a oaHierChangeRec
obj.beginChild()

obj.endChild()

绑定状态: 已绑定

Python 调用: obj.endChild()

This function returns an iterator pointing to the last child change record for this set of hierarchical changes。

Python 示例

from oapy._oa import _cms

# assume obj is a oaHierChangeRec
obj.endChild()

obj.beginChild()

绑定状态: 已绑定

Python 调用: obj.beginChild()

This function returns a constant iterator pointing to the first child change record for this set of hierarchical changes。

Python 示例

from oapy._oa import _cms

# assume obj is a oaHierChangeRec
obj.beginChild()

obj.endChild()

绑定状态: 已绑定

Python 调用: obj.endChild()

This function returns a constant iterator pointing to the last child change record for this set of hierarchical changes。

Python 示例

from oapy._oa import _cms

# assume obj is a oaHierChangeRec
obj.endChild()

obj.rbeginChild()

绑定状态: 已绑定

Python 调用: obj.rbeginChild()

This function returns a reverse iterator pointing to the first child change record for this set of hierarchical changes。

Python 示例

from oapy._oa import _cms

# assume obj is a oaHierChangeRec
obj.rbeginChild()

obj.rendChild()

绑定状态: 已绑定

Python 调用: obj.rendChild()

This function returns a reverse iterator pointing to the last child change record for this set of hierarchical changes。

Python 示例

from oapy._oa import _cms

# assume obj is a oaHierChangeRec
obj.rendChild()

obj.rbeginChild()

绑定状态: 已绑定

Python 调用: obj.rbeginChild()

This function returns a constant reverse iterator pointing to the first child change record for this set of hierarchical changes。

Python 示例

from oapy._oa import _cms

# assume obj is a oaHierChangeRec
obj.rbeginChild()

obj.rendChild()

绑定状态: 已绑定

Python 调用: obj.rendChild()

This function returns a constant reverse iterator pointing to the last child change record for this set of hierarchical changes。

Python 示例

from oapy._oa import _cms

# assume obj is a oaHierChangeRec
obj.rendChild()

obj.addChild(child)

绑定状态: 已绑定

Python 调用: obj.addChild(child)

This function adds the specified child change record to this set of hierarchical changes。 The child can be a leaf or a hierarchical change record。

参数

  • child: A pointer to the child change record to add to the set。

Python 示例

from oapy._oa import _cms

# assume obj is a oaHierChangeRec
obj.addChild(child)

obj.removeChild(child)

绑定状态: 已绑定

Python 调用: obj.removeChild(child)

This function removes the specified child change record from this set of hierarchical changes。 The child can be a leaf or a hierarchical change record。

参数

  • child: A pointer to the child change record to remove from the set。

Python 示例

from oapy._oa import _cms

# assume obj is a oaHierChangeRec
obj.removeChild(child)

obj.isCollapsible()

绑定状态: 已绑定

Python 调用: obj.isCollapsible()

This function returns a boolean indicating whether or not this hierarchical change record can be collapsed to a leaf level change record。

Python 示例

from oapy._oa import _cms

# assume obj is a oaHierChangeRec
obj.isCollapsible()