|
Public Types |
typedef TObj_TIntSparseArray_VecOfData::ConstIterator | Iterator |
Public Member Functions |
Standard_EXPORT | TObj_TIntSparseArray () |
| Empty constructor.
|
Standard_EXPORT const Standard_GUID & | ID () const |
| Returns the ID of this attribute.
|
Standard_EXPORT Standard_Integer | Size () const |
| Methods for access to data Returns the number of stored values in the set.
|
Iterator | GetIterator () const |
| Returns iterator on objects contained in the set.
|
Standard_Boolean | HasValue (const Standard_Integer theId) const |
| Returns true if the value with the given ID is present.
|
Standard_Integer | Value (const Standard_Integer theId) const |
| Returns the value by its ID. Raises an exception if no value is stored with this ID.
|
Standard_EXPORT void | SetValue (const Standard_Integer theId, const Standard_Integer theValue) |
| Sets the value with the given ID. Raises an exception if theId is not positive.
|
Standard_EXPORT void | UnsetValue (const Standard_Integer theId) |
| Unsets the value with the given ID. Raises an exception if theId is not positive.
|
Standard_EXPORT void | Clear () |
| Clears the set.
|
Standard_EXPORT | Handle (TDF_Attribute) NewEmpty() const |
| Redefined OCAF abstract methods Returns an new empty TObj_TIntSparseArray attribute. It is used by the copy algorithm.
|
Standard_EXPORT | Handle (TDF_Attribute) BackupCopy() const |
| Moves this delta into a new other attribute.
|
Standard_EXPORT void | Restore (const Handle(TDF_Attribute)&theDelta) |
| Restores the set using info saved in backup attribute theDelta.
|
Standard_EXPORT void | Paste (const Handle(TDF_Attribute)&theInto, const Handle(TDF_RelocationTable)&theRT) const |
| This method is used when copying an attribute from a source structure into a target structure.
|
Standard_EXPORT void | BeforeCommitTransaction () |
| It is called just before Commit or Abort transaction and does Backup() to create a delta.
|
Standard_EXPORT void | DeltaOnModification (const Handle(TDF_DeltaOnModification)&theDelta) |
| Applies theDelta to this.
|
Standard_EXPORT Standard_Boolean | AfterUndo (const Handle(TDF_AttributeDelta)&theDelta, const Standard_Boolean toForce) |
| Clears my modification delta; called after application of theDelta.
|
void | SetDoBackup (const Standard_Boolean toDo) |
| Methods to handle the modification delta Sets the flag pointing to the necessity to maintain a modification delta. It is called by the retrieval driver.
|
void | ClearDelta () |
Static Public Member Functions |
static Standard_EXPORT const
Standard_GUID & | GetID () |
| This method is used in implementation of ID().
|
static Standard_EXPORT | Handle (TObj_TIntSparseArray) Set(const TDF_Label &theLabel) |
| Creates TObj_TIntSparseArray attribute on given label.
|
Private Types |
enum | { AbsentValue = -1
} |
| Internal constant to recognize items in the backup array correspondent to absent values. More...
|
Private Member Functions |
void | backupValue (const Standard_Integer theId, const Standard_Integer theCurrValue, const Standard_Integer theNewValue) |
| backup one value
|
Private Attributes |
TObj_TIntSparseArray_VecOfData | myVector |
TObj_TIntSparseArray_MapOfData | myOldMap |
Standard_Boolean | myDoBackup |