Abstract class for N-dimensional MultiArrays with MemCore memory management.
More...
#include <MemArrayBase.hpp>
List of all members.
Public Types
- enum { Dims = N
}
-
typedef MultiIndex< N > MIndex_t
Public Member Functions
-
MemArrayBase (const WeakPtr< CreativeArrayBase > &theCreator)
-
override int rank () const
- Return the number of array dimensions.
-
virtual MultiIndex< N > Size () const =0
-
virtual RefPtr< MemBase > createMemArray (const MultiIndex< N > &NewSize, const MemBase::Creator_t &C) const =0
-
virtual RefPtr< MemBase > createSubMemArray (const MultiIndex< N > &Offset, const MultiIndex< N > &CopySize, const MemBase::Creator_t &C) const =0
-
override RefPtr< MemBase > createSubArray (const DynamicSize &Offset, const DynamicSize &CopySize, const MemBase::Creator_t &C) const
-
override RefPtr< MemBase > newMemArray (const DynamicSize &newSize, const MemBase::Creator_t &C) const
-
override DynamicSize getSize () const
-
override RefPtr< MemBase > newMemArray (const MemBase::Creator_t &C) const
-
RefPtr< ArrayInterpolator > getInterpolator () const
- virtual RefPtr< MemBase > getSlice (index_t n, const MemBase::Creator_t &C) const =0
- For a multidimensional array retrieve the nth slice.
Detailed Description
template<int N>
class MemArrayBase< N >
Abstract class for N-dimensional MultiArrays with MemCore memory management.
Member Function Documentation
template<int N>
virtual RefPtr<MemBase> MemArrayBase< N >::getSlice |
( |
index_t |
n, |
|
|
const MemBase::Creator_t & |
C | |
|
) |
| | const [pure virtual] |
For a multidimensional array retrieve the nth slice.
The result will be of one dimension less. A Creator object must be given for Cache management.