1#ifndef __FIBER_MEMARRAYBASE_HPP
2#define __FIBER_MEMARRAYBASE_HPP "Created 4.07.2004 14:31:21 by bzfbenge"
7#include "FiberType.hpp"
8#include "DynamicSize.hpp"
10#include "ArrayInterpolator.hpp"
11#include "CreativeArrayBase.hpp"
44 enum Dims_t { Dims = N };
136 ::Fiber::setSizeInterface(
DC, Dims );
168 setSizeInterface(
DC, Dims );
191 if (getDimensions(Dims,
DC) )
A field's interpolator is an interface for this specific field.
Definition ArrayInterpolator.hpp:29
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
A class describing an n-dimensional space at runtime.
Definition field/DynamicSize.hpp:29
Abstract class for N-dimensional MultiArrays with MemCore memory management.
Definition MemArrayBase.hpp:37
virtual RefPtr< MemBase > createSubMemArray(const MultiIndex< N > &Offset, const MultiIndex< N > &CopySize, const MemBase::Creator_t &C) const =0
Create a new MemArray from a subset of the current array's data.
virtual RefPtr< MemBase > getSlice(index_t n, const MemBase::Creator_t &C) const =0
For a multidimensional array retrieve the nth slice.
virtual RefPtr< MemBase > newMemArraynD(const MultiIndex< N > &NewSize, const MemBase::Creator_t &C) const =0
Create a new array of the same type as the current one, but using the specified dimensions.
virtual MultiIndex< N > Size() const =0
The multi-dimensional size of this array.
RefPtr< MemBase > createSubArray(const DynamicSize &Offset, const DynamicSize &CopySize, const MemBase::Creator_t &C) const override
Implement creation of new memory sub array using the DynamicSize class.
Definition MemArrayBase.hpp:91
Fiber::Dims_t rank() const override
Return the number of array dimensions.
Definition MemArrayBase.hpp:56
DynamicSize getSize() const override
Return the size of this dataset.
Definition MemArrayBase.hpp:101
Base class for multidimensional arrays with MemCore memory management.
Definition MemBase.hpp:70
RefPtr< InterfaceBase > findInterface(const type_info &t) const
bool makeDimensions(MultiIndex< N > &Dims, const RefPtr< CreativeArrayBase > &DC)
Given a data creator, retrieve the dimensionality information from the associated data,...
Definition MemArrayBase.hpp:186
bool makeSizeInterface(MultiIndex< N > &Dims, const RefPtr< CreativeArrayBase > &DC)
Set the size interface of a given data array Creator, based on the associated data (this function wil...
Definition MemArrayBase.hpp:154
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2
IndexTypeConfig< sizeof(void *)>::index_t index_t
Define the index type as according to the size of a pointer, i.e.
Definition Index.hpp:22
Definition FiberTypeIndex.hpp:12
Definition MemArrayBase.hpp:121