Public Types | Public Member Functions | Protected Attributes

mln::util::set_fwd_iter< T > Class Template Reference

#include <set.hh>

Inheritance diagram for mln::util::set_fwd_iter< T >:
Inheritance graph

List of all members.

Public Types

typedef Proxy< void > category
typedef set_fwd_iter< T > exact_t

Public Member Functions

void change_target (const set< T > &s)
 Change the set it iterates on to s.
const T & element () const
 Give the element the iterator designates.
unsigned index_ () const
 Give the current index.
void invalidate ()
 Invalidate the iterator.
bool is_valid () const
 Returns true if the iterator is valid.
void next ()
 Go to the next element.
 set_fwd_iter (const set< T > &s)
 Constructor from a set s.
 set_fwd_iter ()
 Constructor without argument.
void start ()
 Start an iteration.
const T & subj_ ()

Protected Attributes

unsigned i_
const set< T > * s_

template<typename T>
class mln::util::set_fwd_iter< T >


Member Typedef Documentation

typedef Proxy<void> mln::Proxy< set_fwd_iter< T > >::category [inherited]

Reimplemented from mln::Object< set_fwd_iter< T > >.

typedef set_fwd_iter< T > mln::Object< set_fwd_iter< T > >::exact_t [inherited]

Constructor & Destructor Documentation

template<typename T >
mln::util::set_fwd_iter< T >::set_fwd_iter (  )  [inline]

Constructor without argument.

References mln::util::set_fwd_iter< T >::s_.

template<typename T >
mln::util::set_fwd_iter< T >::set_fwd_iter ( const set< T > &  s  )  [inline]

Constructor from a set s.

References mln::util::set_fwd_iter< T >::change_target().


Member Function Documentation

template<typename T >
void mln::util::set_fwd_iter< T >::change_target ( const set< T > &  s  )  [inline]
template<typename T >
const T & mln::util::set_fwd_iter< T >::element (  )  const [inline]
template<typename T >
unsigned mln::util::set_fwd_iter< T >::index_ (  )  const [inline]

Give the current index.

References mln::util::set_fwd_iter< T >::i_.

template<typename T >
void mln::util::set_fwd_iter< T >::invalidate (  )  [inline]
template<typename T >
bool mln::util::set_fwd_iter< T >::is_valid (  )  const [inline]
template<typename T >
void mln::util::set_fwd_iter< T >::next (  )  [inline]
template<typename T >
void mln::util::set_fwd_iter< T >::start (  )  [inline]
template<typename T >
const T & mln::util::set_fwd_iter< T >::subj_ (  )  [inline]

Member Data Documentation

template<typename T >
unsigned mln::util::set_fwd_iter< T >::i_ [protected]
template<typename T >
const set<T>* mln::util::set_fwd_iter< T >::s_ [protected]