1 #ifndef UTIL_CONST_ARRAY_ITERATOR_H 2 #define UTIL_CONST_ARRAY_ITERATOR_H 36 template <
typename Data>
74 {
return (current_ == end_); }
82 {
return (current_ != end_); }
89 const Data*
get()
const 101 {
return *current_; }
Forward const iterator for an Array or a C array.
const Data * operator->() const
Provide a pointer to the current Data object.
void setEnd(Data *ptr)
Set the value of the end pointer.
Utility classes for scientific computation.
const Data & operator*() const
Get a reference to the current Data.
bool isEnd() const
Has the end of the array been reached?
void setCurrent(Data *ptr)
Set the current pointer value.
bool notEnd() const
Is this not the end of the array?
ConstArrayIterator()
Default constructor.
ConstArrayIterator< Data > & operator++()
Increment the current pointer.