Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Static Public Member Functions
TObj_TIntSparseArray Class Reference

#include <TObj_TIntSparseArray.hxx>

Inheritance diagram for TObj_TIntSparseArray:
Inheritance graph
[legend]

Public Types

typedef
TObj_TIntSparseArray_VecOfData::ConstIterator 
Iterator

Public Member Functions

 TObj_TIntSparseArray ()
 Empty constructor.
const Standard_GUIDID () const
 Returns the ID of this attribute.
Standard_Size Size () const
 Methods for access to data.
Iterator GetIterator () const
 Returns iterator on objects contained in the set.
Standard_Boolean HasValue (const Standard_Size theId) const
 Returns true if the value with the given ID is present.
Standard_Integer Value (const Standard_Size theId) const
 Returns the value by its ID. Raises an exception if no value is stored with this ID.
void SetValue (const Standard_Size theId, const Standard_Integer theValue)
 Sets the value with the given ID. Raises an exception if theId is not positive.
void UnsetValue (const Standard_Size theId)
 Unsets the value with the given ID. Raises an exception if theId is not positive.
void Clear ()
 Clears the set.
Handle< TDF_AttributeNewEmpty () const
 Redefined OCAF abstract methods.
Handle< TDF_AttributeBackupCopy () const
 Moves this delta into a new other attribute.
void Restore (const Handle< TDF_Attribute > &theDelta)
 Restores the set using info saved in backup attribute theDelta.
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.
void BeforeCommitTransaction ()
 It is called just before Commit or Abort transaction and does Backup() to create a delta.
void DeltaOnModification (const Handle< TDF_DeltaOnModification > &theDelta)
 Applies theDelta to this.
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.
void ClearDelta ()

Static Public Member Functions

static const Standard_GUIDGetID ()
 This method is used in implementation of ID()
static Handle
< TObj_TIntSparseArray
Set (const TDF_Label &theLabel)
 Creates TObj_TIntSparseArray attribute on given label.

Detailed Description

OCAF Attribute to store a set of positive integer values in the OCAF tree. Each value is identified by ID (positive integer). The supporting underlying data structure is NCollection_SparseArray of integers.


Member Typedef Documentation

typedef TObj_TIntSparseArray_VecOfData::ConstIterator TObj_TIntSparseArray::Iterator

Constructor & Destructor Documentation


Member Function Documentation

Reimplemented from TDF_Attribute.

Reimplemented from TDF_Attribute.

Reimplemented from TDF_Attribute.

Reimplemented from TDF_Attribute.

Implements TDF_Attribute.

Returns an new empty TObj_TIntSparseArray attribute. It is used by the copy algorithm.

Implements TDF_Attribute.

void TObj_TIntSparseArray::Paste ( const Handle< TDF_Attribute > &  theInto,
const Handle< TDF_RelocationTable > &  theRT 
) const [virtual]

Implements TDF_Attribute.

Implements TDF_Attribute.

Sets the flag pointing to the necessity to maintain a modification delta. It is called by the retrieval driver

Returns the number of stored values in the set


The documentation for this class was generated from the following file: