18 #if !defined escript_DataVectorTaipan_H 19 #define escript_DataVectorTaipan_H 103 const value_type val=0.0,
104 const size_type blockSize=1);
126 resize(
const size_type newSize,
127 const value_type newVal=0.0,
128 const size_type newBlockSize=1);
185 operator[](
const size_type i);
189 operator[](
const size_type i)
const;
226 ESYS_ASSERT(i<size(),
"DataVectorTaipan: invalid index specified. " << i <<
" of " << size());
227 return m_array_data[i];
234 ESYS_ASSERT(i<size(),
"DataVectorTaipan: invalid index specified. " << i <<
" of " << size());
235 return m_array_data[i];
double ElementType
Definition: DataVectorTaipan.h:50
ElementType value_type
Definition: DataVectorTaipan.h:60
Definition: AbstractContinuousDomain.cpp:22
ElementType & reference
Definition: DataVectorTaipan.h:62
ElementType * VectorStorageType
Definition: DataVectorTaipan.h:54
size_type size() const
Return the number of elements in this DataVectorTaipan.
Definition: DataVectorTaipan.h:217
reference operator[](const size_type i)
Return a reference to the element at position i in this DataVectorTaipan. Will throw an exception if ...
Definition: DataVectorTaipan.h:224
const ElementType & const_reference
Definition: DataVectorTaipan.h:63
size_type m_N
Definition: DataVectorTaipan.h:198
void releaseUnusedMemory()
releases unused memory in the memory manager.
Definition: DataVectorTaipan.cpp:40
VectorStorageType m_array_data
Definition: DataVectorTaipan.h:202
const ElementType * const_pointer
Definition: DataVectorTaipan.h:59
#define ESCRIPT_DLL_API
Definition: escriptcore/src/system_dep.h:29
size_type m_dim
Definition: DataVectorTaipan.h:197
#define ESYS_ASSERT(a, b)
EsysAssert is a MACRO that will throw an exception if the boolean condition specified is false...
Definition: Assert.h:78
Definition: WrappedArray.h:31
long size_type
Definition: DataVectorTaipan.h:61
DataVectorTaipan implements an arbitrarily long vector of data values. DataVectorTaipan is the underl...
Definition: DataVectorTaipan.h:44
size_type m_size
Definition: DataVectorTaipan.h:196