Anklang C++ API 0.0.0
Loading...
Searching...
No Matches
Class< T >

#include "jsonipc.hh"

Inheritance diagram for Class< T >:
[legend]

Public Member Functions

Class ()
template<typename B >
Class &inherit ()
template<typename F , REQUIRES< std::is_member_function_pointer< F >::value > = true>
Class &set (const char *name, const F &method)
template<typename M , REQUIRES< Has_setget< M >::value > = true>
Class &set (const char *name, M T::*const memb)
template<typename R , typename A , typename C >
Class &set (const char *name, R(C::*get)() const, void(C::*set)(A))
template<typename F , REQUIRES< std::is_member_function_pointer< F >::value > = true>
Class &set_d (const char *name, const F &method, const DefaultsList &dflts)

Static Public Member Functions

static size_tbase_depth ()
static std::stringclassname ()
static Closure *lookup_closure (const char *methodname)
static std::shared_ptr< T >object_from_json (const JsonValue &value)
static booltry_upcast (std::shared_ptr< T > &sptr, const std::string &baseclass, void *sptrB)

Additional Inherited Members

- Protected Member Functions inherited from TypeInfo
voidprint (ClassPrinter::Op op, const std::string &name, int32_t count=0, const DefaultsList &dflts={})
TypeInfo (ClassPrinter *printer)
virtual~TypeInfo ()
- Protected Attributes inherited from TypeInfo
ClassPrinter *printer_

Constructor & Destructor Documentation

Class()

template<typename T >
Class ( )

Member Function Documentation

inherit()

template<typename T >
template<typename B >
Class & inherit ( )

set() [1/3]

template<typename T >
template<typename F , REQUIRES< std::is_member_function_pointer< F >::value > = true>
Class & set ( const char * name,
const F & method
)

Add a member function pointer.

set() [2/3]

template<typename T >
template<typename R , typename A , typename C >
Class & set ( const char * name,
R(C::*)() const get,
void(C::*)(A) set
)

Add a member object accessors.

set_d()

template<typename T >
template<typename F , REQUIRES< std::is_member_function_pointer< F >::value > = true>
Class & set_d ( const char * name,
const F & method,
const DefaultsList & dflts
)

set() [3/3]

template<typename T >
template<typename M , REQUIRES< Has_setget< M >::value > = true>
Class & set ( const char * name,
M T::*const memb
)

Add a field member.

classname()

template<typename T >
static std::string classname ( )
static

object_from_json()

template<typename T >
static std::shared_ptr< T > object_from_json ( const JsonValue & value)
static

base_depth()

template<typename T >
static size_t base_depth ( )
static

lookup_closure()

template<typename T >
static Closure * lookup_closure ( const char * methodname)
static

try_upcast()

template<typename T >
static bool try_upcast ( std::shared_ptr< T > & sptr,
const std::string & baseclass,
void * sptrB
)
static