Warning, /include/opencascade/Interface_JaggedArray.gxx is written in an unsupported language. File is not indexed.
0001 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0002 //
0003 // This file is part of Open CASCADE Technology software library.
0004 //
0005 // This library is free software; you can redistribute it and/or modify it under
0006 // the terms of the GNU Lesser General Public License version 2.1 as published
0007 // by the Free Software Foundation, with special exception defined in the file
0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0009 // distribution for complete text of the license and disclaimer of any warranty.
0010 //
0011 // Alternatively, this file may be used under the terms of Open CASCADE
0012 // commercial license or contractual agreement.
0013
0014 //#include <Interface_JaggedArray.ixx>
0015
0016 Interface_JaggedArray::Interface_JaggedArray
0017 (const Standard_Integer low, const Standard_Integer up)
0018 : thelist (low,up) { Handle(Standard_Transient) nulo; thelist.Init(nulo); }
0019
0020 Standard_Integer Interface_JaggedArray::Lower () const
0021 { return thelist.Lower(); }
0022
0023 Standard_Integer Interface_JaggedArray::Upper () const
0024 { return thelist.Upper(); }
0025
0026 Standard_Integer Interface_JaggedArray::Length () const
0027 { return thelist.Length(); }
0028
0029 void Interface_JaggedArray::SetValue
0030 (const Standard_Integer num, const Handle(TheKey)& val)
0031 { thelist.SetValue(num,val); }
0032
0033 Handle(TheKey) Interface_JaggedArray::Value
0034 (const Standard_Integer num) const
0035 { return Handle(TheKey)::DownCast(thelist.Value(num)); }
0036
0037 // Handle(TheKey)& Interface_JaggedArray::ChangeValue
0038 // (const Standard_Integer num)
0039 // { return thelist.ChangeValue(num); }