1 // Created on: 2002-04-29
2 // Created by: Alexander KARTOMIN (akm)
3 // Copyright (c) 2002-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
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
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.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 // Automatically created from NCollection_HArray1.hxx by GAWK
18 #ifndef NCollection_DefineHArray1_HeaderFile
19 #define NCollection_DefineHArray1_HeaderFile
21 #include <Standard_Type.hxx>
22 #include <NCollection_DefineArray1.hxx>
23 #include <Standard_Transient.hxx>
25 // Declaration of Array1 class managed by Handle
27 #define DEFINE_HARRAY1(HClassName, _Array1Type_) \
28 class HClassName : public _Array1Type_, public Standard_Transient { \
30 DEFINE_STANDARD_ALLOC \
31 DEFINE_NCOLLECTION_ALLOC \
32 HClassName () : _Array1Type_ () {} \
33 HClassName (const Standard_Integer theLower, \
34 const Standard_Integer theUpper) : \
35 _Array1Type_ (theLower,theUpper) {} \
36 HClassName (const Standard_Integer theLower, \
37 const Standard_Integer theUpper, \
38 const _Array1Type_::value_type& theValue) : \
39 _Array1Type_ (theLower,theUpper) { Init (theValue); } \
40 HClassName (const _Array1Type_& theOther) : _Array1Type_(theOther) {} \
41 const _Array1Type_& Array1 () const { return *this; } \
42 _Array1Type_& ChangeArray1 () { return *this; } \
43 DEFINE_STANDARD_RTTI_INLINE(HClassName,Standard_Transient) \
45 DEFINE_STANDARD_HANDLE (HClassName, Standard_Transient)
47 #define IMPLEMENT_HARRAY1(HClassName)