1 // Created on: 2002-04-29
2 // Created by: Alexander KARTOMIN (akm)
3 // Copyright (c) 2002-2012 OPEN CASCADE SAS
5 // The content of this file is subject to the Open CASCADE Technology Public
6 // License Version 6.5 (the "License"). You may not use the content of this file
7 // except in compliance with the License. Please obtain a copy of the License
8 // at http://www.opencascade.org and read it completely before using this file.
10 // The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
11 // main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13 // The Original Code and all software distributed under the License is
14 // distributed on an "AS IS" basis, without warranty of any kind, and the
15 // Initial Developer hereby disclaims all such warranties, including without
16 // limitation, any warranties of merchantability, fitness for a particular
17 // purpose or non-infringement. Please see the License for the specific terms
18 // and conditions governing the rights and limitations under the License.
20 // Automatically created from NCollection_HArray1.hxx by GAWK
22 #ifndef NCollection_DefineHArray1_HeaderFile
23 #define NCollection_DefineHArray1_HeaderFile
25 #include <Standard_DefineHandle.hxx>
26 #include <NCollection_DefineArray1.hxx>
27 #include <MMgt_TShared.hxx>
29 // Declaration of Array1 class managed by Handle
31 #define DEFINE_HARRAY1(HClassName, _Array1Type_) \
33 class HClassName : public _Array1Type_, \
34 public MMgt_TShared { \
36 inline HClassName (const Standard_Integer theLower, \
37 const Standard_Integer theUpper); \
38 inline HClassName (const _Array1Type_&); \
39 inline const _Array1Type_& Array1 () const; \
40 inline _Array1Type_& ChangeArray1 (); \
41 DEFINE_STANDARD_RTTI (HClassName) \
44 DEFINE_STANDARD_HANDLE (HClassName, MMgt_TShared) \
46 inline HClassName::HClassName (const Standard_Integer theLower, \
47 const Standard_Integer theUpper) : \
48 _Array1Type_ (theLower,theUpper), \
51 inline HClassName::HClassName (const _Array1Type_& theOther) : \
52 _Array1Type_(theOther), \
55 inline const _Array1Type_& HClassName::Array1 () const \
56 { return * (const _Array1Type_ *) this; } \
58 inline _Array1Type_& HClassName::ChangeArray1 () \
59 { return * (_Array1Type_ *) this; } \
61 #define IMPLEMENT_HARRAY1(HClassName) \
62 IMPLEMENT_STANDARD_HANDLE (HClassName, MMgt_TShared) \
63 IMPLEMENT_STANDARD_RTTIEXT (HClassName, MMgt_TShared)