1#ifndef UTIL_P_ARRAY_ITERATOR_H
2#define UTIL_P_ARRAY_ITERATOR_H
33 template <
typename Data>
85 {
return (current_ == end_); }
93 {
return (current_ != end_); }
137 if (current_ != end_) {
Forward iterator for a PArray.
PArrayIterator()
Default constructor.
Data & operator*() const
Return a reference to the current Data.
bool isEnd() const
Is the current pointer at the end of the PArray?
Data * get() const
Return a pointer to the current data.
Data * operator->() const
Provide a pointer to the current Data object.
PArrayIterator< Data > & operator++()
Increment the current pointer.
void setNull()
Nullify the iterator.
void setEnd(Data **ptr)
Set the value of the end pointer.
bool notEnd() const
Is the current pointer not at the end of the PArray?
void setCurrent(Data **ptr)
Set the current pointer value.
Utility classes for scientific computation.