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

seqnum.hh File Reference

Sequence number class declarations. More...

#include <sys/types.h>

Go to the source code of this file.

Namespaces

namespace  olsr
namespace  olsr::utl
namespace  olsr::utl::internal

Defines

#define QOLYESTER_UTL_SEQNUM_HH   1
#define DECLARE_MAX_TRAIT(Type, Max)   template <> struct maxvalue_trait<Type> { static const Type value = (Max); }
#define DECLARE_UNSIGNED(Type)   template <> struct assert_unsigned<Type> { struct this_type_is_not_unsigned; }
#define ASSERT_UNSIGNED(Type)   typedef typename internal::assert_unsigned<Type>::this_type_is_not_unsigned _unsigned_dummy_t

Typedefs

typedef utl::Seqnum< u_int16_t > seqnum_t

Functions

 DECLARE_MAX_TRAIT (int8_t, 127)
 DECLARE_MAX_TRAIT (u_int8_t, 255)
 DECLARE_MAX_TRAIT (int16_t, 32767)
 DECLARE_MAX_TRAIT (u_int16_t, 65535)
 DECLARE_MAX_TRAIT (int32_t, 2147483647)
 DECLARE_MAX_TRAIT (u_int32_t, 4294967295U)
 DECLARE_UNSIGNED (u_int8_t)
 DECLARE_UNSIGNED (u_int16_t)
 DECLARE_UNSIGNED (u_int32_t)


Detailed Description

Sequence number class declarations.

Author:
Ignacy Gawedzki
Date:
Sun Sep 28 17:58:32 2003

Define Documentation

#define ASSERT_UNSIGNED Type   )     typedef typename internal::assert_unsigned<Type>::this_type_is_not_unsigned _unsigned_dummy_t
 

#define DECLARE_MAX_TRAIT Type,
Max   )     template <> struct maxvalue_trait<Type> { static const Type value = (Max); }
 

#define DECLARE_UNSIGNED Type   )     template <> struct assert_unsigned<Type> { struct this_type_is_not_unsigned; }
 

#define QOLYESTER_UTL_SEQNUM_HH   1
 


Typedef Documentation

typedef utl::Seqnum<u_int16_t> olsr::seqnum_t
 


Function Documentation

DECLARE_MAX_TRAIT u_int32_t  ,
4294967295U 
 

DECLARE_MAX_TRAIT int32_t  ,
2147483647 
 

DECLARE_MAX_TRAIT u_int16_t  ,
65535 
 

DECLARE_MAX_TRAIT int16_t  ,
32767 
 

DECLARE_MAX_TRAIT u_int8_t  ,
255 
 

DECLARE_MAX_TRAIT int8_t  ,
127 
 

DECLARE_UNSIGNED u_int32_t   ) 
 

DECLARE_UNSIGNED u_int16_t   ) 
 

DECLARE_UNSIGNED u_int8_t   ) 
 


Generated on Thu Jul 28 21:21:49 2005 for Qolyester daemon by  doxygen 1.4.1