1 // File generated by CPPExt (Transient)
3 // Copyright (C) 1991,1995 by
5 // MATRA DATAVISION, FRANCE
7 // This software is furnished in accordance with the terms and conditions
8 // of the contract and with the inclusion of the above copyright notice.
9 // This software or any other copy thereof may not be provided or otherwise
10 // be made available to any other person. No title to an ownership of the
11 // software is hereby transferred.
13 // At the termination of the contract, the software and all copies of this
14 // software must be deleted.
16 #ifndef _SMDS_MeshElementIDFactory_HeaderFile
17 #define _SMDS_MeshElementIDFactory_HeaderFile
19 #ifndef _Standard_HeaderFile
20 #include <Standard.hxx>
22 #ifndef _Handle_SMDS_MeshElementIDFactory_HeaderFile
23 #include "Handle_SMDS_MeshElementIDFactory.hxx"
26 #ifndef _SMDS_DataMapOfIntegerMeshElement_HeaderFile
27 #include "SMDS_DataMapOfIntegerMeshElement.hxx"
29 #ifndef _SMDS_MeshIDFactory_HeaderFile
30 #include "SMDS_MeshIDFactory.hxx"
32 #ifndef _Standard_Integer_HeaderFile
33 #include <Standard_Integer.hxx>
35 #ifndef _Standard_Boolean_HeaderFile
36 #include <Standard_Boolean.hxx>
38 #ifndef _Handle_SMDS_MeshElement_HeaderFile
39 #include "Handle_SMDS_MeshElement.hxx"
41 class SMDS_MeshElement;
44 class SMDS_MeshElementIDFactory : public SMDS_MeshIDFactory {
48 inline void* operator new(size_t,void* anAddress)
52 inline void* operator new(size_t size)
54 return Standard::Allocate(size);
56 inline void operator delete(void *anAddress)
58 if (anAddress) Standard::Free((Standard_Address&)anAddress);
60 // inline void operator delete(void *anAddress, size_t size)
62 // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
66 Standard_EXPORT SMDS_MeshElementIDFactory();
67 Standard_EXPORT inline Standard_Integer GetFreeID() ;
68 Standard_EXPORT inline void ReleaseID(const Standard_Integer ID) ;
69 Standard_EXPORT inline Standard_Boolean BindID(const Standard_Integer ID,const Handle(SMDS_MeshElement)& elem) ;
70 Standard_EXPORT inline Handle_SMDS_MeshElement MeshElement(const Standard_Integer ID) const;
71 Standard_EXPORT ~SMDS_MeshElementIDFactory();
78 Standard_EXPORT friend Handle_Standard_Type& SMDS_MeshElementIDFactory_Type_();
79 Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
80 Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const;
100 SMDS_DataMapOfIntegerMeshElement myIDElements;
106 #include "SMDS_MeshElementIDFactory.lxx"
110 // other inline functions and methods (like "C++: function call" methods)