![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Stored relocation table is modeled as a child class of NCollection_DataMap<int, occ::handle<Standard_Transient>> 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 occ::handle< Storage_HeaderData > & | GetHeaderData () const |
| Returns a handle to the header data of the file that is begin read. | |
| void | SetHeaderData (const occ::handle< Storage_HeaderData > &theHeaderData) |
| Sets the storage header data. | |
| void | Clear (const bool doReleaseMemory=true) |
Public Member Functions inherited from NCollection_IndexedMap< occ::handle< Standard_Transient > > | |
| iterator | begin () const noexcept |
| Returns an iterator pointing to the first element in the map. | |
| iterator | end () const noexcept |
| Returns an iterator referring to the past-the-end element in the map. | |
| const_iterator | cbegin () const noexcept |
| Returns a const iterator pointing to the first element in the map. | |
| const_iterator | cend () const noexcept |
| Returns a const iterator referring to the past-the-end element in the map. | |
| IndexedItemsView | IndexedItems () const |
| Returns a view for key-index pair iteration. Usage: for (auto [aKey, anIndex] : aMap.IndexedItems()) | |
| NCollection_IndexedMap () | |
| Empty constructor. | |
| NCollection_IndexedMap (const size_t theNbBuckets, const occ::handle< NCollection_BaseAllocator > &theAllocator=nullptr) | |
| Constructor. | |
| NCollection_IndexedMap (const int theNbBuckets, const occ::handle< NCollection_BaseAllocator > &theAllocator=nullptr) | |
| Constructor (legacy int-taking). | |
| NCollection_IndexedMap (const NCollection_DefaultHasher< occ::handle< Standard_Transient > > &theHasher, const size_t theNbBuckets=1, const occ::handle< NCollection_BaseAllocator > &theAllocator=nullptr) | |
| Constructor with custom hasher (copy). | |
| NCollection_IndexedMap (const NCollection_DefaultHasher< occ::handle< Standard_Transient > > &theHasher, const int theNbBuckets, const occ::handle< NCollection_BaseAllocator > &theAllocator=nullptr) | |
| Constructor with custom hasher (copy, legacy int-taking). | |
| NCollection_IndexedMap (NCollection_DefaultHasher< occ::handle< Standard_Transient > > &&theHasher, const size_t theNbBuckets=1, const occ::handle< NCollection_BaseAllocator > &theAllocator=nullptr) | |
| Constructor with custom hasher (move). | |
| NCollection_IndexedMap (NCollection_DefaultHasher< occ::handle< Standard_Transient > > &&theHasher, const int theNbBuckets, const occ::handle< NCollection_BaseAllocator > &theAllocator=nullptr) | |
| Constructor with custom hasher (move, legacy int-taking). | |
| NCollection_IndexedMap (const NCollection_IndexedMap &theOther) | |
| Copy constructor. | |
| NCollection_IndexedMap (NCollection_IndexedMap &&theOther) noexcept | |
| Move constructor. | |
| void | Exchange (NCollection_IndexedMap &theOther) noexcept |
| Exchange the content of two maps without re-allocations. Notice that allocators will be swapped as well! | |
| const NCollection_DefaultHasher< occ::handle< Standard_Transient > > & | GetHasher () const noexcept |
| Returns const reference to the hasher. | |
| 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 size_t theExtent) |
| ReSize. | |
| void | ReSize (const int theExtent) |
| int | Add (const occ::handle< Standard_Transient > &theKey1) |
| Add adds a new key to the map. | |
| int | Add (occ::handle< Standard_Transient > &&theKey1) |
| Add adds a new key to the map. | |
| const occ::handle< Standard_Transient > & | Added (const occ::handle< Standard_Transient > &theKey1) |
| Added: add a new key if not yet in the map, and return reference to either newly added or previously existing key. | |
| const occ::handle< Standard_Transient > & | Added (occ::handle< Standard_Transient > &&theKey1) |
| Added: add a new key if not yet in the map, and return reference to either newly added or previously existing key. | |
| int | Emplace (Args &&... theArgs) |
| Emplace constructs key in-place; if key exists, destroys and reconstructs. | |
| const occ::handle< Standard_Transient > & | Emplaced (Args &&... theArgs) |
| Emplaced constructs key in-place; if key exists, overwrites. | |
| int | TryEmplace (Args &&... theArgs) |
| TryEmplace constructs key in-place only if not already present. | |
| const occ::handle< Standard_Transient > & | TryEmplaced (Args &&... theArgs) |
| TryEmplaced constructs key in-place only if not already present. | |
| bool | Contains (const occ::handle< Standard_Transient > &theKey1) const |
| Contains. | |
| std::optional< std::reference_wrapper< const occ::handle< Standard_Transient > > > | Contained (const occ::handle< Standard_Transient > &theKey1) const |
| Contained returns optional const reference to the key in the map. Returns std::nullopt if the key is not found. | |
| void | Substitute (const size_t theIndex, const occ::handle< Standard_Transient > &theKey1) |
| Substitute. | |
| void | Substitute (const int theIndex, const occ::handle< Standard_Transient > &theKey1) |
| void | Swap (const size_t theIndex1, const size_t theIndex2) |
| Swaps two elements with the given indices. | |
| void | Swap (const int theIndex1, const int theIndex2) |
| void | RemoveLast () |
| RemoveLast. | |
| void | RemoveFromIndex (const size_t theIndex) |
| Remove the key of the given index. Caution! The index of the last key can be changed. | |
| void | RemoveFromIndex (const int theIndex) |
| bool | RemoveKey (const occ::handle< Standard_Transient > &theKey1) |
| Remove the given key. Caution! The index of the last key can be changed. | |
| const occ::handle< Standard_Transient > & | FindKey (const size_t theIndex) const |
| FindKey. | |
| const occ::handle< Standard_Transient > & | FindKey (const int theIndex) const |
| const occ::handle< Standard_Transient > & | operator() (const size_t theIndex) const |
| operator () | |
| const occ::handle< Standard_Transient > & | operator() (const int theIndex) const |
| int | FindIndex (const occ::handle< Standard_Transient > &theKey1) const |
| FindIndex. | |
| void | Clear (const bool doReleaseMemory=false) |
| Clear data. If doReleaseMemory is false then the table of buckets is not released and will be reused. | |
| void | Clear (const occ::handle< NCollection_BaseAllocator > &theAllocator) |
| Clear data and reset allocator. | |
| ~NCollection_IndexedMap () override | |
| Destructor. | |
Public Member Functions inherited from NCollection_BaseMap | |
| size_t | NbBuckets () const noexcept |
| NbBuckets. | |
| int | Extent () const noexcept |
| Extent (number of elements, legacy int-returning API). | |
| int | Length () const noexcept |
| Length - number of elements (legacy int-returning API, synonym of Extent()). | |
| size_t | Size () const noexcept |
| Size - number of elements. | |
| bool | IsEmpty () const noexcept |
| IsEmpty. | |
| const occ::handle< NCollection_BaseAllocator > & | Allocator () const noexcept |
| Returns attached allocator. | |
Stored relocation table is modeled as a child class of NCollection_DataMap<int, occ::handle<Standard_Transient>> that stores a handle to the file header section. With that attribute drivers have access to the file header section.
| const occ::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 occ::handle< Storage_HeaderData > & | theHeaderData | ) |
Sets the storage header data.
| theHeaderData | header data of the file that is begin read |