mlpack: mlpack::data::HasSerialize< T > Struct Template Reference
mlpack::data::HasSerialize< T > Struct Template Reference

Classes

struct  check
 

Public Types

typedef char no[2]
 
typedef char yes[1]
 

Static Public Member Functions

template<typename U >
static yeschk (check< U, typename boost::enable_if< boost::is_class< U >>::type *, typename boost::enable_if< HasSerializeFunction< U >>::type * > *)
 
template<typename >
static nochk (...)
 

Static Public Attributes

static const bool value = (sizeof(chk<T>(0)) == sizeof(yes))
 

Detailed Description

template<typename T>
struct mlpack::data::HasSerialize< T >

Definition at line 47 of file serialization_shim.hpp.

Member Typedef Documentation

template<typename T >
typedef char mlpack::data::HasSerialize< T >::no[2]

Definition at line 51 of file serialization_shim.hpp.

template<typename T >
typedef char mlpack::data::HasSerialize< T >::yes[1]

Definition at line 50 of file serialization_shim.hpp.

Member Function Documentation

template<typename T >
template<typename U >
static yes& mlpack::data::HasSerialize< T >::chk ( check< U, typename boost::enable_if< boost::is_class< U >>::type *, typename boost::enable_if< HasSerializeFunction< U >>::type * > *  )
static
template<typename T >
template<typename >
static no& mlpack::data::HasSerialize< T >::chk (   ...)
static

Member Data Documentation

template<typename T >
const bool mlpack::data::HasSerialize< T >::value = (sizeof(chk<T>(0)) == sizeof(yes))
static

Definition at line 59 of file serialization_shim.hpp.


The documentation for this struct was generated from the following file: