Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

olsr::utl::Seqnum< T > Class Template Reference

Sequence number class. More...

#include <seqnum.hh>

List of all members.

Public Member Functions

 Seqnum ()
 Seqnum (const This &other)
 Seqnum (const T &other)
bool operator> (const This &rhs) const
bool operator< (const This &rhs) const
bool operator== (const This &rhs) const
bool operator>= (const This &rhs) const
bool operator<= (const This &rhs) const
Thisoperator++ ()
This operator++ (int)
 operator T () const
void reset ()

Private Types

typedef Seqnum< T > This

Private Member Functions

 ASSERT_UNSIGNED (T)

Private Attributes

_value

Static Private Attributes

static const T _halfmax = internal::maxvalue_trait<T>::value / 2


Detailed Description

template<typename T>
class olsr::utl::Seqnum< T >

Sequence number class.

Parameters:
T implementation type
This class implements all the underlining processing details about sequence numbers (see draft section 19).


Member Typedef Documentation

template<typename T>
typedef Seqnum<T> olsr::utl::Seqnum< T >::This [private]
 


Constructor & Destructor Documentation

template<typename T>
olsr::utl::Seqnum< T >::Seqnum  )  [inline]
 

template<typename T>
olsr::utl::Seqnum< T >::Seqnum const This other  )  [inline]
 

template<typename T>
olsr::utl::Seqnum< T >::Seqnum const T &  other  )  [inline]
 


Member Function Documentation

template<typename T>
olsr::utl::Seqnum< T >::ASSERT_UNSIGNED  )  [private]
 

template<typename T>
olsr::utl::Seqnum< T >::operator T  )  const [inline]
 

template<typename T>
This olsr::utl::Seqnum< T >::operator++ int   )  [inline]
 

template<typename T>
This& olsr::utl::Seqnum< T >::operator++  )  [inline]
 

template<typename T>
bool olsr::utl::Seqnum< T >::operator< const This rhs  )  const [inline]
 

template<typename T>
bool olsr::utl::Seqnum< T >::operator<= const This rhs  )  const [inline]
 

template<typename T>
bool olsr::utl::Seqnum< T >::operator== const This rhs  )  const [inline]
 

template<typename T>
bool olsr::utl::Seqnum< T >::operator> const This rhs  )  const [inline]
 

template<typename T>
bool olsr::utl::Seqnum< T >::operator>= const This rhs  )  const [inline]
 

template<typename T>
void olsr::utl::Seqnum< T >::reset  )  [inline]
 


Member Data Documentation

template<typename T>
const T olsr::utl::Seqnum< T >::_halfmax = internal::maxvalue_trait<T>::value / 2 [static, private]
 

template<typename T>
T olsr::utl::Seqnum< T >::_value [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Jul 28 21:21:52 2005 for Qolyester daemon by  doxygen 1.4.1