Open CASCADE Technology 7.7.2
|
Retrieval 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_RRelocationTable.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) |
![]() | |
iterator | begin () const |
Returns an iterator pointing to the first element in the map. | |
iterator | end () const |
Returns an iterator referring to the past-the-end element in the map. | |
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_DataMap () | |
Empty Constructor. | |
NCollection_DataMap (const Standard_Integer theNbBuckets, const Handle< NCollection_BaseAllocator > &theAllocator=0L) | |
Constructor. | |
NCollection_DataMap (const NCollection_DataMap &theOther) | |
Copy constructor. | |
void | Exchange (NCollection_DataMap &theOther) |
Exchange the content of two maps without re-allocations. Notice that allocators will be swapped as well! | |
NCollection_DataMap & | Assign (const NCollection_DataMap &theOther) |
Assignment. This method does not change the internal allocator. | |
NCollection_DataMap & | operator= (const NCollection_DataMap &theOther) |
Assignment operator. | |
void | ReSize (const Standard_Integer N) |
ReSize. | |
Standard_Boolean | Bind (const TheKeyType &theKey, const TheItemType &theItem) |
Bind binds Item to Key in map. | |
TheItemType * | Bound (const TheKeyType &theKey, const TheItemType &theItem) |
Bound binds Item to Key in map. Returns modifiable Item. | |
Standard_Boolean | IsBound (const TheKeyType &theKey) const |
IsBound. | |
Standard_Boolean | UnBind (const TheKeyType &theKey) |
UnBind removes Item Key pair from map. | |
const TheItemType * | Seek (const TheKeyType &theKey) const |
Seek returns pointer to Item by Key. Returns NULL is Key was not bound. | |
const TheItemType & | Find (const TheKeyType &theKey) const |
Find returns the Item for Key. Raises if Key was not bound. | |
Standard_Boolean | Find (const TheKeyType &theKey, TheItemType &theValue) const |
Find Item for key with copying. | |
const TheItemType & | operator() (const TheKeyType &theKey) const |
operator () | |
TheItemType * | ChangeSeek (const TheKeyType &theKey) |
ChangeSeek returns modifiable pointer to Item by Key. Returns NULL is Key was not bound. | |
TheItemType & | ChangeFind (const TheKeyType &theKey) |
ChangeFind returns mofifiable Item by Key. Raises if Key was not bound. | |
TheItemType & | operator() (const TheKeyType &theKey) |
operator () | |
void | Clear (const Standard_Boolean doReleaseMemory=Standard_True) |
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_DataMap (void) |
Destructor. | |
Standard_Integer | Size (void) const |
Size. | |
![]() | |
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. | |
Additional Inherited Members | |
![]() | |
typedef TheKeyType | key_type |
STL-compliant typedef for key type. | |
typedef TheItemType | value_type |
STL-compliant typedef for value type. | |
typedef NCollection_StlIterator< std::forward_iterator_tag, Iterator, TheItemType, false > | iterator |
Shorthand for a regular iterator type. | |
typedef NCollection_StlIterator< std::forward_iterator_tag, Iterator, TheItemType, true > | const_iterator |
Shorthand for a constant iterator type. | |
![]() | |
Standard_Boolean | lookup (const TheKeyType &theKey, DataMapNode *&thepNode) const |
Lookup for particular key in map. Returns true if key is found and thepNode points to binded node. Returns false if key is not found, thehNode value is this case is not usable. | |
![]() | |
NCollection_BaseMap (const Standard_Integer NbBuckets, const Standard_Boolean single, const Handle< NCollection_BaseAllocator > &theAllocator) | |
Constructor. | |
virtual | ~NCollection_BaseMap () |
Destructor. | |
Standard_Boolean | BeginResize (const Standard_Integer NbBuckets, Standard_Integer &NewBuckets, NCollection_ListNode **&data1, NCollection_ListNode **&data2) const |
BeginResize. | |
void | EndResize (const Standard_Integer NbBuckets, const Standard_Integer NewBuckets, NCollection_ListNode **data1, NCollection_ListNode **data2) |
EndResize. | |
Standard_Boolean | Resizable () const |
Resizable. | |
Standard_Integer | Increment () |
Increment. | |
Standard_Integer | Decrement () |
Decrement. | |
void | Destroy (NCollection_DelMapNode fDel, Standard_Boolean doReleaseMemory=Standard_True) |
Destroy. | |
Standard_Integer | NextPrimeForMap (const Standard_Integer N) const |
NextPrimeForMap. | |
void | exchangeMapsData (NCollection_BaseMap &theOther) |
Exchange content of two maps without data copying. | |
![]() | |
Handle< NCollection_BaseAllocator > | myAllocator |
NCollection_ListNode ** | myData1 |
NCollection_ListNode ** | myData2 |
Retrieval 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_RRelocationTable::Clear | ( | const Standard_Boolean | doReleaseMemory = Standard_True | ) |
const Handle< Storage_HeaderData > & XmlObjMgt_RRelocationTable::GetHeaderData | ( | ) | const |
Returns a handle to the header data of the file that is begin read.
void XmlObjMgt_RRelocationTable::SetHeaderData | ( | const Handle< Storage_HeaderData > & | theHeaderData | ) |
Sets the storage header data.
theHeaderData | header data of the file that is begin read |