1 // SMESH SMDS : implementaion of Salome mesh data structure
3 // Copyright (C) 2003 OPEN CASCADE
5 // This library is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation; either
8 // version 2.1 of the License.
10 // This library is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // Lesser General Public License for more details.
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with this library; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 // See http://www.opencascade.org or email : webmaster@opencascade.org
23 // File : SMDSControl.hxx
26 #ifndef _SMDSControl_HeaderFile
27 #define _SMDSControl_HeaderFile
29 #ifndef _Standard_Integer_HeaderFile
30 #include <Standard_Integer.hxx>
32 #ifndef _Handle_SMDS_Mesh_HeaderFile
33 #include "Handle_SMDS_Mesh.hxx"
35 #ifndef _Handle_SMDS_MeshElement_HeaderFile
36 #include "Handle_SMDS_MeshElement.hxx"
39 class SMDS_MeshElement;
40 class SMDSControl_MeshBoundary;
41 class SMDSControl_BoundaryEdges;
42 class SMDSControl_BoundaryFaces;
45 #ifndef _Standard_HeaderFile
46 #include <Standard.hxx>
48 #ifndef _Standard_Macro_HeaderFile
49 #include <Standard_Macro.hxx>
56 inline void* operator new(size_t,void* anAddress)
60 inline void* operator new(size_t size)
62 return Standard::Allocate(size);
64 inline void operator delete(void *anAddress)
66 if (anAddress) Standard::Free((Standard_Address&)anAddress);
68 // inline void operator delete(void *anAddress, size_t size)
70 // if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
74 Standard_EXPORT static Standard_Integer ComputeNeighborFaces(const Handle(SMDS_Mesh)& M,const Handle(SMDS_MeshElement)& ME,const Standard_Integer idnode1,const Standard_Integer idnode2) ;
75 Standard_EXPORT static Standard_Integer ComputeNeighborVolumes(const Handle(SMDS_Mesh)& M,const Handle(SMDS_MeshElement)& ME,const Standard_Integer idnode1,const Standard_Integer idnode2,const Standard_Integer idnode3) ;
76 Standard_EXPORT static Standard_Integer ComputeNeighborVolumes(const Handle(SMDS_Mesh)& M,const Handle(SMDS_MeshElement)& ME,const Standard_Integer idnode1,const Standard_Integer idnode2,const Standard_Integer idnode3,const Standard_Integer idnode4) ;
101 friend class SMDSControl_MeshBoundary;
102 friend class SMDSControl_BoundaryEdges;
103 friend class SMDSControl_BoundaryFaces;
111 // other inline functions and methods (like "C++: function call" methods)