WARPXM v1.10.0
|
Defines common interface for variables that are arrays. More...
#include <wmarraybase.h>
Defines common interface for variables that are arrays.
Implies structure to multiple pieces of underlying data. Does not specify element type or provide any element storage or access to elements.
Start values for array coordinates can be arbitrary. i.e. start index does not have to be 0,0,0...
Public Member Functions | |
const WxRange & | range () const |
Protected Member Functions | |
WmArrayBase () | |
Default ctor does not set up array geometry initially, this must be done later. | |
WmArrayBase (const WxRange &range) | |
Array spanning given range object. | |
WmArrayBase (const WmArrayBase< MAJOR_ORDER_TYPE > &that) | |
Copy constructor duplicates the array geometry properties of original one. | |
WmArrayBase< MAJOR_ORDER_TYPE > & | operator= (const WmArrayBase< MAJOR_ORDER_TYPE > &that) |
Assignment operator duplicates the array geometry properties of right hand side one. | |
~WmArrayBase () | |
Delete object which only describes the array geometry, no array allocation is deleted. | |
void | setRange (const WxRange &range) |
Array spanning given range object. | |
unsigned | rank () const |
Rank of array. | |
Protected Attributes | |
WmIndexer< MAJOR_ORDER_TYPE > | _indexer |
Indexer assists finding linear position of array elements. | |
WxRange | _range |
Range covered by this array. | |
Static Protected Attributes | |
static const int | max_dims = 8 |
|
inlineprotected |
Default ctor does not set up array geometry initially, this must be done later.
|
inlineprotected |
Array spanning given range object.
range | range spanned by array |
|
inlineprotected |
Copy constructor duplicates the array geometry properties of original one.
that | array to copy |
|
inlineprotected |
Delete object which only describes the array geometry, no array allocation is deleted.
Protected because I anticipate programmer error if ever trying to call delete on a pointer to a WmArrayBase and for performance reasons, I did not want to make the destructor virtual.
|
inlineprotected |
Assignment operator duplicates the array geometry properties of right hand side one.
that | array to copy |
|
inline |
|
inlineprotected |
Rank of array.
|
inlineprotected |
Array spanning given range object.
range | range spanned by array |
|
protected |
Indexer assists finding linear position of array elements.
|
protected |
Range covered by this array.
(start indices do not have to be zero)
|
staticprotected |