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");
Data * data_
Pointer to an array of Data elements.
void associate(Array< Data > &array)
Associate this RArray with an existing Array object.
RArray(const RArray< Data > &other)
Copy constructor.
void associate(Data *array, int capacity)
Associate this RArray with an existing C array.
int capacity_
Allocated size of the data_ array.
Array container class template.
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.
An Array that acts as a reference to another Array or C array.
int capacity() const
Return allocated size.