18 #if !defined escript_DataVector_20050324_H 19 #define escript_DataVector_20050324_H 22 #include "esysUtils/EsysAssert.h" 102 const value_type val=0.0,
103 const size_type blockSize=1);
125 resize(
const size_type newSize,
126 const value_type newVal=0.0,
127 const size_type newBlockSize=1);
139 copyFromArrayToOffset(
const WrappedArray& value, size_type offset, size_type copies);
184 operator[](
const size_type i);
188 operator[](
const size_type i)
const;
224 EsysAssert(i<size(),
"DataVector: invalid index specified. " << i <<
" of " << size());
225 return m_array_data[i];
232 EsysAssert(i<size(),
"DataVector: invalid index specified. " << i <<
" of " << size());
233 return m_array_data[i];
const ElementType * ConstValueType
Definition: DataVector.h:55
DataVector implements an arbitrarily long vector of data values. DataVector is the underlying data co...
Definition: DataVector.h:44
size_type m_size
Definition: DataVector.h:195
Definition: AbstractContinuousDomain.cpp:24
size_type m_dim
Definition: DataVector.h:196
size_type size() const
Return the number of elements in this DataVector.
Definition: DataVector.h:215
void releaseUnusedMemory()
releases unused memory in the memory manager.
Definition: DataVector.cpp:39
double ElementType
Definition: DataVector.h:50
size_type m_N
Definition: DataVector.h:197
ElementType * ValueType
Definition: DataVector.h:54
#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
reference operator[](const size_type i)
Return a reference to the element at position i in this DataVector. Will throw an exception if an inv...
Definition: DataVector.h:222
#define ESCRIPT_DLL_API
Definition: escriptcore/src/system_dep.h:54
ElementType & reference
Definition: DataVector.h:61
ElementType value_type
Definition: DataVector.h:59
long size_type
Definition: DataVector.h:60
Definition: WrappedArray.h:29
ValueType m_array_data
Definition: DataVector.h:201