18 #if !defined escript_DataBlocks2D_20040405_H 19 #define escript_DataBlocks2D_20040405_H 145 resize(
int numRows,
int numCols,
int blockSize);
175 index(
int row,
int col)
const;
281 EsysAssert(((row >= 0) && (col >= 0) && (
m_data.
size() > 0)),
"(DataBlocks2D) Index value out of range.");
DataVector implements an arbitrarily long vector of data values. DataVector is the underlying data co...
Definition: DataVector.h:44
DataBlocks2D()
Default constructor for DataBlocks2D.
Definition: DataBlocks2D.cpp:27
ValueType::size_type getNumRows() const
Return the number of rows in this DataBlocks2D array.
Definition: DataBlocks2D.h:254
Definition: AbstractContinuousDomain.cpp:24
ValueType::reference operator()(int row, int col)
Return a reference to the first element for the data-point (i,j).
Definition: DataBlocks2D.h:305
size_type size() const
Return the number of elements in this DataVector.
Definition: DataVector.h:215
void Swap(DataBlocks2D &other)
Swap all the values managed by the given DataBlocks2D objects.
Definition: DataBlocks2D.cpp:74
ValueType::size_type getBlockSize() const
Return the data point size for this DataBlocks2D array.
Definition: DataBlocks2D.h:270
DataVector ValueType
Definition: DataBlocks2D.h:46
ValueType::size_type m_numRows
Definition: DataBlocks2D.h:235
ValueType & getData()
Return a reference to the underlying data array. Data returned is an array type object that can be in...
Definition: DataBlocks2D.h:321
ValueType::size_type m_blockSize
Definition: DataBlocks2D.h:240
ValueType::reference operator[](ValueType::size_type i)
Return a reference to the first element for the data-point with index i within the underlying data ar...
Definition: DataBlocks2D.h:289
~DataBlocks2D()
Default destructor for DataBlocks2D.
Definition: DataBlocks2D.cpp:50
DataBlocks2D & operator=(const DataBlocks2D &other)
DataBlocks2D assignment operator = Assign the given DataBlocks2D object to this one.
Definition: DataBlocks2D.cpp:84
#define EsysAssert(AssertTest, AssertMessage)
EsysAssert is a MACRO that will throw an exception if the boolean condition specified is false...
Definition: EsysAssert.h:96
const ElementType & const_reference
Definition: DataVector.h:62
ValueType m_data
Definition: DataBlocks2D.h:231
void resize(int numRows, int numCols, int blockSize)
Resize the underlying data array. All current data is lost. The new data elements are initialised to ...
Definition: DataBlocks2D.cpp:58
ValueType::size_type m_numCols
Definition: DataBlocks2D.h:236
DataBlocks2D manages a 2D array of multi-dimensional data points.
Definition: DataBlocks2D.h:38
#define ESCRIPT_DLL_API
Definition: escriptcore/src/system_dep.h:54
ElementType & reference
Definition: DataVector.h:61
ValueType::size_type size() const
Return the size of the underlying data array. ie: Number of rows * Number of columns * Number of elem...
Definition: DataBlocks2D.h:246
long size_type
Definition: DataVector.h:60
ValueType::size_type index(int row, int col) const
Return the 1 dimensional index of the first element for data-point (i,j) within the underlying data a...
Definition: DataBlocks2D.h:278
ValueType::size_type getNumCols() const
Return the number of columns in this DataBlocks2D array.
Definition: DataBlocks2D.h:262