|
NSCL DDAS
1.0
Support for XIA DDAS at the NSCL
|
TrIterator template class. More...
#include <TrIterator.hpp>
Public Types | |
| typedef T | value_type |
| typedef ptrdiff_t | difference_type |
| typedef T * | pointer |
| typedef T & | reference |
| typedef std::input_iterator_tag | iterator_category |
Public Member Functions | |
| TrIterator (const T *iter=0) | |
| Default constructor. More... | |
| TrIterator (const TrIterator &iter) | |
| Copy constructor. More... | |
| TrIterator & | operator= (const TrIterator &iter) |
| Assignment operator. More... | |
| bool | operator== (const TrIterator &iter) const |
| Equality operator. | |
| bool | operator!= (const TrIterator &iter) const |
| Inequality operator. | |
| bool | operator< (const TrIterator &iter) const |
| Less than operator. | |
| bool | operator<= (const TrIterator &iter) const |
| Less than or equal to operator. | |
| bool | operator> (const TrIterator &iter) const |
| Greater than operator. | |
| bool | operator>= (const TrIterator &iter) const |
| Greater than or equal to operator. | |
| TrIterator & | operator++ () |
| ++iter type incrementation | |
| TrIterator | operator++ (int) |
| iter++ type incremenation | |
| TrIterator & | operator-- () |
| –iter type decrementation | |
| TrIterator | operator-- (int) |
| iter– type decremenation | |
| TrIterator | operator+ (int n) const |
| iter+n | |
| TrIterator & | operator+= (int n) |
| iter += n | |
| TrIterator | operator- (int n) const |
| iter-n | |
| TrIterator & | operator-= (int n) |
| iter -= n | |
| difference_type | operator- (const TrIterator &that) const |
| Distance between two iterators. More... | |
| value_type | operator* () const |
| Dereference operator. More... | |
TrIterator template class.
The bedrock component of the Traiter package. It is a basic iterator that provides the full functionality of an input iterator. However, it also supports random access at a minimum level for convenience. TrIterators DO NOT alter the trace elements pointed to. They can be copied, assigned to, subtracted from one another, and compared with one another.
|
inline |
Default constructor.
Default to a null iterator when the argument is absent. Dereferencing a null iterator is undefined and will result in unpredictable behavior. It is the user's responsibility to avoid this.
| iter | is a pointer to an object of type T |
|
inline |
Copy constructor.
Creates a new iterator that points at the same object as the argument.
| iter | the iterator to copy |
|
inline |
Dereference operator.
|
inline |
Distance between two iterators.
|
inline |
Assignment operator.
Copies the internal pointer
| iter | the TrIterator whose state will be copied |
1.8.8