Class for N-dimensional MultiArrays with MemCore memory management.
More...
#include <MemArray.hpp>
List of all members.
Public Types
Public Member Functions
-
MemArray (const Iterator< T > &data, const MultiIndex< N > &Sz, const RefPtr< MemCore::ChunkBase > &MemStorage, const MemBase::Creator_t &C)
-
MemArray (const MultiIndex< N > &M, const MemBase::Creator_t &C=NullPtr())
- Construct from size, allocate new memory during construction.
-
MemArray (const RefPtr< Chunk< T > > &Data, const MultiIndex< N > &M, const MemBase::Creator_t &C=NullPtr())
- Construct from size and already allocated memory, hoping that the memory sizes fit.
-
MemArray (const MemCore::MemVector< T > &Data, const MultiIndex< N > &M, const MemBase::Creator_t &C=NullPtr())
- Construct from size and a MemVector, for convenience, hoping that the memory sizes fit.
-
MemArray (const RefPtr< MemCore::ChunkBase > &Data, const MultiIndex< N > &Sz, const MemBase::Creator_t &C=NullPtr())
- Construct from memory chunk and multidimensional index.
-
MemArray (const RefPtr< MemCore::ChunkBase > &Storage, const MultiArray< N, T > &M, const MemBase::Creator_t &C=NullPtr())
-
override RefPtr< MemBase > getSlice (index_t i, const MemBase::Creator_t &C) const
-
override MultiIndex< N > Size () const
- Return the number of dimensions.
- override RefPtr< MemBase > makeMemArray (const MemBase::Creator_t &) const
- Make a memory array, in this case it's already one, so it's a do-nothing operation.
-
override RefPtr< MemBase > createMemArray (const MultiIndex< N > &NewSize, const MemBase::Creator_t &C) const
- RefPtr< MemArray > createMemArray (const MemCore::MemVector< T > &Data, const MemBase::Creator_t &C) const
- Create a memory array of the same dimensions as the current array, but with data as provided by the MemVector.
- RefPtr< MemArray > createMemArray (const RefPtr< MemCore::ChunkBase > &Data, const MemBase::Creator_t &C) const
- Create a memory array of the same dimensions as the current array, but with data as provided by the Storage.
- override RefPtr< MemBase > createEquallySizedMemArray (const RefPtr< MemCore::ChunkBase > &Storage, const MemBase::Creator_t &C) const
- Create a memory array of the same dimensions as the current array, but with data as provided by the Storage.
-
override RefPtr< MemBase > createSubMemArray (const MultiIndex< N > &Offset, const MultiIndex< N > &CopySize, const MemBase::Creator_t &C) const
-
override RefPtr< MemBase > getComponentArray (int member, const MemBase::Creator_t &C)
-
override const type_info & getType () const
- Return the element type of the certain array.
-
override const FiberTypeBase & getFiberType () const
Static Public Member Functions
Friends
Detailed Description
template<int N, class T>
class MemArray< N, T >
Class for N-dimensional MultiArrays with MemCore memory management.
- Author:
- Werner Benger
- Examples:
-
BoundingBoxSimple.cpp, ColoredLines.cpp, Sphere.cpp, trimesh.cpp, and uniform_scalar.cpp.
Member Enumeration Documentation
- Enumerator:
Dims |
The dimensionality of this array.
|
Member Function Documentation
Create a memory array of the same dimensions as the current array, but with data as provided by the Storage.
Will return NullPtr if the sizes don't match. Calls createMemArray() .
Create a memory array of the same dimensions as the current array, but with data as provided by the Storage.
Will return NullPtr if the sizes don't match.
Create a memory array of the same dimensions as the current array, but with data as provided by the MemVector.
Will return NullPtr if the sizes don't match.
template<int N, class T>
override RefPtr<MemBase> MemArray< N, T >::makeMemArray |
( |
const MemBase::Creator_t & |
|
) |
const [inline] |
Make a memory array, in this case it's already one, so it's a do-nothing operation.
The specified Creator is not used.