Root class of all the maps, provides utilitites for managing the buckets. Maps are dynamically extended data structures where data is quickly accessed with a key. General properties of maps.
More...
#include <TCollection_BasicMap.hxx>
Inherited by AIS_DataMapOfILC, AIS_DataMapofIntegerListOfinteractive, AIS_DataMapOfIOStatus, AIS_DataMapOfSelStat, AIS_IndexedDataMapOfOwnerPrs, AIS_MapOfInteractive, BinMDF_TypeADriverMap, BinMDF_TypeIdMap, BiTgte_DataMapOfShapeBox, BRepAlgo_DataMapOfShapeBoolean, BRepAlgo_DataMapOfShapeInterference, BRepCheck_DataMapOfShapeListOfStatus, BRepCheck_DataMapOfShapeResult, BRepClass3d_MapOfInter, BRepFill_DataMapOfNodeDataMapOfShapeShape, BRepFill_DataMapOfNodeShape, BRepFill_DataMapOfOrientedShapeListOfShape, BRepFill_DataMapOfShapeDataMapOfShapeListOfShape, BRepFill_DataMapOfShapeHArray2OfShape, BRepFill_DataMapOfShapeSequenceOfPnt, BRepFill_DataMapOfShapeSequenceOfReal, BRepFill_IndexedDataMapOfOrientedShapeListOfShape, BRepMAT2d_DataMapOfBasicEltShape, BRepMAT2d_DataMapOfShapeSequenceOfBasicElt, BRepOffset_DataMapOfShapeListOfInterval, BRepOffset_DataMapOfShapeMapOfShape, BRepOffset_DataMapOfShapeOffset, BRepTools_MapOfVertexPnt2d, BRepTopAdaptor_MapOfShapeTool, CDM_MapOfDocument, CDM_MetaDataLookUpTable, CDM_PresentationDirectory, ChFiDS_IndexedDataMapOfVertexListOfStripe, ChFiKPart_RstMap, DNaming_DataMapOfShapeOfName, Draft_DataMapOfEdgeEdgeInfo, Draft_DataMapOfFaceFaceInfo, Draft_DataMapOfVertexVertexInfo, Draw_MapOfAsciiString, Expr_MapOfNamedUnknown, Geom2dHatch_Hatchings, Geom2dHatch_MapOfElements, HLRTopoBRep_DataMapOfShapeFaceData, HLRTopoBRep_MapOfShapeListOfVData, Interface_DataMapOfTransientInteger, Interface_IndexedMapOfAsciiString, IntTools_DataMapOfCurveSampleBox, IntTools_DataMapOfSurfaceSampleBox, IntTools_IndexedDataMapOfTransientAddress, IntTools_MapOfCurveSample, IntTools_MapOfSurfaceSample, LocOpe_DataMapOfShapePnt, MAT2d_DataMapOfBiIntInteger, MAT2d_DataMapOfBiIntSequenceOfInteger, MAT2d_DataMapOfIntegerBisec, MAT2d_DataMapOfIntegerConnexion, MAT2d_DataMapOfIntegerPnt2d, MAT2d_DataMapOfIntegerSequenceOfConnexion, MAT2d_DataMapOfIntegerVec2d, MAT_DataMapOfIntegerArc, MAT_DataMapOfIntegerBasicElt, MAT_DataMapOfIntegerBisector, MAT_DataMapOfIntegerNode, MDF_TypeARDriverMap, MDF_TypeASDriverMap, MDF_TypeDriverListMapOfARDriverTable, MDF_TypeDriverListMapOfASDriverTable, MeshVS_DataMapOfColorMapOfInteger, MeshVS_DataMapOfHArray1OfSequenceOfInteger, MeshVS_DataMapOfIntegerAsciiString, MeshVS_DataMapOfIntegerBoolean, MeshVS_DataMapOfIntegerColor, MeshVS_DataMapOfIntegerMaterial, MeshVS_DataMapOfIntegerMeshEntityOwner, MeshVS_DataMapOfIntegerOwner, MeshVS_DataMapOfIntegerTwoColors, MeshVS_DataMapOfIntegerVector, MeshVS_DataMapOfTwoColorsMapOfInteger, MeshVS_MapOfTwoNodes, MoniTool_DataMapOfShapeTransient, MoniTool_DataMapOfTimer, MoniTool_IndexedDataMapOfShapeTransient, Plugin_MapOfFunctions, PTColStd_DoubleMapOfTransientPersistent, PTColStd_PersistentTransientMap, PTColStd_TransientPersistentMap, QANCollection_DataMapOfRealPnt, QANCollection_DoubleMapOfRealInteger, QANCollection_IndexedDataMapOfRealPnt, Resource_DataMapOfAsciiStringAsciiString, Resource_DataMapOfAsciiStringExtendedString, SelectMgr_DataMapOfObjectSelectors, SelectMgr_IndexedDataMapOfOwnerCriterion, SelectMgr_IndexedMapOfOwner, ShapeAnalysis_DataMapOfShapeListOfReal, ShapeExtend_DataMapOfShapeListOfMsg, ShapeExtend_DataMapOfTransientListOfMsg, ShapeFix_DataMapOfShapeBox2d, StdSelect_IndexedDataMapOfOwnerPrs, STEPCAFControl_DataMapOfLabelExternFile, STEPCAFControl_DataMapOfLabelShape, STEPCAFControl_DataMapOfPDExternFile, STEPCAFControl_DataMapOfSDRExternFile, STEPCAFControl_DataMapOfShapePD, STEPCAFControl_DataMapOfShapeSDR, STEPConstruct_DataMapOfAsciiStringTransient, STEPConstruct_DataMapOfPointTransient, StepToTopoDS_DataMapOfRI, StepToTopoDS_DataMapOfRINames, StepToTopoDS_DataMapOfTRI, StepToTopoDS_PointEdgeMap, StepToTopoDS_PointVertexMap, Storage_MapOfCallBack, Storage_MapOfPers, Storage_PType, TColStd_DataMapOfAsciiStringInteger, TColStd_DataMapOfIntegerInteger, TColStd_DataMapOfIntegerListOfInteger, TColStd_DataMapOfIntegerReal, TColStd_DataMapOfIntegerTransient, TColStd_DataMapOfStringInteger, TColStd_DataMapOfTransientTransient, TColStd_IndexedDataMapOfTransientTransient, TColStd_IndexedMapOfInteger, TColStd_IndexedMapOfReal, TColStd_IndexedMapOfTransient, TColStd_MapOfAsciiString, TColStd_MapOfInteger, TColStd_MapOfReal, TColStd_MapOfTransient, TColStd_PackedMapOfInteger [private]
, TDataStd_DataMapOfStringByte, TDataStd_DataMapOfStringHArray1OfInteger, TDataStd_DataMapOfStringHArray1OfReal, TDataStd_DataMapOfStringReal, TDataStd_DataMapOfStringString, TDF_AttributeDataMap, TDF_AttributeDoubleMap, TDF_AttributeIndexedMap, TDF_AttributeMap, TDF_GUIDProgIDMap, TDF_IDMap, TDF_LabelDataMap, TDF_LabelDoubleMap, TDF_LabelIndexedMap, TDF_LabelIntegerMap, TDF_LabelMap, TDocStd_LabelIDMapDataMap, TFunction_DataMapOfGUIDDriver, TFunction_DataMapOfLabelListOfLabel, TFunction_DoubleMapOfIntegerLabel, TNaming_DataMapOfShapePtrRefShape, TNaming_DataMapOfShapeShapesSet, TNaming_MapOfNamedShape, TopLoc_IndexedMapOfLocation, TopLoc_MapOfLocation, TopOpeBRep_DataMapOfTopolTool, TopOpeBRepBuild_DataMapOfShapeListOfShapeListOfShape, TopOpeBRepBuild_IndexedDataMapOfShapeVertexInfo, TopOpeBRepDS_DataMapOfCheckStatus, TopOpeBRepDS_DataMapOfIntegerListOfInterference, TopOpeBRepDS_DataMapOfInterferenceListOfInterference, TopOpeBRepDS_DataMapOfInterferenceShape, TopOpeBRepDS_DataMapOfShapeListOfShapeOn1State, TopOpeBRepDS_DataMapOfShapeState, TopOpeBRepDS_DoubleMapOfIntegerShape, TopOpeBRepDS_IndexedDataMapOfShapeWithState, TopOpeBRepDS_IndexedDataMapOfVertexPoint, TopOpeBRepDS_MapOfCurve, TopOpeBRepDS_MapOfIntegerShapeData, TopOpeBRepDS_MapOfPoint, TopOpeBRepDS_MapOfShapeData, TopOpeBRepDS_MapOfSurface, TopOpeBRepDS_ShapeSurface, TopOpeBRepTool_DataMapOfOrientedShapeC2DF, TopOpeBRepTool_DataMapOfShapeface, TopOpeBRepTool_DataMapOfShapeListOfC2DF, TopOpeBRepTool_IndexedDataMapOfShapeBox, TopOpeBRepTool_IndexedDataMapOfShapeBox2d, TopOpeBRepTool_IndexedDataMapOfShapeconnexity, TopOpeBRepTool_IndexedDataMapOfSolidClassifier, TopTools_DataMapOfIntegerListOfShape, TopTools_DataMapOfIntegerShape, TopTools_DataMapOfOrientedShapeInteger, TopTools_DataMapOfOrientedShapeShape, TopTools_DataMapOfShapeInteger, TopTools_DataMapOfShapeListOfInteger, TopTools_DataMapOfShapeListOfShape, TopTools_DataMapOfShapeReal, TopTools_DataMapOfShapeSequenceOfShape, TopTools_DataMapOfShapeShape, TopTools_IndexedDataMapOfShapeAddress, TopTools_IndexedDataMapOfShapeListOfShape, TopTools_IndexedDataMapOfShapeShape, TopTools_IndexedMapOfOrientedShape, TopTools_IndexedMapOfShape, TopTools_MapOfOrientedShape, TopTools_MapOfShape, TPrsStd_DataMapOfGUIDDriver, Transfer_TransferMapOfProcessForFinder, Transfer_TransferMapOfProcessForTransient, ViewerTest_DoubleMapOfInteractiveAndName, XCAFDoc_DataMapOfShapeLabel, XCAFPrs_DataMapOfShapeStyle, XCAFPrs_DataMapOfStyleShape, XCAFPrs_DataMapOfStyleTransient, XmlMDF_MapOfDriver, XmlMDF_TypeADriverMap, XSDRAWSTLVRML_CoordsMap, and XSDRAWSTLVRML_ElemNodesMap.
Root class of all the maps, provides utilitites for managing the buckets. Maps are dynamically extended data structures where data is quickly accessed with a key. General properties of maps.
- Map items may be (complex) non-unitary data; they may be difficult to manage with an array. Moreover, the map allows a data structure to be indexed by complex data.
- The size of a map is dynamically extended. So a map may be first dimensioned for a little number of items. Maps avoid the use of large and quasi-empty arrays.
- The access to a map item is much faster than the one to a sequence, a list, a queue or a stack item.
- The access time to a map item may be compared with the one to an array item. First of all, it depends on the size of the map. It also depends on the quality of a user redefinable function (the hashing function) to find quickly where the item is.
- The exploration of a map may be of better performance than the exploration of an array because the size of the map is adapted to the number of inserted items. These properties explain why maps are commonly used as internal data structures for algorithms. Definitions
- A map is a data structure for which data is addressed by keys.
- Once inserted in the map, a map item is referenced as an entry of the map.
- Each entry of the map is addressed by a key. Two different keys address two different entries of the map.
- The position of an entry in the map is called a bucket.
- A map is dimensioned by its number of buckets, i.e. the maximum number of entries in the map. The performance of a map is conditioned by the number of buckets.
- The hashing function transforms a key into a bucket index. The number of values that can be computed by the hashing function is equal to the number of buckets of the map.
- Both the hashing function and the equality test between two keys are provided by a hasher object.
- A map may be explored by a map iterator. This exploration provides only inserted entries in the map (i.e. non empty buckets). Collections' generic maps The Collections component provides numerous generic derived maps.
- These maps include automatic management of the number of buckets: they are automatically resized when the number of keys exceeds the number of buckets. If you have a fair idea of the number of items in your map, you can save on automatic resizing by specifying a number of buckets at the time of construction, or by using a resizing function. This may be considered for crucial optimization issues.
- Keys, items and hashers are parameters of these generic derived maps.
- TCollection_MapHasher class describes the functions required by any hasher which is to be used with a map instantiated from the Collections component.
- An iterator class is automatically instantiated at the time of instantiation of a map provided by the Collections component if this map is to be explored with an iterator. Note that some provided generic maps are not to be explored with an iterator but with indexes (indexed maps).
Initialize the map. Single is True when the map uses only one table of buckets.
One table : Map, DataMap Two tables : DoubleMap, IndexedMap, IndexedDataMap
Tries to resize the Map with NbBuckets. Returns True if possible, NewBuckts is the new nuber of buckets. data1 and data2 are the new tables of buckets where the data must be copied.
void TCollection_BasicMap::Decrement |
( |
| ) |
|
|
protected |
Decrement the extent of the map.
void TCollection_BasicMap::Destroy |
( |
| ) |
|
|
protected |
If BeginResize was succesfull after copying the data to data1 and data2 this methods update the tables and destroys the old ones.
Returns the number of keys already stored in <me>.
void TCollection_BasicMap::Increment |
( |
| ) |
|
|
protected |
Decrement the extent of the map.
Returns True when the map contains no keys. This is exactly Extent() == 0.
Returns the number of buckets in <me>.
Returns True if resizing the map should be considered.
Prints on <S> usefull statistics about the map <me>. It can be used to test the quality of the hashcoding.
The documentation for this class was generated from the following file: