1#ifndef UTIL_CONST_ARRAY_H
2#define UTIL_CONST_ARRAY_H
11#include <util/containers/ConstArrayIterator.h>
36 template <
typename Data>
49 operator = (ConstArray<Data>
const & other) =
delete;
74 Data
const *
cArray()
const;
124 template <
typename Data>
inline
135 template <
typename Data>
142 template <
typename Data>
inline
154 template <
typename Data>
inline
166 template <
typename Data>
inline
173 template <
typename Data>
inline
175 {
return (
bool)
data_; }
180 template <
typename Data>
inline
187 template <
typename Data>
inline
Forward const iterator for an Array or a C array.
void setEnd(Data *ptr)
Set the value of the end pointer.
void setCurrent(Data *ptr)
Set the current pointer value.
~ConstArray()
Destructor (protected to prevent direct destruction).
Data const & operator[](int i) const
Get an element by const reference.
int size() const
Return logical size of this array.
bool isAllocated() const
Does this array have associated data?
int capacity_
Allocated size of the data_ array.
int capacity() const
Return allocated size of this array.
Data * data_
Pointer to an array of Data elements.
ConstArray()
Constructor (protected to prevent direct instantiation).
Data const * cArray() const
Return a pointer to the underlying C array (pointer to const data).
void begin(ConstArrayIterator< Data > &iterator) const
Set a const iterator to begin this ConstArray.
File containing preprocessor macros for error handling.
Utility classes for scientific computation.