Wolframe, 0.0.3

_Wolframe::serialize::traits Namespace Reference

templates for type dependend characteristics in serialization More...

Classes

struct  atomic_
 category tag for an atomic type More...
 
struct  has_description_method
 conditional template for detecting if a type is a class with a static/member method getStructDescription() returning a const pointer to a structure description as defined in serialize/structDescriptionBase.hpp More...
 
struct  has_description_method< T, true >
 
struct  has_description_method_noprm
 
struct  struct_
 category tag for a structure with named elements More...
 
struct  vector_
 category tag for a std::vector of any type More...
 

Functions

template<typename T >
boost::enable_if_c
< boost::is_same< std::vector
< typename T::value_type >,T >
::value &&!boost::is_same
< std::string, T >::value,const
vector_ & >::type 
getCategory (const T &)
 get category vector_ for a type More...
 
template<typename T >
boost::enable_if_c
< has_description_method< T >
::value,const struct_ & >
::type 
getCategory (const T &)
 get category struct_ for a type More...
 
template<typename T >
boost::enable_if_c
< boost::is_arithmetic< T >
::value||boost::is_same
< std::string, T >::value||boost::is_same
< types::DateTime, T >::value||boost::is_same
< types::BigNumber, T >::value,const
atomic_ & >::type 
getCategory (const T &)
 get category atomic_ for a type More...
 

Detailed Description

templates for type dependend characteristics in serialization

Function Documentation

template<typename T >
boost::enable_if_c< boost::is_same< std::vector< typename T::value_type> ,T>::value && !boost::is_same<std::string,T>::value ,const vector_&>::type _Wolframe::serialize::traits::getCategory ( const T &  )

get category vector_ for a type

Returns
vector_ if std::vector<T::value_type> EQUALS T. This is true, when T is a std::vector of any kind
template<typename T >
boost::enable_if_c< has_description_method<T>::value ,const struct_&>::type _Wolframe::serialize::traits::getCategory ( const T &  )

get category struct_ for a type

Returns
struct_ if T has a method description with no params returning a const pointer to a serialize::StructDescriptionBase
template<typename T >
boost::enable_if_c< boost::is_arithmetic<T>::value || boost::is_same<std::string,T>::value || boost::is_same<types::DateTime,T>::value || boost::is_same<types::BigNumber,T>::value ,const atomic_&>::type _Wolframe::serialize::traits::getCategory ( const T &  )

get category atomic_ for a type

Returns
atomic_ if T fulfills the is_arithmetic condition or is a string