s11n::type_traits_base< T, IsConst, IsPointer, IsReference > Struct Template Reference

A base type for type_traits. More...

#include <type_traits.hpp>

List of all members.

Public Types

typedef T type
 Same as (T).
typedef T * pointer
 Same as (T*).
typedef T & reference
 Same as (T&).

Static Public Attributes

static const bool is_const_type = IsConst
 True if T is a const type, else false.
static const bool is_pointer_type = IsPointer
 True if T is a pointer type, else false.
static const bool is_reference_type = IsReference
 True if T is a reference type, else false.


Detailed Description

template<typename T, bool IsConst, bool IsPointer, bool IsReference>
struct s11n::type_traits_base< T, IsConst, IsPointer, IsReference >

A base type for type_traits.

No code should use this class directly, except to subclass it.

Definition at line 18 of file type_traits.hpp.


Member Typedef Documentation

template<typename T, bool IsConst, bool IsPointer, bool IsReference>
typedef T s11n::type_traits_base< T, IsConst, IsPointer, IsReference >::type

Same as (T).

Reimplemented in s11n::type_traits< T >, s11n::type_traits< const T >, s11n::type_traits< T & >, s11n::type_traits< const T & >, s11n::type_traits< T * >, and s11n::type_traits< const T * >.

Definition at line 21 of file type_traits.hpp.

template<typename T, bool IsConst, bool IsPointer, bool IsReference>
typedef T* s11n::type_traits_base< T, IsConst, IsPointer, IsReference >::pointer

Same as (T*).

Reimplemented in s11n::type_traits< T >, s11n::type_traits< const T >, s11n::type_traits< T & >, s11n::type_traits< const T & >, s11n::type_traits< T * >, and s11n::type_traits< const T * >.

Definition at line 23 of file type_traits.hpp.

template<typename T, bool IsConst, bool IsPointer, bool IsReference>
typedef T& s11n::type_traits_base< T, IsConst, IsPointer, IsReference >::reference

Same as (T&).

Reimplemented in s11n::type_traits< T >, s11n::type_traits< const T >, s11n::type_traits< T & >, s11n::type_traits< const T & >, s11n::type_traits< T * >, and s11n::type_traits< const T * >.

Definition at line 25 of file type_traits.hpp.


Member Data Documentation

template<typename T, bool IsConst, bool IsPointer, bool IsReference>
const bool s11n::type_traits_base< T, IsConst, IsPointer, IsReference >::is_const_type = IsConst [static]

True if T is a const type, else false.

Definition at line 27 of file type_traits.hpp.

template<typename T, bool IsConst, bool IsPointer, bool IsReference>
const bool s11n::type_traits_base< T, IsConst, IsPointer, IsReference >::is_pointer_type = IsPointer [static]

True if T is a pointer type, else false.

Definition at line 29 of file type_traits.hpp.

template<typename T, bool IsConst, bool IsPointer, bool IsReference>
const bool s11n::type_traits_base< T, IsConst, IsPointer, IsReference >::is_reference_type = IsReference [static]

True if T is a reference type, else false.

Definition at line 31 of file type_traits.hpp.


The documentation for this struct was generated from the following file:
Generated on Wed Jun 4 21:45:47 2008 for libs11n-1.2.7 by  doxygen 1.5.3