1#ifndef UTIL_ARRAY_ITERATOR_H
2#define UTIL_ARRAY_ITERATOR_H
35 template <
typename Data>
73 {
return (current_ == end_); }
81 {
return (current_ != end_); }
100 {
return *current_; }
Forward iterator for an Array or a C array.
bool isEnd() const
Has the end of the array been reached?
Data & operator*() const
Return a reference to the current Data.
bool notEnd() const
Is the current pointer not at the end of the array?
void setEnd(Data *ptr)
Set the value of the end pointer.
Data * get() const
Return a pointer to the current data.
ArrayIterator()
Default constructor.
Data * operator->() const
Return a pointer to the current Data object.
ArrayIterator< Data > & operator++()
Increment the current pointer.
void setCurrent(Data *ptr)
Set the current pointer value.
Utility classes for scientific computation.