Open CASCADE Technology  7.6.0
Public Member Functions

RWGltf_GltfSceneNodeMap Class Reference

Indexed map of scene nodes with custom search algorithm. More...

#include <RWGltf_GltfSceneNodeMap.hxx>

Inheritance diagram for RWGltf_GltfSceneNodeMap:
Inheritance graph
[legend]

Public Member Functions

 RWGltf_GltfSceneNodeMap ()
 Empty constructor. More...
 
Standard_Integer FindIndex (const TCollection_AsciiString &theNodeId) const
 Find index from document node string identifier. More...
 
- Public Member Functions inherited from NCollection_IndexedMap< XCAFPrs_DocumentNode, XCAFPrs_DocumentNode >
const_iterator cbegin () const
 Returns a const iterator pointing to the first element in the map. More...
 
const_iterator cend () const
 Returns a const iterator referring to the past-the-end element in the map. More...
 
 NCollection_IndexedMap ()
 Empty constructor. More...
 
 NCollection_IndexedMap (const Standard_Integer theNbBuckets, const Handle< NCollection_BaseAllocator > &theAllocator=0L)
 Constructor. More...
 
 NCollection_IndexedMap (const NCollection_IndexedMap &theOther)
 Copy constructor. More...
 
void Exchange (NCollection_IndexedMap &theOther)
 Exchange the content of two maps without re-allocations. Notice that allocators will be swapped as well! More...
 
NCollection_IndexedMapAssign (const NCollection_IndexedMap &theOther)
 Assign. This method does not change the internal allocator. More...
 
NCollection_IndexedMapoperator= (const NCollection_IndexedMap &theOther)
 Assignment operator. More...
 
void ReSize (const Standard_Integer theExtent)
 ReSize. More...
 
Standard_Integer Add (const XCAFPrs_DocumentNode &theKey1)
 Add. More...
 
Standard_Boolean Contains (const XCAFPrs_DocumentNode &theKey1) const
 Contains. More...
 
void Substitute (const Standard_Integer theIndex, const XCAFPrs_DocumentNode &theKey1)
 Substitute. More...
 
void Swap (const Standard_Integer theIndex1, const Standard_Integer theIndex2)
 Swaps two elements with the given indices. More...
 
void RemoveLast (void)
 RemoveLast. More...
 
void RemoveFromIndex (const Standard_Integer theIndex)
 Remove the key of the given index. Caution! The index of the last key can be changed. More...
 
Standard_Boolean RemoveKey (const XCAFPrs_DocumentNode &theKey1)
 Remove the given key. Caution! The index of the last key can be changed. More...
 
const XCAFPrs_DocumentNodeFindKey (const Standard_Integer theIndex) const
 FindKey. More...
 
const XCAFPrs_DocumentNodeoperator() (const Standard_Integer theIndex) const
 operator () More...
 
Standard_Integer FindIndex (const XCAFPrs_DocumentNode &theKey1) const
 FindIndex. More...
 
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. More...
 
void Clear (const Handle< NCollection_BaseAllocator > &theAllocator)
 Clear data and reset allocator. More...
 
virtual ~NCollection_IndexedMap (void)
 Destructor. More...
 
Standard_Integer Size (void) const
 Size. More...
 
- Public Member Functions inherited from NCollection_BaseMap
Standard_Integer NbBuckets () const
 NbBuckets. More...
 
Standard_Integer Extent () const
 Extent. More...
 
Standard_Boolean IsEmpty () const
 IsEmpty. More...
 
void Statistics (Standard_OStream &S) const
 Statistics. More...
 
const Handle< NCollection_BaseAllocator > & Allocator () const
 Returns attached allocator. More...
 

Additional Inherited Members

- Public Types inherited from NCollection_IndexedMap< XCAFPrs_DocumentNode, XCAFPrs_DocumentNode >
typedef XCAFPrs_DocumentNode key_type
 STL-compliant typedef for key type. More...
 
typedef NCollection_StlIterator< std::forward_iterator_tag, Iterator, XCAFPrs_DocumentNode, true > const_iterator
 Shorthand for a constant iterator type. More...
 
- Protected Member Functions inherited from NCollection_BaseMap
 NCollection_BaseMap (const Standard_Integer NbBuckets, const Standard_Boolean single, const Handle< NCollection_BaseAllocator > &theAllocator)
 Constructor. More...
 
virtual ~NCollection_BaseMap ()
 Destructor. More...
 
Standard_Boolean BeginResize (const Standard_Integer NbBuckets, Standard_Integer &NewBuckets, NCollection_ListNode **&data1, NCollection_ListNode **&data2) const
 BeginResize. More...
 
void EndResize (const Standard_Integer NbBuckets, const Standard_Integer NewBuckets, NCollection_ListNode **data1, NCollection_ListNode **data2)
 EndResize. More...
 
Standard_Boolean Resizable () const
 Resizable. More...
 
Standard_Integer Increment ()
 Increment. More...
 
Standard_Integer Decrement ()
 Decrement. More...
 
void Destroy (NCollection_DelMapNode fDel, Standard_Boolean doReleaseMemory=Standard_True)
 Destroy. More...
 
Standard_Integer NextPrimeForMap (const Standard_Integer N) const
 NextPrimeForMap. More...
 
void exchangeMapsData (NCollection_BaseMap &theOther)
 Exchange content of two maps without data copying. More...
 
- Protected Attributes inherited from NCollection_BaseMap
Handle< NCollection_BaseAllocatormyAllocator
 
NCollection_ListNode ** myData1
 
NCollection_ListNode ** myData2
 

Detailed Description

Indexed map of scene nodes with custom search algorithm.

Constructor & Destructor Documentation

◆ RWGltf_GltfSceneNodeMap()

RWGltf_GltfSceneNodeMap::RWGltf_GltfSceneNodeMap ( )
inline

Empty constructor.

Member Function Documentation

◆ FindIndex()

Standard_Integer RWGltf_GltfSceneNodeMap::FindIndex ( const TCollection_AsciiString theNodeId) const
inline

Find index from document node string identifier.


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