Open CASCADE Technology
6.5.4
|
Attribute for storing TColStd_PackedMapOfInteger
#include <TDataStd_IntPackedMap.hxx>
Public Member Functions | |
TDataStd_IntPackedMap () | |
Standard_Boolean | ChangeMap (const Handle< TColStd_HPackedMapOfInteger > &theMap) |
const TColStd_PackedMapOfInteger & | GetMap () const |
const Handle_TColStd_HPackedMapOfInteger & | GetHMap () const |
Standard_Boolean | Clear () |
Standard_Boolean | Add (const Standard_Integer theKey) |
Standard_Boolean | Remove (const Standard_Integer theKey) |
Standard_Boolean | Contains (const Standard_Integer theKey) const |
Standard_Integer | Extent () const |
Standard_Boolean | IsEmpty () const |
Standard_Boolean | GetDelta () const |
void | SetDelta (const Standard_Boolean isDelta) |
for internal use only! | |
const Standard_GUID & | ID () const |
Returns the ID of the attribute. | |
void | Restore (const Handle< TDF_Attribute > &with) |
Restores the backuped contents from <anAttribute> into this one. It is used when aborting a transaction. | |
Handle_TDF_Attribute | NewEmpty () const |
Returns an new empty attribute from the good end type. It is used by the copy algorithm. | |
void | Paste (const Handle< TDF_Attribute > &into, const Handle< TDF_RelocationTable > &RT) const |
This method is different from the "Copy" one, because it is used when copying an attribute from a source structure into a target structure. This method may paste the contents of <me> into <intoAttribute>. The given pasted attribute can be full or empty of its contents. But don't make a NEW! Just set the contents! It is possible to use <aRelocationTable> to get/set the relocation value of a source attribute. | |
virtual Standard_OStream & | Dump (Standard_OStream &anOS) const |
Dumps the minimum information about <me> on <aStream>. | |
virtual Handle_TDF_DeltaOnModification | DeltaOnModification (const Handle< TDF_Attribute > &anOldAttribute) const |
Makes a DeltaOnModification between <me> and <anOldAttribute>. | |
Static Public Member Functions | |
static const Standard_GUID & | GetID () |
class methods ============= //! Returns the GUID of the attribute. | |
static Handle_TDataStd_IntPackedMap | Set (const TDF_Label &label, const Standard_Boolean isDelta=Standard_False) |
Finds or creates an integer map attribute on the given label. If <isDelta> == False, DefaultDeltaOnModification is used. If <isDelta> == True, DeltaOnModification of the current attribute is used. If attribute is already set, input parameter <isDelta> is refused and the found attribute returned. //! Attribute methods =================== |
Standard_Boolean TDataStd_IntPackedMap::ChangeMap | ( | const Handle< TColStd_HPackedMapOfInteger > & | theMap | ) |
Standard_Boolean TDataStd_IntPackedMap::Contains | ( | const Standard_Integer | theKey | ) | const |
virtual Handle_TDF_DeltaOnModification TDataStd_IntPackedMap::DeltaOnModification | ( | const Handle< TDF_Attribute > & | anOldAttribute | ) | const [virtual] |
Reimplemented from TDF_Attribute.
virtual Standard_OStream& TDataStd_IntPackedMap::Dump | ( | Standard_OStream & | anOS | ) | const [virtual] |
Reimplemented from TDF_Attribute.
const Handle_TColStd_HPackedMapOfInteger& TDataStd_IntPackedMap::GetHMap | ( | ) | const |
static const Standard_GUID& TDataStd_IntPackedMap::GetID | ( | ) | [static] |
const Standard_GUID& TDataStd_IntPackedMap::ID | ( | ) | const [virtual] |
Implements TDF_Attribute.
Handle_TDF_Attribute TDataStd_IntPackedMap::NewEmpty | ( | ) | const [virtual] |
Implements TDF_Attribute.
void TDataStd_IntPackedMap::Paste | ( | const Handle< TDF_Attribute > & | intoAttribute, |
const Handle< TDF_RelocationTable > & | aRelocationTable | ||
) | const [virtual] |
Implements TDF_Attribute.
void TDataStd_IntPackedMap::Restore | ( | const Handle< TDF_Attribute > & | anAttribute | ) | [virtual] |
Implements TDF_Attribute.
static Handle_TDataStd_IntPackedMap TDataStd_IntPackedMap::Set | ( | const TDF_Label & | label, |
const Standard_Boolean | isDelta = Standard_False |
||
) | [static] |
void TDataStd_IntPackedMap::SetDelta | ( | const Standard_Boolean | isDelta | ) |