11#include <util/containers/Array.h>
12#include <util/containers/FSArray.h>
45 template <
typename Data>
86 UTIL_THROW(
"Attempt to re-associate an RArray");
89 UTIL_THROW(
"Unallocated target array: Capacity_ <= 0");
104 UTIL_THROW(
"Attempt to re-associate an RArray");
Array container class template.
Data * data_
Pointer to an array of Data elements.
int capacity() const
Return allocated size.
int capacity_
Allocated size of the data_ array.
An Array that acts as a reference to another Array or C array.
RArray(RArray< Data > const &other)
Copy constructor.
void associate(Data *array, int capacity)
Associate this RArray with an existing C array.
void associate(Array< Data > &array)
Associate this RArray with an existing Array object.
File containing preprocessor macros for error handling.
#define UTIL_THROW(msg)
Macro for throwing an Exception, reporting function, file and line number.
Utility classes for scientific computation.