b311480e |
1 | // Created on: 2002-04-29 |
2 | // Created by: Alexander KARTOMIN (akm) |
973c2be1 |
3 | // Copyright (c) 2002-2014 OPEN CASCADE SAS |
b311480e |
4 | // |
973c2be1 |
5 | // This file is part of Open CASCADE Technology software library. |
b311480e |
6 | // |
d5f74e42 |
7 | // This library is free software; you can redistribute it and/or modify it under |
8 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
9 | // by the Free Software Foundation, with special exception defined in the file |
10 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
11 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
12 | // |
973c2be1 |
13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. |
b311480e |
15 | |
7fd59977 |
16 | // Automatically created from NCollection_HArray2.hxx by GAWK |
7fd59977 |
17 | |
18 | #ifndef NCollection_DefineHArray2_HeaderFile |
19 | #define NCollection_DefineHArray2_HeaderFile |
20 | |
ec357c5c |
21 | #include <Standard_Type.hxx> |
7fd59977 |
22 | #include <NCollection_DefineArray2.hxx> |
23 | #include <MMgt_TShared.hxx> |
24 | |
25 | // Declaration of Array2 class managed by Handle |
26 | |
27 | #define DEFINE_HARRAY2(HClassName, _Array2Type_) \ |
e3a6386d |
28 | class HClassName : public _Array2Type_, public MMgt_TShared { \ |
7fd59977 |
29 | public: \ |
ddf2fe8e |
30 | DEFINE_STANDARD_ALLOC \ |
31 | DEFINE_NCOLLECTION_ALLOC \ |
e3a6386d |
32 | HClassName (const Standard_Integer theRowLow, \ |
33 | const Standard_Integer theRowUpp, \ |
34 | const Standard_Integer theColLow, \ |
35 | const Standard_Integer theColUpp) : \ |
36 | _Array2Type_ (theRowLow, theRowUpp, theColLow, theColUpp) {} \ |
37 | HClassName (const Standard_Integer theRowLow, \ |
38 | const Standard_Integer theRowUpp, \ |
39 | const Standard_Integer theColLow, \ |
40 | const Standard_Integer theColUpp, \ |
41 | const _Array2Type_::value_type& theValue) : \ |
42 | _Array2Type_ (theRowLow, theRowUpp, theColLow, theColUpp) \ |
43 | { Init (theValue); } \ |
44 | HClassName (const _Array2Type_& theOther) : _Array2Type_(theOther) {} \ |
45 | const _Array2Type_& Array2 () const { return *this; } \ |
46 | _Array2Type_& ChangeArray2 () { return *this; } \ |
92efcf78 |
47 | DEFINE_STANDARD_RTTI_INLINE(HClassName,MMgt_TShared) \ |
7fd59977 |
48 | }; \ |
e3a6386d |
49 | DEFINE_STANDARD_HANDLE (HClassName, MMgt_TShared) |
7fd59977 |
50 | |
ec357c5c |
51 | #define IMPLEMENT_HARRAY2(HClassName) |
52 | |
53 | |
7fd59977 |
54 | |
55 | #endif |