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 _SMDS_DataMapOfPntInteger_HeaderFile
16 #define _SMDS_DataMapOfPntInteger_HeaderFile
18 #ifndef _TCollection_BasicMap_HeaderFile
19 #include <TCollection_BasicMap.hxx>
21 #ifndef _Standard_Integer_HeaderFile
22 #include <Standard_Integer.hxx>
24 #ifndef _Handle_SMDS_DataMapNodeOfDataMapOfPntInteger_HeaderFile
25 #include "Handle_SMDS_DataMapNodeOfDataMapOfPntInteger.hxx"
27 #ifndef _Standard_Boolean_HeaderFile
28 #include <Standard_Boolean.hxx>
30 class Standard_DomainError;
31 class Standard_NoSuchObject;
34 class SMDS_DataMapNodeOfDataMapOfPntInteger;
35 class SMDS_DataMapIteratorOfDataMapOfPntInteger;
38 #ifndef _Standard_HeaderFile
39 #include <Standard.hxx>
41 #ifndef _Standard_Macro_HeaderFile
42 #include <Standard_Macro.hxx>
45 class SMDS_DataMapOfPntInteger : public TCollection_BasicMap {
49 inline void* operator new(size_t,void* anAddress)
53 inline void* operator new(size_t size)
55 return Standard::Allocate(size);
57 inline void operator delete(void *anAddress)
59 if (anAddress) Standard::Free((Standard_Address&)anAddress);
61 // inline void operator delete(void *anAddress, size_t size)
63 // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
67 Standard_EXPORT SMDS_DataMapOfPntInteger(const Standard_Integer NbBuckets = 1);
68 Standard_EXPORT SMDS_DataMapOfPntInteger& Assign(const SMDS_DataMapOfPntInteger& Other) ;
69 SMDS_DataMapOfPntInteger& operator =(const SMDS_DataMapOfPntInteger& Other)
74 Standard_EXPORT void ReSize(const Standard_Integer NbBuckets) ;
75 Standard_EXPORT void Clear() ;
76 ~SMDS_DataMapOfPntInteger()
81 Standard_EXPORT Standard_Boolean Bind(const gp_Pnt& K,const Standard_Integer& I) ;
82 Standard_EXPORT Standard_Boolean IsBound(const gp_Pnt& K) const;
83 Standard_EXPORT Standard_Boolean UnBind(const gp_Pnt& K) ;
84 Standard_EXPORT const Standard_Integer& Find(const gp_Pnt& K) const;
85 const Standard_Integer& operator()(const gp_Pnt& K) const
90 Standard_EXPORT Standard_Integer& ChangeFind(const gp_Pnt& K) ;
91 Standard_Integer& operator()(const gp_Pnt& K)
115 Standard_EXPORT SMDS_DataMapOfPntInteger(const SMDS_DataMapOfPntInteger& Other);
128 // other inline functions and methods (like "C++: function call" methods)