dlvhex  2.5.0
set_iterator< T > Class Template Reference

This class implements an iterator for Set according to public std::iterator. More...

#include <include/dlvhex2/Set.h>

Public Member Functions

 set_iterator (Set< T > &s, int l=0)
T & operator* ()
T * operator-> ()
set_iteratoroperator++ ()
set_iterator operator++ (int)
set_iteratoroperator-- ()
set_iterator operator-- (int)
set_iterator operator+ (int i) const
set_iterator operator+ (set_iterator &it) const
set_iterator operator- (int i) const
set_iterator operator- (set_iterator &it) const
 operator const int () const
bool operator== (set_iterator const &sit2) const
bool operator!= (set_iterator const &sit2) const

Protected Attributes

Set< T > & set
int loc

Detailed Description

template<typename T>
class set_iterator< T >

This class implements an iterator for Set according to public std::iterator.

See public std::iterator for descriptions of the methods and operators in this class.

Definition at line 160 of file Set.h.


Constructor & Destructor Documentation

template<typename T>
set_iterator< T >::set_iterator ( Set< T > &  s,
int  l = 0 
) [inline]

Definition at line 166 of file Set.h.


Member Function Documentation

template<typename T>
set_iterator< T >::operator const int ( ) const [inline]

Definition at line 219 of file Set.h.

References set_iterator< T >::loc.

template<typename T>
bool set_iterator< T >::operator!= ( set_iterator< T > const &  sit2) const [inline]

Definition at line 229 of file Set.h.

References set_iterator< T >::loc.

template<typename T>
T& set_iterator< T >::operator* ( ) [inline]

Definition at line 169 of file Set.h.

References set_iterator< T >::loc.

template<typename T>
set_iterator set_iterator< T >::operator+ ( int  i) const [inline]

Definition at line 199 of file Set.h.

References set_iterator< T >::loc.

template<typename T>
set_iterator set_iterator< T >::operator+ ( set_iterator< T > &  it) const [inline]

Definition at line 204 of file Set.h.

References set_iterator< T >::loc.

template<typename T>
set_iterator& set_iterator< T >::operator++ ( ) [inline]

Definition at line 177 of file Set.h.

References set_iterator< T >::loc.

Referenced by set_iterator< T >::operator++().

template<typename T>
set_iterator set_iterator< T >::operator++ ( int  ) [inline]

Definition at line 182 of file Set.h.

References set_iterator< T >::operator++().

template<typename T>
set_iterator set_iterator< T >::operator- ( int  i) const [inline]

Definition at line 209 of file Set.h.

References set_iterator< T >::loc.

template<typename T>
set_iterator set_iterator< T >::operator- ( set_iterator< T > &  it) const [inline]

Definition at line 214 of file Set.h.

References set_iterator< T >::loc.

template<typename T>
set_iterator& set_iterator< T >::operator-- ( ) [inline]

Definition at line 188 of file Set.h.

References set_iterator< T >::loc.

Referenced by set_iterator< T >::operator--().

template<typename T>
set_iterator set_iterator< T >::operator-- ( int  ) [inline]

Definition at line 193 of file Set.h.

References set_iterator< T >::operator--().

template<typename T>
T* set_iterator< T >::operator-> ( ) [inline]

Definition at line 173 of file Set.h.

References set_iterator< T >::loc.

template<typename T>
bool set_iterator< T >::operator== ( set_iterator< T > const &  sit2) const [inline]

Definition at line 224 of file Set.h.

References set_iterator< T >::loc.


Field Documentation

template<typename T>
Set<T>& set_iterator< T >::set [protected]

Definition at line 163 of file Set.h.


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