Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | List of all members
Jsonipc::Class< T > Struct Template Reference
Inheritance diagram for Jsonipc::Class< T >:
[legend]

Public Member Functions

 Class (bool internal=false)
 
template<typename B >
Classinherit ()
 
template<typename F , REQUIRES< std::is_member_function_pointer< F >::value > = true>
Classset (const char *name, const F &method)
 Add a member function pointer.
 
template<typename R , typename A , typename C , typename VB >
Classset (const char *name, R(C::*get)() const, VB(C::*set)(A))
 Add a member object accessors.
 
template<typename F , REQUIRES< std::is_member_function_pointer< F >::value > = true>
Classset_d (const char *name, const F &method, const DefaultsList &dflts)
 

Static Public Member Functions

static std::string classname ()
 
static std::shared_ptr< T > object_from_json (const JsonValue &value)
 
static size_t base_depth ()
 
static Closurelookup_closure (const char *methodname)
 
static bool try_upcast (std::shared_ptr< T > &sptr, const std::string &baseclass, void *sptrB)
 

Detailed Description

template<typename T>
struct Jsonipc::Class< T >

Definition at line 1266 of file jsonipc.hh.

Constructor & Destructor Documentation

◆ Class()

template<typename T >
Jsonipc::Class< T >::Class ( bool  internal = false)

Definition at line 1267 of file jsonipc.hh.

Member Function Documentation

◆ base_depth()

template<typename T >
static size_t Jsonipc::Class< T >::base_depth ( )
static

Definition at line 1422 of file jsonipc.hh.

◆ classname()

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

Definition at line 1330 of file jsonipc.hh.

◆ inherit()

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

Definition at line 1291 of file jsonipc.hh.

◆ lookup_closure()

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

Definition at line 1435 of file jsonipc.hh.

◆ object_from_json()

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

Definition at line 1335 of file jsonipc.hh.

◆ set() [1/2]

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

Add a member function pointer.

Definition at line 1300 of file jsonipc.hh.

Referenced by Jsonipc::Class< T >::set().

◆ set() [2/2]

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

Add a member object accessors.

Definition at line 1309 of file jsonipc.hh.

References Jsonipc::Class< T >::set().

◆ set_d()

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

Definition at line 1320 of file jsonipc.hh.

◆ try_upcast()

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

Definition at line 1451 of file jsonipc.hh.


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