mlpack  2.2.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Types | Static Public Member Functions | Static Public Attributes | List of all members
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 45 of file serialization_shim.hpp.

Member Typedef Documentation

typedef char no[2]

Definition at line 49 of file serialization_shim.hpp.

typedef char yes[1]

Definition at line 48 of file serialization_shim.hpp.

Member Function Documentation

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

Member Data Documentation

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

Definition at line 57 of file serialization_shim.hpp.


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