Open CASCADE Technology
7.1.0.beta
|
#include <IntTools_CArray1OfReal.hxx>
Public Member Functions | |
IntTools_CArray1OfReal (const Standard_Integer Length=0) | |
Creates an array of given Length. More... | |
IntTools_CArray1OfReal (const Standard_Real &Item, const Standard_Integer Length) | |
Creates an array sharing datas with an other. Example: Item tab[100]; CArray1OfItem thetab (tab[0],100);. More... | |
void | Init (const Standard_Real &V) |
Initializes the array with a given value. More... | |
void | Resize (const Standard_Integer theNewLength) |
destroy current content and realloc the new size does nothing if Length() == theLength More... | |
void | Destroy () |
Frees the allocated area corresponding to the array. More... | |
~IntTools_CArray1OfReal () | |
Standard_Integer | Length () const |
Returns the number of elements of <me>. More... | |
void | Append (const Standard_Real &Value) |
void | SetValue (const Standard_Integer Index, const Standard_Real &Value) |
Sets the <Index>th element of the array to . More... | |
const Standard_Real & | Value (const Standard_Integer Index) const |
Returns the value of the <Index>th element of the array. More... | |
const Standard_Real & | operator() (const Standard_Integer Index) const |
Standard_Real & | ChangeValue (const Standard_Integer Index) |
Returns the value of the <Index>th element of the array. More... | |
Standard_Real & | operator() (const Standard_Integer Index) |
Standard_Boolean | IsEqual (const IntTools_CArray1OfReal &Other) const |
Applys the == operator on each array item. More... | |
Standard_Boolean | operator== (const IntTools_CArray1OfReal &Other) const |
IntTools_CArray1OfReal::IntTools_CArray1OfReal | ( | const Standard_Integer | Length = 0 | ) |
Creates an array of given Length.
IntTools_CArray1OfReal::IntTools_CArray1OfReal | ( | const Standard_Real & | Item, |
const Standard_Integer | Length | ||
) |
Creates an array sharing datas with an other. Example: Item tab[100]; CArray1OfItem thetab (tab[0],100);.
CArray1OfItem aArray1(100); CArray1OfItem anSharedArray1(aArray1.ChangeValue(0),aArray1.Length());
Warning: The validity of length are under the responsability of the user. The sahred array must have a valid address during the life of the Array1.
|
inline |
void IntTools_CArray1OfReal::Append | ( | const Standard_Real & | Value | ) |
Standard_Real& IntTools_CArray1OfReal::ChangeValue | ( | const Standard_Integer | Index | ) |
Returns the value of the <Index>th element of the array.
void IntTools_CArray1OfReal::Destroy | ( | ) |
Frees the allocated area corresponding to the array.
void IntTools_CArray1OfReal::Init | ( | const Standard_Real & | V | ) |
Initializes the array with a given value.
Standard_Boolean IntTools_CArray1OfReal::IsEqual | ( | const IntTools_CArray1OfReal & | Other | ) | const |
Applys the == operator on each array item.
Standard_Integer IntTools_CArray1OfReal::Length | ( | ) | const |
Returns the number of elements of <me>.
|
inline |
|
inline |
|
inline |
void IntTools_CArray1OfReal::Resize | ( | const Standard_Integer | theNewLength | ) |
destroy current content and realloc the new size does nothing if Length() == theLength
void IntTools_CArray1OfReal::SetValue | ( | const Standard_Integer | Index, |
const Standard_Real & | Value | ||
) |
Sets the <Index>th element of the array to .
const Standard_Real& IntTools_CArray1OfReal::Value | ( | const Standard_Integer | Index | ) | const |
Returns the value of the <Index>th element of the array.