Inheritance diagram for oaCMObjectStateRef:
Public Methods | |
oaCMObjectStateRef (const sd::sdObject *def, void *object, oaCMObjectRefTbl *tbl, oaTimeStamp timeStamp, oaBoolean isNew=false, oaCMObjectRef::SPtr scope=NULL) | |
virtual | ~oaCMObjectStateRef () |
virtual void | accept (sr::srVisitorMgr &visitor) |
virtual void | passivate () |
virtual void | activate () |
virtual oaCMDatabaseRef::SPtr | getDatabase () const |
oaCMObjectRef::SPtr | getScope () const |
oaCMObjectStateEntry::SPtr | getState () const |
oaCMObjectStateEntry::SPtr | setState (oaCMObjectStateEntry::SPtr state) |
Public Types | |
typedef oaCMObjectStateRef * | SPtr |
An oaCMObjectStateRef is an object reference in which the object can be identified by its state (a collection of its attributes and relationships). oaCMObjectStateRefs are managed by oaChangeSets.
When an oaCMObjectStateRef is created, it is immediately externalized. A string representation of its identifying state is stored with it. If the live object is destroyed, the oaCMObjectStateRef corresponding to the destroyed object is passivated by setting a boolean flag to indicate that the object pointer is invalid. If an undo operation recreates the live object that was destroyed, the oaCMObjectStateRef can be activated by resetting the boolean flag.
The oaCMObjectStateRef class supports a visitor design pattern interface, which uses a dual dispatch technique. The oaCMObjectStateRef class has an accept method, which provides access to a visitor. The visitor can then execute its behavior for that element.
|
Reimplemented from oaCMObjectRef. |
|
This is the oaCMObjectStateRef constructor.
|
|
This is the oaCMObjectStateRef destructor. |
|
This function accepts an srVisitorMgr visitor. It calls the visit function of the specified visitor on this object.
|
|
This function activates (marks as valid) this oaCMObjectStateRef.
Reimplemented from oaCMObjectRef. |
|
This function returns a smart pointer to the oaCMDatabaseRef for this oaCMObjectStateRef.
Implements oaCMObjectRef. |
|
This function returns the scope for the oaCMObjectStateRef. The default is the block domain.
|
|
This function returns the oaCMObjectStateTbl entry for this oaCMObjectStateRef.
|
|
This function passivates (marks as invalid) this oaCMObjectStateRef.
Reimplemented from oaCMObjectRef. |
|
This function sets this oaCMObjectStateRef to the specified state. It also increments the reference count on the oaCMObjectStateRef.
|
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.