|
| NCollection_Array2 (const Standard_Integer theRowLower, const Standard_Integer theRowUpper, const Standard_Integer theColLower, const Standard_Integer theColUpper) |
| Constructor. More...
|
|
| NCollection_Array2 (const NCollection_Array2 &theOther) |
| Copy constructor. More...
|
|
| NCollection_Array2 (const TheItemType &theBegin, const Standard_Integer theRowLower, const Standard_Integer theRowUpper, const Standard_Integer theColLower, const Standard_Integer theColUpper) |
| C array-based constructor. More...
|
|
void | Init (const TheItemType &theValue) |
| Initialise the values. More...
|
|
Standard_Integer | Size (void) const |
| Size (number of items) More...
|
|
Standard_Integer | Length (void) const |
| Length (number of items) More...
|
|
Standard_Integer | RowLength (void) const |
| Returns length of the row, i.e. number of columns. More...
|
|
Standard_Integer | ColLength (void) const |
| Returns length of the column, i.e. number of rows. More...
|
|
Standard_Integer | LowerRow (void) const |
| LowerRow. More...
|
|
Standard_Integer | UpperRow (void) const |
| UpperRow. More...
|
|
Standard_Integer | LowerCol (void) const |
| LowerCol. More...
|
|
Standard_Integer | UpperCol (void) const |
| UpperCol. More...
|
|
Standard_Boolean | IsDeletable (void) const |
| myDeletable flag More...
|
|
NCollection_Array2 & | Assign (const NCollection_Array2 &theOther) |
| Assignment. More...
|
|
NCollection_Array2 & | operator= (const NCollection_Array2 &theOther) |
| Assignment operator. More...
|
|
const TheItemType & | Value (const Standard_Integer theRow, const Standard_Integer theCol) const |
| Constant value access. More...
|
|
const TheItemType & | operator() (const Standard_Integer theRow, const Standard_Integer theCol) const |
| operator() - alias to ChangeValue More...
|
|
TheItemType & | ChangeValue (const Standard_Integer theRow, const Standard_Integer theCol) |
| Variable value access. More...
|
|
TheItemType & | operator() (const Standard_Integer theRow, const Standard_Integer theCol) |
| operator() - alias to ChangeValue More...
|
|
void | SetValue (const Standard_Integer theRow, const Standard_Integer theCol, const TheItemType &theItem) |
| SetValue. More...
|
|
| ~NCollection_Array2 (void) |
| Destructor - releases the memory. More...
|
|
template<class TheItemType>
class NCollection_Array2< TheItemType >
Purpose: The class Array2 represents bi-dimensional arrays of fixed size known at run time. The ranges of indices are user defined.
Warning: Programs clients of such class must be independant of the range of the first element. Then, a C++ for loop must be written like this
for (i = A.LowerRow(); i <= A.UpperRow(); i++) for (j = A.LowerCol(); j <= A.UpperCol(); j++)