Public Types | Public Member Functions | Static Public Member Functions | Friends

MemArray< N, T > Class Template Reference

Class for N-dimensional MultiArrays with MemCore memory management. More...

#include <MemArray.hpp>

List of all members.

Public Types

Public Member Functions

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

template<int N, class T>
anonymous enum
Enumerator:
Dims 

The dimensionality of this array.


Member Function Documentation

template<int N, class T>
override RefPtr<MemBase> MemArray< N, T >::createEquallySizedMemArray ( const RefPtr< MemCore::ChunkBase > &  Storage,
const MemBase::Creator_t &  C 
) const [inline]

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() .

template<int N, class T>
RefPtr<MemArray> MemArray< N, T >::createMemArray ( const RefPtr< MemCore::ChunkBase > &  Data,
const MemBase::Creator_t &  C 
) const [inline]

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.

template<int N, class T>
RefPtr<MemArray> MemArray< N, T >::createMemArray ( const MemCore::MemVector< T > &  Data,
const MemBase::Creator_t &  C 
) const [inline]

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.