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.
void setEnd(Data *ptr)
Set the value of the end pointer.
void setCurrent(Data *ptr)
Set the current pointer value.
bool notEnd() const
Is this not the end of the array?
const Data * get() const
Return a pointer to the current data.
const Data * operator->() const
Provide a pointer to the current Data object.
ConstArrayIterator< Data > & operator++()
Increment the current pointer.
bool isEnd() const
Has the end of the array been reached?
ConstArrayIterator()
Default constructor.
const Data & operator*() const
Get a reference to the current Data.
Utility classes for scientific computation.