1 // File generated by CPPExt (Value)
2 // Copyright (C) 1991,1995 by
4 // MATRA DATAVISION, FRANCE
6 // This software is furnished in accordance with the terms and conditions
7 // of the contract and with the inclusion of the above copyright notice.
8 // This software or any other copy thereof may not be provided or otherwise
9 // be made available to any other person. No title to an ownership of the
10 // software is hereby transferred.
12 // At the termination of the contract, the software and all copies of this
13 // software must be deleted.
15 #ifndef _NMTTools_IndexedDataMapOfIndexedMapOfInteger_HeaderFile
16 #define _NMTTools_IndexedDataMapOfIndexedMapOfInteger_HeaderFile
18 #ifndef _TCollection_BasicMap_HeaderFile
19 #include <TCollection_BasicMap.hxx>
21 #ifndef _Standard_Integer_HeaderFile
22 #include <Standard_Integer.hxx>
24 #ifndef _Handle_NMTTools_IndexedDataMapNodeOfIndexedDataMapOfIndexedMapOfInteger_HeaderFile
25 #include <Handle_NMTTools_IndexedDataMapNodeOfIndexedDataMapOfIndexedMapOfInteger.hxx>
27 #ifndef _Standard_Boolean_HeaderFile
28 #include <Standard_Boolean.hxx>
30 class Standard_DomainError;
31 class Standard_OutOfRange;
32 class Standard_NoSuchObject;
33 class TColStd_IndexedMapOfInteger;
34 class TColStd_MapIntegerHasher;
35 class NMTTools_IndexedDataMapNodeOfIndexedDataMapOfIndexedMapOfInteger;
38 #ifndef _Standard_HeaderFile
39 #include <Standard.hxx>
41 #ifndef _Standard_Macro_HeaderFile
42 #include <Standard_Macro.hxx>
45 class NMTTools_IndexedDataMapOfIndexedMapOfInteger : public TCollection_BasicMap {
49 void* operator new(size_t,void* anAddress)
53 void* operator new(size_t size)
55 return Standard::Allocate(size);
57 void operator delete(void *anAddress)
59 if (anAddress) Standard::Free((Standard_Address&)anAddress);
63 Standard_EXPORT NMTTools_IndexedDataMapOfIndexedMapOfInteger(const Standard_Integer NbBuckets = 1);
64 Standard_EXPORT NMTTools_IndexedDataMapOfIndexedMapOfInteger& Assign(const NMTTools_IndexedDataMapOfIndexedMapOfInteger& Other) ;
65 NMTTools_IndexedDataMapOfIndexedMapOfInteger& operator =(const NMTTools_IndexedDataMapOfIndexedMapOfInteger& Other)
70 Standard_EXPORT void ReSize(const Standard_Integer NbBuckets) ;
71 Standard_EXPORT void Clear() ;
72 ~NMTTools_IndexedDataMapOfIndexedMapOfInteger()
77 Standard_EXPORT Standard_Integer Add(const Standard_Integer& K,const TColStd_IndexedMapOfInteger& I) ;
78 Standard_EXPORT void Substitute(const Standard_Integer I,const Standard_Integer& K,const TColStd_IndexedMapOfInteger& T) ;
79 Standard_EXPORT void RemoveLast() ;
80 Standard_EXPORT Standard_Boolean Contains(const Standard_Integer& K) const;
81 Standard_EXPORT const Standard_Integer& FindKey(const Standard_Integer I) const;
82 Standard_EXPORT const TColStd_IndexedMapOfInteger& FindFromIndex(const Standard_Integer I) const;
83 const TColStd_IndexedMapOfInteger& operator ()(const Standard_Integer I) const
85 return FindFromIndex(I);
88 Standard_EXPORT TColStd_IndexedMapOfInteger& ChangeFromIndex(const Standard_Integer I) ;
89 TColStd_IndexedMapOfInteger& operator ()(const Standard_Integer I)
91 return ChangeFromIndex(I);
94 Standard_EXPORT Standard_Integer FindIndex(const Standard_Integer& K) const;
95 Standard_EXPORT const TColStd_IndexedMapOfInteger& FindFromKey(const Standard_Integer& K) const;
96 Standard_EXPORT TColStd_IndexedMapOfInteger& ChangeFromKey(const Standard_Integer& K) ;
116 Standard_EXPORT NMTTools_IndexedDataMapOfIndexedMapOfInteger(const NMTTools_IndexedDataMapOfIndexedMapOfInteger& Other);
129 // other Inline functions and methods (like "C++: function call" methods)