![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
The class Array1 represents unidimensional array of fixed size known at run time. The range of the index is user defined. Warning: Programs clients of such class must be independent of the range of the first element. Then, a C++ for loop must be written like this for (i = A->Lower(); i <= A->Upper(); i++) More...
#include <XmlObjMgt_Array1.hxx>
Public Member Functions | |
| XmlObjMgt_Array1 (const int Low, const int Up) | |
| Create an array of lower bound <Low> and upper bound <Up>. Range error is raised when <Up> is less than <Low>. | |
| XmlObjMgt_Array1 (const XmlObjMgt_Element &theParent, const XmlObjMgt_DOMString &theName) | |
| for restoration from DOM_Element which is child of theParent: <theParent ...> <theName ...> | |
| void | CreateArrayElement (XmlObjMgt_Element &theParent, const XmlObjMgt_DOMString &theName) |
| Create DOM_Element representing the array, under 'theParent'. | |
| const XmlObjMgt_Element & | Element () const |
| Returns the DOM element of <me>. | |
| int | Length () const |
| Returns the number of elements of <me>. | |
| int | Lower () const |
| Returns the lower bound. | |
| int | Upper () const |
| Returns the upper bound. | |
| void | SetValue (const int Index, XmlObjMgt_Element &Value) |
| Set the <Index>th element of the array to . | |
| XmlObjMgt_Element | Value (const int Index) const |
| Returns the value of <Index>th element of the array. | |
The class Array1 represents unidimensional array of fixed size known at run time. The range of the index is user defined. Warning: Programs clients of such class must be independent of the range of the first element. Then, a C++ for loop must be written like this for (i = A->Lower(); i <= A->Upper(); i++)
Create an array of lower bound <Low> and upper bound <Up>. Range error is raised when <Up> is less than <Low>.
| XmlObjMgt_Array1::XmlObjMgt_Array1 | ( | const XmlObjMgt_Element & | theParent, |
| const XmlObjMgt_DOMString & | theName ) |
for restoration from DOM_Element which is child of theParent: <theParent ...> <theName ...>
| void XmlObjMgt_Array1::CreateArrayElement | ( | XmlObjMgt_Element & | theParent, |
| const XmlObjMgt_DOMString & | theName ) |
Create DOM_Element representing the array, under 'theParent'.
| const XmlObjMgt_Element & XmlObjMgt_Array1::Element | ( | ) | const |
Returns the DOM element of <me>.
| int XmlObjMgt_Array1::Length | ( | ) | const |
Returns the number of elements of <me>.
| int XmlObjMgt_Array1::Lower | ( | ) | const |
Returns the lower bound.
| void XmlObjMgt_Array1::SetValue | ( | const int | Index, |
| XmlObjMgt_Element & | Value ) |
Set the <Index>th element of the array to .
| int XmlObjMgt_Array1::Upper | ( | ) | const |
Returns the upper bound.
| XmlObjMgt_Element XmlObjMgt_Array1::Value | ( | const int | Index | ) | const |
Returns the value of <Index>th element of the array.