Salome HOME
This commit was generated by cvs2git to create branch 'IMPORT'.
[modules/smesh.git] / src / SMDS / SMDSControl.hxx
1 // File generated by CPPExt (Value)
2 //                     Copyright (C) 1991,1995 by
3 //  
4 //                      MATRA DATAVISION, FRANCE
5 //  
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.
11 //  
12 // At the termination of the contract, the software and all copies of this
13 // software must be deleted.
14
15 #ifndef _SMDSControl_HeaderFile
16 #define _SMDSControl_HeaderFile
17
18 #ifndef _Standard_Integer_HeaderFile
19 #include <Standard_Integer.hxx>
20 #endif
21 #ifndef _Handle_SMDS_Mesh_HeaderFile
22 #include "Handle_SMDS_Mesh.hxx"
23 #endif
24 #ifndef _Handle_SMDS_MeshElement_HeaderFile
25 #include "Handle_SMDS_MeshElement.hxx"
26 #endif
27 class SMDS_Mesh;
28 class SMDS_MeshElement;
29 class SMDSControl_MeshBoundary;
30 class SMDSControl_BoundaryEdges;
31 class SMDSControl_BoundaryFaces;
32
33
34 #ifndef _Standard_HeaderFile
35 #include <Standard.hxx>
36 #endif
37 #ifndef _Standard_Macro_HeaderFile
38 #include <Standard_Macro.hxx>
39 #endif
40
41 class SMDSControl  {
42
43 public:
44
45     inline void* operator new(size_t,void* anAddress) 
46       {
47         return anAddress;
48       }
49     inline void* operator new(size_t size) 
50       { 
51         return Standard::Allocate(size); 
52       }
53     inline void  operator delete(void *anAddress) 
54       { 
55         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
56       }
57 //    inline void  operator delete(void *anAddress, size_t size) 
58 //      { 
59 //        if (anAddress) Standard::Free((Standard_Address&)anAddress,size); 
60 //      }
61  // Methods PUBLIC
62  // 
63 Standard_EXPORT static  Standard_Integer ComputeNeighborFaces(const Handle(SMDS_Mesh)& M,const Handle(SMDS_MeshElement)& ME,const Standard_Integer idnode1,const Standard_Integer idnode2) ;
64 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) ;
65 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) ;
66
67
68
69
70
71 protected:
72
73  // Methods PROTECTED
74  // 
75
76
77  // Fields PROTECTED
78  //
79
80
81 private: 
82
83  // Methods PRIVATE
84  // 
85
86
87  // Fields PRIVATE
88  //
89
90 friend class SMDSControl_MeshBoundary;
91 friend class SMDSControl_BoundaryEdges;
92 friend class SMDSControl_BoundaryFaces;
93
94 };
95
96
97
98
99
100 // other inline functions and methods (like "C++: function call" methods)
101 //
102
103
104 #endif