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 _SMESHDS_SubMesh_HeaderFile
17 #define _SMESHDS_SubMesh_HeaderFile
19 #ifndef _Standard_HeaderFile
20 #include <Standard.hxx>
22 #ifndef _Handle_SMESHDS_SubMesh_HeaderFile
23 #include "Handle_SMESHDS_SubMesh.hxx"
26 #ifndef _Handle_SMDS_Mesh_HeaderFile
27 #include "Handle_SMDS_Mesh.hxx"
29 #ifndef _SMDS_MapOfMeshElement_HeaderFile
30 #include "SMDS_MapOfMeshElement.hxx"
32 #ifndef _Standard_Boolean_HeaderFile
33 #include <Standard_Boolean.hxx>
35 #ifndef _TColStd_ListOfInteger_HeaderFile
36 #include <TColStd_ListOfInteger.hxx>
38 #ifndef _MMgt_TShared_HeaderFile
39 #include <MMgt_TShared.hxx>
41 #ifndef _Handle_SMDS_MeshElement_HeaderFile
42 #include "Handle_SMDS_MeshElement.hxx"
44 #ifndef _Handle_SMDS_MeshNode_HeaderFile
45 #include "Handle_SMDS_MeshNode.hxx"
47 #ifndef _Standard_Integer_HeaderFile
48 #include <Standard_Integer.hxx>
51 class SMDS_MeshElement;
53 class SMDS_MapOfMeshElement;
54 class TColStd_ListOfInteger;
57 class SMESHDS_SubMesh : public MMgt_TShared {
61 inline void* operator new(size_t,void* anAddress)
65 inline void* operator new(size_t size)
67 return Standard::Allocate(size);
69 inline void operator delete(void *anAddress)
71 if (anAddress) Standard::Free((Standard_Address&)anAddress);
73 // inline void operator delete(void *anAddress, size_t size)
75 // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
79 Standard_EXPORT SMESHDS_SubMesh(const Handle(SMDS_Mesh)& M);
80 Standard_EXPORT void AddElement(const Handle(SMDS_MeshElement)& ME) ;
81 Standard_EXPORT void RemoveElement(const Handle(SMDS_MeshElement)& ME) ;
82 Standard_EXPORT void AddNode(const Handle(SMDS_MeshNode)& ME) ;
83 Standard_EXPORT void RemoveNode(const Handle(SMDS_MeshNode)& ME) ;
84 Standard_EXPORT Standard_Integer NbElements() ;
85 Standard_EXPORT const SMDS_MapOfMeshElement& GetElements() ;
86 Standard_EXPORT const TColStd_ListOfInteger& GetIDElements() ;
87 Standard_EXPORT Standard_Integer NbNodes() ;
88 Standard_EXPORT const SMDS_MapOfMeshElement& GetNodes() ;
89 Standard_EXPORT const TColStd_ListOfInteger& GetIDNodes() ;
90 Standard_EXPORT ~SMESHDS_SubMesh();
97 Standard_EXPORT friend Handle_Standard_Type& SMESHDS_SubMesh_Type_();
98 Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
99 Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const;
119 Handle_SMDS_Mesh myMesh;
120 SMDS_MapOfMeshElement myElements;
121 SMDS_MapOfMeshElement myNodes;
122 Standard_Boolean myListOfEltIDIsUpdate;
123 TColStd_ListOfInteger myListOfEltID;
124 Standard_Boolean myListOfNodeIDIsUpdate;
125 TColStd_ListOfInteger myListOfNodeID;
134 // other inline functions and methods (like "C++: function call" methods)