1 // Created on: 2007-05-29
2 // Created by: Vlad Romashko
3 // Copyright (c) 2007-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_RealList.ixx>
18 //=======================================================================
19 //function : PDataStd_RealList
21 //=======================================================================
22 PDataStd_RealList::PDataStd_RealList()
27 //=======================================================================
30 //=======================================================================
31 void PDataStd_RealList::Init(const Standard_Integer lower,
32 const Standard_Integer upper)
35 myValue = new PColStd_HArray1OfReal(lower, upper);
38 //=======================================================================
41 //=======================================================================
42 void PDataStd_RealList::SetValue(const Standard_Integer index, const Standard_Real value)
44 myValue->SetValue(index, value);
47 //=======================================================================
50 //=======================================================================
51 Standard_Real PDataStd_RealList::Value( const Standard_Integer index ) const
53 return myValue->Value(index);
56 //=======================================================================
59 //=======================================================================
60 Standard_Integer PDataStd_RealList::Lower (void) const
62 if (!myValue.IsNull())
63 return myValue->Lower();
67 //=======================================================================
70 //=======================================================================
71 Standard_Integer PDataStd_RealList::Upper (void) const
73 if (!myValue.IsNull())
74 return myValue->Upper();