Salome HOME
This commit was generated by cvs2git to create branch 'IMPORT'.
[modules/smesh.git] / src / SMDS / SMDS_MeshEdge.hxx
1 // File generated by CPPExt (Transient)
2 //
3 //                     Copyright (C) 1991,1995 by
4 //  
5 //                      MATRA DATAVISION, FRANCE
6 //  
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.
12 //  
13 // At the termination of the contract, the software and all copies of this
14 // software must be deleted.
15 //
16 #ifndef _SMDS_MeshEdge_HeaderFile
17 #define _SMDS_MeshEdge_HeaderFile
18
19 #ifndef _Standard_HeaderFile
20 #include <Standard.hxx>
21 #endif
22 #ifndef _Handle_SMDS_MeshEdge_HeaderFile
23 #include "Handle_SMDS_MeshEdge.hxx"
24 #endif
25
26 #ifndef _Standard_Integer_HeaderFile
27 #include <Standard_Integer.hxx>
28 #endif
29 #ifndef _SMDS_MeshElement_HeaderFile
30 #include "SMDS_MeshElement.hxx"
31 #endif
32 #ifndef _Standard_Address_HeaderFile
33 #include <Standard_Address.hxx>
34 #endif
35 #ifndef _Standard_OStream_HeaderFile
36 #include <Standard_OStream.hxx>
37 #endif
38
39
40 class SMDS_MeshEdge : public SMDS_MeshElement {
41
42 public:
43
44     inline void* operator new(size_t,void* anAddress) 
45       {
46         return anAddress;
47       }
48     inline void* operator new(size_t size) 
49       { 
50         return Standard::Allocate(size); 
51       }
52     inline void  operator delete(void *anAddress) 
53       { 
54         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
55       }
56 //    inline void  operator delete(void *anAddress, size_t size) 
57 //      { 
58 //        if (anAddress) Standard::Free((Standard_Address&)anAddress,size); 
59 //      }
60  // Methods PUBLIC
61  // 
62 Standard_EXPORT SMDS_MeshEdge(const Standard_Integer ID,const Standard_Integer idnode1,const Standard_Integer idnode2);
63 Standard_EXPORT inline   void ComputeKey() ;
64 Standard_EXPORT inline   Standard_Integer GetKey() const;
65 Standard_EXPORT inline   Standard_Address GetConnections() const;
66 Standard_EXPORT inline   Standard_Integer GetConnection(const Standard_Integer rank) const;
67 Standard_EXPORT   void Print(Standard_OStream& OS) const;
68 Standard_EXPORT ~SMDS_MeshEdge();
69
70
71
72
73  // Type management
74  //
75  Standard_EXPORT friend Handle_Standard_Type& SMDS_MeshEdge_Type_();
76  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
77  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
78
79 protected:
80
81  // Methods PROTECTED
82  // 
83
84
85  // Fields PROTECTED
86  //
87
88
89 private: 
90
91  // Methods PRIVATE
92  // 
93 Standard_EXPORT   void SetConnections(const Standard_Integer idnode1,const Standard_Integer idnode2) ;
94
95
96  // Fields PRIVATE
97  //
98 Standard_Integer myKey;
99 Standard_Integer myNodes[2];
100
101
102 };
103
104
105 #include "SMDS_MeshEdge.lxx"
106
107
108
109 // other inline functions and methods (like "C++: function call" methods)
110 //
111
112
113 #endif