Anklang-0.3.0-1416-gfa8ce8d2 anklang-0.3.0-1416-gfa8ce8d2
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 >
Class & inherit ()
 
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.
 
template<typename R , typename A , typename C , typename VB >
Class & set (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>
Class & set_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 Closure * lookup_closure (const char *methodname)
 
static std::vector< std::string > list_methods ()
 List the method names registered for T and its base classes, accessors as "get/name" and "set/name".
 
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 1295 of file jsonipc.hh.

Constructor & Destructor Documentation

◆ Class()

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

Definition at line 1296 of file jsonipc.hh.

Member Function Documentation

◆ base_depth()

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

Definition at line 1452 of file jsonipc.hh.

◆ classname()

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

Definition at line 1359 of file jsonipc.hh.

◆ inherit()

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

Definition at line 1320 of file jsonipc.hh.

◆ list_methods()

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

List the method names registered for T and its base classes, accessors as "get/name" and "set/name".

Definition at line 1482 of file jsonipc.hh.

References std::sort(), and std::unique().

◆ lookup_closure()

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

Definition at line 1465 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 1364 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 1329 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 1338 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 1349 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 1495 of file jsonipc.hh.


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