1 // Created on: 2008-03-26
2 // Created by: Sergey ZARITCHNY
3 // Copyright (c) 2008-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 #include <PDataStd_IntegerArray_1.ixx>
18 //=======================================================================
19 //function : PDataStd_IntegerArray_1
21 //=======================================================================
23 PDataStd_IntegerArray_1::PDataStd_IntegerArray_1 () : myDelta(Standard_False) { }
25 //=======================================================================
28 //=======================================================================
30 void PDataStd_IntegerArray_1::Init(const Standard_Integer lower,
31 const Standard_Integer upper)
33 myValue = new PColStd_HArray1OfInteger(lower, upper);
37 //=======================================================================
40 //=======================================================================
42 void PDataStd_IntegerArray_1::SetValue(const Standard_Integer index,
43 const Standard_Integer value)
45 myValue->SetValue(index, value);
48 //=======================================================================
51 //=======================================================================
53 Standard_Integer PDataStd_IntegerArray_1::Value
54 ( const Standard_Integer index ) const
56 return myValue->Value(index);
59 //=======================================================================
62 //=======================================================================
63 Standard_Integer PDataStd_IntegerArray_1::Lower (void) const
64 { return myValue->Lower(); }
67 //=======================================================================
70 //=======================================================================
71 Standard_Integer PDataStd_IntegerArray_1::Upper (void) const
72 { return myValue->Upper(); }
74 //=======================================================================
77 //=======================================================================
78 void PDataStd_IntegerArray_1::SetDelta(const Standard_Boolean delta)
83 //=======================================================================
86 //=======================================================================
87 Standard_Boolean PDataStd_IntegerArray_1::GetDelta() const