libtins  4.0
Classes | Public Types | Public Member Functions | List of all members
Tins::AddressRangeIterator< Address > Class Template Reference

AddressRange iterator class. More...

#include <address_range.h>

Inheritance diagram for Tins::AddressRangeIterator< Address >:

Classes

struct  end_iterator
 

Public Types

typedef std::iterator< std::forward_iterator_tag, const Address >::value_type value_type
 

Public Member Functions

 AddressRangeIterator (const value_type &address)
 
 AddressRangeIterator (const value_type &address, end_iterator)
 
const value_type & operator* () const
 
const value_type * operator-> () const
 
bool operator== (const AddressRangeIterator &rhs) const
 
bool operator!= (const AddressRangeIterator &rhs) const
 
AddressRangeIteratoroperator++ ()
 
AddressRangeIterator operator++ (int)
 

Detailed Description

template<typename Address>
class Tins::AddressRangeIterator< Address >

AddressRange iterator class.

Constructor & Destructor Documentation

template<typename Address >
Tins::AddressRangeIterator< Address >::AddressRangeIterator ( const value_type &  address)
inline

Constructs an iterator.

Parameters
firstThe address held by this iterator.
template<typename Address >
Tins::AddressRangeIterator< Address >::AddressRangeIterator ( const value_type &  address,
end_iterator   
)
inline

Constructs an iterator.

Parameters
firstThe address held by this iterator.

Member Function Documentation

template<typename Address >
bool Tins::AddressRangeIterator< Address >::operator!= ( const AddressRangeIterator< Address > &  rhs) const
inline

Compares two iterators for inequality.

Parameters
rhsThe iterator with which to compare.
template<typename Address >
const value_type& Tins::AddressRangeIterator< Address >::operator* ( ) const
inline

Retrieves the current address pointed by this iterator.

template<typename Address >
AddressRangeIterator& Tins::AddressRangeIterator< Address >::operator++ ( )
inline

Increments this iterator.

template<typename Address >
AddressRangeIterator Tins::AddressRangeIterator< Address >::operator++ ( int  )
inline

Increments this iterator.

template<typename Address >
const value_type* Tins::AddressRangeIterator< Address >::operator-> ( ) const
inline

Retrieves a pointer to the current address pointed by this iterator.

template<typename Address >
bool Tins::AddressRangeIterator< Address >::operator== ( const AddressRangeIterator< Address > &  rhs) const
inline

Compares two iterators for equality.

Parameters
rhsThe iterator with which to compare.

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