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

Classes

struct  olsr::utl::internal::maxvalue_trait< T >
struct  olsr::utl::internal::assert_unsigned< T >
class  olsr::utl::Seqnum< T >
 Sequence number class. More...

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 > olsr::seqnum_t

Functions

 olsr::utl::internal::DECLARE_MAX_TRAIT (int8_t, 127)
 olsr::utl::internal::DECLARE_MAX_TRAIT (u_int8_t, 255)
 olsr::utl::internal::DECLARE_MAX_TRAIT (int16_t, 32767)
 olsr::utl::internal::DECLARE_MAX_TRAIT (u_int16_t, 65535)
 olsr::utl::internal::DECLARE_MAX_TRAIT (int32_t, 2147483647)
 olsr::utl::internal::DECLARE_MAX_TRAIT (u_int32_t, 4294967295U)
 olsr::utl::internal::DECLARE_UNSIGNED (u_int8_t)
 olsr::utl::internal::DECLARE_UNSIGNED (u_int16_t)
 olsr::utl::internal::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


Generated on Mon Sep 10 17:02:13 2007 for Qolyester daemon by  doxygen 1.5.1