11#include <util/containers/PArrayIterator.h>
12#include <util/containers/ConstPArrayIterator.h>
40 template <
typename Data,
int Capacity>
139 template <
typename Data,
int Capacity>
inline
150 template<
typename Data,
int Capacity>
159 for (i = 0; i < other.
size_; ++i) {
165 if (Capacity >
size_) {
166 for (i =
size_; i < Capacity; ++i) {
175 template <
typename Data,
int Capacity>
180 if (
this == &other)
return *
this;
183 if (Capacity < other.
size_) {
188 for (
int i = 0; i < other.
size_; ++i) {
194 if (Capacity >
size_) {
195 for (
int i =
size_; i < Capacity; ++i) {
206 template <
typename Data,
int Capacity>
213 template <
typename Data,
int Capacity>
inline
220 template <
typename Data,
int Capacity>
inline
227 template <
typename Data,
int Capacity>
inline
237 template <
typename Data,
int Capacity>
inline
248 template <
typename Data,
int Capacity>
259 template <
typename Data,
int Capacity>
inline
270 template <
typename Data,
int Capacity>
273 if (
size_ == Capacity) {
283 template <
typename Data,
int Capacity>
287 for (
int i=0; i < Capacity; ++i) {
Forward iterator for a PArray.
void setEnd(Data **ptr)
Set the value of the end pointer.
void setCurrent(Data **ptr)
Set the current pointer value.
Fixed size, stack allocated pointer array.
Data & operator[](int i)
Get an element by reference (mimic C-array subscripting).
Data * ptrs_[Capacity]
Array of pointers to Data objects.
void clear()
Set logical size to zero and nullify all elements.
FPArray()
Default constructor.
int size_
Logical size of array (number of elements used).
void append(Data &data)
Append an element to the end of the array.
void begin(PArrayIterator< Data > &iterator)
Set an iterator to begin this container.
int capacity() const
Return physical capacity of array.
int size() const
Return logical size of this array.
FPArray< Data, Capacity > & operator=(FPArray< Data, Capacity > const &other)
Assignment, element by element.
Forward iterator for a PArray.
void setEnd(Data **ptr)
Set the value of the end pointer.
void setCurrent(Data **ptr)
Set the current pointer value.
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.