|
ACF $AcfVersion:0$
|
Multidimensional array with fixed number of dimensions. More...
#include <TVarArray.h>
Classes | |
| class | Iterator |
Public Types | |
| typedef CVarIndex | IndexType |
| typedef CVarIndex | SizesType |
| typedef Element | ElementType |
Public Member Functions | |
| TVarArray () | |
| TVarArray (const TVarArray &array) | |
| void | Reset () |
| Removes all elements and set all sizes to 1. | |
| bool | IsDimensionsCountFixed () const |
| Check, if number dimensions is fixed. | |
| int | GetDimensionsCount () const |
| Get number of dimensions of this array. | |
| bool | SetDimensionsCount (int count) |
| Set number of dimensions of this array. | |
| const SizesType & | GetSizes () const |
| Get list of all sizes. | |
| bool | SetSizes (const SizesType &sizes) |
| Set list of all sizes. | |
| int | GetSize (int dimension) const |
| Get size of array for specified dimension. | |
| bool | SetSize (int dimension, int size) |
| Set size of array for specified dimension. | |
| const Element & | GetAt (const IndexType &index) const |
| Get element stored at specified index. | |
| void | SetAt (const IndexType &index, const Element &value) |
| Set element at specified index. | |
| void | SetAllElements (const Element &value) |
| Set some value to all elements. | |
| Iterator | Begin () const |
| Get begin value of element access iterator. | |
| const Iterator & | End () const |
| Get end value of element access iterator. | |
| const Element & | operator[] (const IndexType &index) const |
| Element & | operator[] (const IndexType &index) |
| int | GetElementIndex (const IndexType &index) const |
| Get index of element in one dimensional array. | |
Protected Member Functions | |
| void | UpdateElementsSize () |
| Update size of elements to size changes. | |
Multidimensional array with fixed number of dimensions.
Definition at line 20 of file TVarArray.h.
| typedef Element istd::TVarArray< Element >::ElementType |
Definition at line 25 of file TVarArray.h.
| typedef CVarIndex istd::TVarArray< Element >::IndexType |
Definition at line 23 of file TVarArray.h.
| typedef CVarIndex istd::TVarArray< Element >::SizesType |
Definition at line 24 of file TVarArray.h.
| istd::TVarArray< Element >::TVarArray | ( | ) |
Definition at line 287 of file TVarArray.h.
| istd::TVarArray< Element >::TVarArray | ( | const TVarArray< Element > & | array | ) |
Definition at line 293 of file TVarArray.h.
| TVarArray< Element >::Iterator istd::TVarArray< Element >::Begin | ( | ) | const |
Get begin value of element access iterator.
Please refer to general description of ACF iterators, STL iterators or Qt iterators concept.
Definition at line 231 of file TVarArray.h.
| const TVarArray< Element >::Iterator & istd::TVarArray< Element >::End | ( | ) | const |
Get end value of element access iterator.
Please refer to general description of ACF iterators, STL iterators or Qt iterators concept.
Definition at line 238 of file TVarArray.h.
|
inline |
Get element stored at specified index.
Definition at line 205 of file TVarArray.h.
References istd::CVarIndex::IsInside().
|
inline |
Get number of dimensions of this array.
Definition at line 170 of file TVarArray.h.
References istd::CVarIndex::GetDimensionsCount().
|
inline |
Get index of element in one dimensional array.
Definition at line 262 of file TVarArray.h.
References istd::CVarIndex::GetDimensionsCount().
|
inline |
Get size of array for specified dimension.
Definition at line 195 of file TVarArray.h.
|
inline |
Get list of all sizes.
Definition at line 188 of file TVarArray.h.
Referenced by istd::TVarArray< Element >::Iterator::Iterator().
|
inline |
Check, if number dimensions is fixed.
It is provided for template implementations. It returns always false.
Definition at line 163 of file TVarArray.h.
|
inline |
Definition at line 252 of file TVarArray.h.
|
inline |
Definition at line 245 of file TVarArray.h.
| void istd::TVarArray< Element >::Reset | ( | ) |
Removes all elements and set all sizes to 1.
Definition at line 301 of file TVarArray.h.
| void istd::TVarArray< Element >::SetAllElements | ( | const Element & | value | ) |
Set some value to all elements.
Definition at line 335 of file TVarArray.h.
|
inline |
Set element at specified index.
Definition at line 217 of file TVarArray.h.
References istd::CVarIndex::IsInside().
|
inline |
Set number of dimensions of this array.
| count | number of dimensions will be set. |
Definition at line 177 of file TVarArray.h.
| bool istd::TVarArray< Element >::SetSize | ( | int | dimension, |
| int | size | ||
| ) |
Set size of array for specified dimension.
Please note, that it can make all elements invalid.
Definition at line 321 of file TVarArray.h.
| bool istd::TVarArray< Element >::SetSizes | ( | const SizesType & | sizes | ) |
Set list of all sizes.
Definition at line 310 of file TVarArray.h.
|
protected |
Update size of elements to size changes.
Definition at line 348 of file TVarArray.h.