Open CASCADE Technology 7.8.2.dev
|
Stored relocation table is modeled as a child class of TColStd_DataMapOfIntegerTransient that stores a handle to the file header section. With that attribute drivers have access to the file header section. More...
#include <XmlObjMgt_SRelocationTable.hxx>
Public Member Functions | |
const Handle< Storage_HeaderData > & | GetHeaderData () const |
Returns a handle to the header data of the file that is begin read. | |
void | SetHeaderData (const Handle< Storage_HeaderData > &theHeaderData) |
Sets the storage header data. | |
void | Clear (const Standard_Boolean doReleaseMemory=Standard_True) |
Public Member Functions inherited from NCollection_IndexedMap< Handle< Standard_Transient > > | |
const_iterator | cbegin () const |
Returns a const iterator pointing to the first element in the map. | |
const_iterator | cend () const |
Returns a const iterator referring to the past-the-end element in the map. | |
NCollection_IndexedMap () | |
Empty constructor. | |
NCollection_IndexedMap (const Standard_Integer theNbBuckets, const Handle< NCollection_BaseAllocator > &theAllocator=0L) | |
Constructor. | |
NCollection_IndexedMap (const NCollection_IndexedMap &theOther) | |
Copy constructor. | |
NCollection_IndexedMap (NCollection_IndexedMap &&theOther) noexcept | |
Move constructor. | |
void | Exchange (NCollection_IndexedMap &theOther) |
Exchange the content of two maps without re-allocations. Notice that allocators will be swapped as well! | |
NCollection_IndexedMap & | Assign (const NCollection_IndexedMap &theOther) |
Assign. This method does not change the internal allocator. | |
NCollection_IndexedMap & | operator= (const NCollection_IndexedMap &theOther) |
Assignment operator. | |
NCollection_IndexedMap & | operator= (NCollection_IndexedMap &&theOther) noexcept |
Move operator. | |
void | ReSize (const Standard_Integer theExtent) |
ReSize. | |
Standard_Integer | Add (const Handle< Standard_Transient > &theKey1) |
Add. | |
Standard_Integer | Add (Handle< Standard_Transient > &&theKey1) |
Add. | |
Standard_Boolean | Contains (const Handle< Standard_Transient > &theKey1) const |
Contains. | |
void | Substitute (const Standard_Integer theIndex, const Handle< Standard_Transient > &theKey1) |
Substitute. | |
void | Swap (const Standard_Integer theIndex1, const Standard_Integer theIndex2) |
Swaps two elements with the given indices. | |
void | RemoveLast (void) |
RemoveLast. | |
void | RemoveFromIndex (const Standard_Integer theIndex) |
Remove the key of the given index. Caution! The index of the last key can be changed. | |
Standard_Boolean | RemoveKey (const Handle< Standard_Transient > &theKey1) |
Remove the given key. Caution! The index of the last key can be changed. | |
const Handle< Standard_Transient > & | FindKey (const Standard_Integer theIndex) const |
FindKey. | |
const Handle< Standard_Transient > & | operator() (const Standard_Integer theIndex) const |
operator () | |
Standard_Integer | FindIndex (const Handle< Standard_Transient > &theKey1) const |
FindIndex. | |
void | Clear (const Standard_Boolean doReleaseMemory=Standard_False) |
Clear data. If doReleaseMemory is false then the table of buckets is not released and will be reused. | |
void | Clear (const Handle< NCollection_BaseAllocator > &theAllocator) |
Clear data and reset allocator. | |
virtual | ~NCollection_IndexedMap (void) |
Destructor. | |
Standard_Integer | Size (void) const |
Size. | |
Public Member Functions inherited from NCollection_BaseMap | |
Standard_Integer | NbBuckets () const |
NbBuckets. | |
Standard_Integer | Extent () const |
Extent. | |
Standard_Boolean | IsEmpty () const |
IsEmpty. | |
void | Statistics (Standard_OStream &S) const |
Statistics. | |
const Handle< NCollection_BaseAllocator > & | Allocator () const |
Returns attached allocator. | |
Stored relocation table is modeled as a child class of TColStd_DataMapOfIntegerTransient that stores a handle to the file header section. With that attribute drivers have access to the file header section.
void XmlObjMgt_SRelocationTable::Clear | ( | const Standard_Boolean | doReleaseMemory = Standard_True | ) |
const Handle< Storage_HeaderData > & XmlObjMgt_SRelocationTable::GetHeaderData | ( | ) | const |
Returns a handle to the header data of the file that is begin read.
void XmlObjMgt_SRelocationTable::SetHeaderData | ( | const Handle< Storage_HeaderData > & | theHeaderData | ) |
Sets the storage header data.
theHeaderData | header data of the file that is begin read |