aitools::value::value_traits< T > Struct Template Reference

#include <value_traits.hpp>

List of all members.

Public Types

typedef boost::enable_if
< boost::is_arithmetic< T >, T >
::type 
value_type
typedef uint16_t io_size_type

Static Public Member Functions

static size_t size_of (const value_type &value)
static char * copy_to (const value_type &value, char *buffer)
static const char * copy_from (value_type &value, const char *buffer)
static bool write_to (const value_type &value, FILE *file)
static bool read_from (value_type &value, FILE *file)
static bool print_to (const value_type &value, std::ostream &os)
static bool println_to (const value_type &value, std::ostream &os)
static bool parse_from (value_type &value, std::istream &is)
static std::string type_name ()

Detailed Description

template<typename T>
struct aitools::value::value_traits< T >

Definition at line 125 of file value_traits.hpp.


Member Typedef Documentation

template<typename T>
typedef uint16_t aitools::value::value_traits< T >::io_size_type

Definition at line 129 of file value_traits.hpp.

template<typename T>
typedef boost::enable_if< boost::is_arithmetic<T>, T>::type aitools::value::value_traits< T >::value_type

Definition at line 128 of file value_traits.hpp.


Member Function Documentation

template<typename T>
static const char* aitools::value::value_traits< T >::copy_from ( value_type value,
const char *  buffer 
) [inline, static]
template<typename T>
static char* aitools::value::value_traits< T >::copy_to ( const value_type value,
char *  buffer 
) [inline, static]
template<typename T>
static bool aitools::value::value_traits< T >::parse_from ( value_type value,
std::istream &  is 
) [inline, static]
template<typename T>
static bool aitools::value::value_traits< T >::print_to ( const value_type value,
std::ostream &  os 
) [inline, static]
template<typename T>
static bool aitools::value::value_traits< T >::println_to ( const value_type value,
std::ostream &  os 
) [inline, static]

Definition at line 170 of file value_traits.hpp.

References aitools::value::value_traits< T >::print_to().

Here is the call graph for this function:

template<typename T>
static bool aitools::value::value_traits< T >::read_from ( value_type value,
FILE *  file 
) [inline, static]
template<typename T>
static size_t aitools::value::value_traits< T >::size_of ( const value_type value  )  [inline, static]
template<typename T>
static std::string aitools::value::value_traits< T >::type_name (  )  [inline, static]
template<typename T>
static bool aitools::value::value_traits< T >::write_to ( const value_type value,
FILE *  file 
) [inline, static]

The documentation for this struct was generated from the following file:
Generated on Wed May 30 15:07:44 2012 by  doxygen 1.6.3