]> SALOME platform Git repositories - modules/geom.git/blob - src/NMTDS/NMTDS_IndexRange.hxx
Salome HOME
Modified a method createAndDisplayGO
[modules/geom.git] / src / NMTDS / NMTDS_IndexRange.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 _NMTDS_IndexRange_HeaderFile
16 #define _NMTDS_IndexRange_HeaderFile
17
18 #ifndef _Standard_Integer_HeaderFile
19 #include <Standard_Integer.hxx>
20 #endif
21 #ifndef _Standard_Boolean_HeaderFile
22 #include <Standard_Boolean.hxx>
23 #endif
24
25
26 #ifndef _Standard_HeaderFile
27 #include <Standard.hxx>
28 #endif
29 #ifndef _Standard_Macro_HeaderFile
30 #include <Standard_Macro.hxx>
31 #endif
32
33 class NMTDS_IndexRange  {
34
35 public:
36
37     void* operator new(size_t,void* anAddress) 
38       {
39         return anAddress;
40       }
41     void* operator new(size_t size) 
42       { 
43         return Standard::Allocate(size); 
44       }
45     void  operator delete(void *anAddress) 
46       { 
47         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
48       }
49  // Methods PUBLIC
50  // 
51 Standard_EXPORT NMTDS_IndexRange();
52 Standard_EXPORT   void SetFirst(const Standard_Integer aFirst) ;
53 Standard_EXPORT   void SetLast(const Standard_Integer aLast) ;
54 Standard_EXPORT   Standard_Integer First() const;
55 Standard_EXPORT   Standard_Integer Last() const;
56 Standard_EXPORT   Standard_Boolean IsInRange(const Standard_Integer aIndex) const;
57
58
59
60
61
62 protected:
63
64  // Methods PROTECTED
65  // 
66
67
68  // Fields PROTECTED
69  //
70 Standard_Integer myFirst;
71 Standard_Integer myLast;
72
73
74 private: 
75
76  // Methods PRIVATE
77  // 
78
79
80  // Fields PRIVATE
81  //
82
83
84 };
85
86
87
88
89
90 // other Inline functions and methods (like "C++: function call" methods)
91 //
92
93
94 #endif