Inheritance diagram for oaCMObjectIDRef:
Public Methods | |
oaCMObjectIDRef (const sd::sdObject *def, void *object, oaCMObjectRefTbl *tbl, oaTimeStamp timeStamp, oaBoolean isNew=false, oaCMObjectRef::SPtr scope=NULL) | |
virtual | ~oaCMObjectIDRef () |
virtual void | accept (sr::srVisitorMgr &visitor) |
virtual void | passivate () |
virtual void | activate () |
virtual oaCMDatabaseRef::SPtr | getDatabase () const |
oaCMObjectRef::SPtr | getScope () const |
oaCMStringEntry::SPtr | getName () const |
void | setName (oaCMStringEntry::SPtr name) |
Public Types | |
typedef oaCMObjectIDRef * | SPtr |
An oaCMObjectIDRef is an object reference in which the object can be identified by a single string. oaCMObjectIDRefs are managed by oaChangeSets.
When an oaCMObjectIDRef is created, it is immediately externalized. A string representation of its identifying state is stored with it. If the live object is destroyed, the oaCMObjectIDRef 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 oaCMObjectIDRef can be activated by resetting the boolean flag.
The oaCMObjectIDRef class supports a visitor design pattern interface, which uses a dual dispatch technique. The oaCMObjectIDRef 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 oaCMObjectIDRef constructor.
|
|
This is the oaCMObjectIDRef 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 oaCMObjectIDRef.
Reimplemented from oaCMObjectRef. |
|
This function returns a smart pointer to the database for this oaCMObjectIDRef.
Implements oaCMObjectRef. |
|
This function returns a smart pointer to the oaCMStringTblEntry for this oaCMObjectIDRef.
|
|
This function returns the scope for this oaCMObjectIDRef. The default is the block domain.
|
|
This function passivates (marks as invalid) this oaCMObjectIDRef.
Reimplemented from oaCMObjectRef. |
|
This function sets the name to the given string entry. It increments the reference count of that string entry.
|
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.