Inheritance diagram for oaCMDatabaseRef:
Public Methods | |
oaCMDatabaseRef (const sd::sdObject *def, void *object, oaCMDatabaseTbl *tbl, oaTimeStamp timeStamp, oaBoolean isNew=false) | |
virtual | ~oaCMDatabaseRef () |
virtual void | accept (sr::srVisitorMgr &visitor) |
virtual void | passivate () |
virtual void | activate () |
virtual oaCMDatabaseRef::SPtr | getDatabase () const |
oaCMObjectStateEntry::SPtr | getState () const |
void | setState (oaCMObjectStateEntry::SPtr state) |
Public Types | |
typedef oaCMDatabaseRef * | SPtr |
An oaCMDatabaseRef is an object reference in which the object is a database. oaCMDatabaseRefs are managed by oaChangeSets.
When an oaCMDatabaseRef is created, it is immediately externalized. A string representation of its identifying state is stored with it. If the live object is destroyed, the oaCMDatabaseRef 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 oaCMDatabaseRef can be activated by resetting the boolean flag.
The oaCMDatabaseRef class supports a visitor design pattern interface, which uses a dual dispatch technique. The oaCMDatabaseRef 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 function is the oaCMDatabaseRef constructor.
|
|
This function is the oaCMDatabaseRef destructor. |
|
This function accepts an srVisitorMgr visitor. It calls the visit function of the specified visitor on this object.
|
|
This function resets a boolean flag on the oaCMDatabaseRef to indicate that the corresponding live object for this reference has been recreated (due to an undo operation after the live object was destroyed).
Reimplemented from oaCMObjectRef. |
|
This function returns a smart pointer to the database for this oaCMDatabaseRef.
Implements oaCMObjectRef. |
|
This function returns the oaCMObjectStateTbl entry for this oaCMDatabaseRef.
|
|
This function sets a boolean flag on the oaCMDatabaseRef to indicate that the corresponding live object for this reference has been destroyed.
Reimplemented from oaCMObjectRef. |
|
This function sets the state for an oaCMDatabaseRef. The state describes an OpenAccess object that is identified by a compound state rather than a unique identifier.
|
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.