ROSE  0.11.125.0
Public Member Functions | List of all members
Rose::Tree::List< T >::iterator Class Reference

Description

template<class T>
class Rose::Tree::List< T >::iterator

Random access iterator to non-const edges.

Iterators are invalidated in the same situations as for std::vector.

Definition at line 42 of file List.h.

#include <Rose/Tree/List.h>

Public Member Functions

difference_type operator- (const iterator &other) const
 Distance between two iterators. More...
 
Edge< T > & operator[] (difference_type n) const
 Return an edge relative to the current one. More...
 
Edge< T > & operator* ()
 Return a reference to the current edge. More...
 
Edge< T > * operator-> ()
 Return a pointer to the current edge. More...
 
iteratoroperator= (const iterator &other)
 Make this iterator point to the same element as the @ other iterator. More...
 
iteratoroperator++ ()
 Cause iterator to point to the next edge.
 
iterator operator++ (int)
 Cause iterator to point to the next edge.
 
iteratoroperator-- ()
 Cause iterator to point to previous edge.
 
iterator operator-- (int)
 Cause iterator to point to previous edge.
 
iteratoroperator+= (difference_type n)
 Advance iterator in forward (or backward if negative) direction by n edges.
 
iterator operator+ (difference_type n) const
 Advance iterator in forward (or backward if negative) direction by n edges.
 
iteratoroperator-= (difference_type n)
 Advance iterator in backward (or forward if negative) direction by n edges.
 
iterator operator- (difference_type n) const
 Advance iterator in backward (or forward if negative) direction by n edges.
 
bool operator== (const iterator &other) const
 Compare two iterators.
 
bool operator!= (const iterator &other) const
 Compare two iterators.
 
bool operator< (const iterator &other) const
 Compare two iterators.
 
bool operator<= (const iterator &other) const
 Compare two iterators.
 
bool operator> (const iterator &other) const
 Compare two iterators.
 
bool operator>= (const iterator &other) const
 Compare two iterators.
 

Member Function Documentation

template<class T >
difference_type Rose::Tree::List< T >::iterator::operator- ( const iterator other) const
inline

Distance between two iterators.

Definition at line 107 of file List.h.

template<class T >
Edge<T>& Rose::Tree::List< T >::iterator::operator[] ( difference_type  n) const
inline

Return an edge relative to the current one.

Returns the edge that's n edges after (or before if negative) the current edge.

Definition at line 114 of file List.h.

template<class T >
Edge<T>& Rose::Tree::List< T >::iterator::operator* ( )
inline

Return a reference to the current edge.

Definition at line 120 of file List.h.

template<class T >
Edge<T>* Rose::Tree::List< T >::iterator::operator-> ( )
inline

Return a pointer to the current edge.

Definition at line 126 of file List.h.

template<class T >
iterator& Rose::Tree::List< T >::iterator::operator= ( const iterator other)
inline

Make this iterator point to the same element as the @ other iterator.

Definition at line 132 of file List.h.


The documentation for this class was generated from the following file: