| 
    Anklang-0.3.0.dev502+ga23511a1 anklang-0.3.0.dev502+ga23511a1
    
   ASE — Anklang Sound Engine (C++) 
   « « « Anklang Documentation  | 
 
#include <rapidjson/document.h>#include <rapidjson/stringbuffer.h>#include <rapidjson/writer.h>#include <stdarg.h>#include <cxxabi.h>#include <algorithm>#include <functional>#include <typeindex>#include <memory>#include <vector>#include <unordered_map>#include <variant>#include <map>#include <set>Go to the source code of this file.
Macros | |
| #define | JSONIPC_ISLIKELY(expr) | 
| #define | JSONIPC_UNLIKELY(expr) | 
| #define | JSONIPC_WARNING(fmt, ...) | 
| #define | JSONIPC_ASSERT_RETURN(expr, ...) | 
| #define | JSONIPC_MAP_TO_TYPESCRIPT(CXXTYPE, TSTYPE) | 
Typedefs | |
| using | Jsonipc::SharedBase = JsonipcSharedBase | 
| using | Jsonipc::JsonValue = rapidjson::GenericValue< rapidjson::UTF8< char >, rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > > | 
| using | Jsonipc::JsonAllocator = rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > | 
| using | Jsonipc::StringBufferWriter = rapidjson::Writer< rapidjson::StringBuffer, rapidjson::UTF8<>, rapidjson::UTF8<>, rapidjson::CrtAllocator, rapidjson::kWriteNanAndInfNullFlag > | 
| template<bool value> | |
| using | Jsonipc::REQUIRES = typename ::std::enable_if< value, bool >::type | 
| REQUIRES<value> - Simplified version of std::enable_if<cond,bool>::type to use SFINAE in function templates.   | |
| template<bool value> | |
| using | Jsonipc::REQUIRESv = typename ::std::enable_if< value, void >::type | 
| REQUIRESv<value> - Simplified version of std::enable_if<cond,void>::type to use SFINAE in struct templates.   | |
| using | Jsonipc::ScopeLocals = std::vector< std::shared_ptr< void > > | 
| using | Jsonipc::ScopeLocalsP = std::shared_ptr< ScopeLocals > | 
| using | Jsonipc::Closure = std::function< void(CallbackInfo &)> | 
| using | Jsonipc::DefaultConstantVariant = std::variant< std::monostate, std::nullptr_t, uint64_t, int64_t, double, std::string > | 
| using | Jsonipc::DefaultsList = std::initializer_list< DefaultConstant > | 
Functions | |
| template<> | |
| JsonValue | Jsonipc::to_json< const char * > (const char *const &value, JsonAllocator &allocator) | 
| Convert C++ value to JsonValue.   | |
| std::string | Jsonipc::normalize_typename (const std::string &string) | 
| Yield the Javascript identifier name by substituting ':+' with '.'.   | |
| std::string | Jsonipc::short_name (const std::string &full_name) | 
| template<typename... Args> | |
| std::string | Jsonipc::typescript_arg_list () | 
| template<typename... Args> | |
| std::string | Jsonipc::typescript_arg_names_list () | 
| template<typename C , typename R , typename... Args> | |
| std::string | Jsonipc::typescript_call_impl (const std::string &method_name) | 
| template<typename T , typename Ret , typename... Args> | |
| std::string | Jsonipc::typescript_call (const std::string &method_name, Ret(T::*func)(Args...)) | 
Variables | |
| BindingPrinter * | Jsonipc::g_binding_printer | 
| struct Jsonipc::CallTraits::TupleElement | 
Definition at line 512 of file jsonipc.hh.
| Class Members | ||
|---|---|---|
| typedef typename type | Type | |
| struct Jsonipc::CallTraits::TupleElement< INDEX, false > | 
Definition at line 513 of file jsonipc.hh.
| Class Members | ||
|---|---|---|
| typedef void | Type | |
| #define JSONIPC_ASSERT_RETURN | ( | expr, | |
| ... | |||
| ) | 
Definition at line 24 of file jsonipc.hh.
| #define JSONIPC_ISLIKELY | ( | expr | ) | 
Definition at line 21 of file jsonipc.hh.
| #define JSONIPC_MAP_TO_TYPESCRIPT | ( | CXXTYPE, | |
| TSTYPE | |||
| ) | 
Definition at line 885 of file jsonipc.hh.
| #define JSONIPC_UNLIKELY | ( | expr | ) | 
Definition at line 22 of file jsonipc.hh.
| #define JSONIPC_WARNING | ( | fmt, | |
| ... | |||
| ) | 
Definition at line 23 of file jsonipc.hh.
| using Jsonipc::Closure = typedef std::function<void (CallbackInfo&)> | 
Definition at line 447 of file jsonipc.hh.
| using Jsonipc::DefaultConstantVariant = typedef std::variant<std::monostate, std::nullptr_t, uint64_t, int64_t, double, std::string> | 
Definition at line 796 of file jsonipc.hh.
| using Jsonipc::DefaultsList = typedef std::initializer_list<DefaultConstant> | 
Definition at line 811 of file jsonipc.hh.
| using Jsonipc::JsonAllocator = typedef rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> | 
Definition at line 40 of file jsonipc.hh.
| using Jsonipc::JsonValue = typedef rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> > | 
Definition at line 39 of file jsonipc.hh.
| using Jsonipc::REQUIRES = typedef typename ::std::enable_if<value, bool>::type | 
REQUIRES<value> - Simplified version of std::enable_if<cond,bool>::type to use SFINAE in function templates.
Definition at line 68 of file jsonipc.hh.
| using Jsonipc::REQUIRESv = typedef typename ::std::enable_if<value, void>::type | 
REQUIRESv<value> - Simplified version of std::enable_if<cond,void>::type to use SFINAE in struct templates.
Definition at line 71 of file jsonipc.hh.
| using Jsonipc::ScopeLocals = typedef std::vector<std::shared_ptr<void> > | 
Definition at line 159 of file jsonipc.hh.
| using Jsonipc::ScopeLocalsP = typedef std::shared_ptr<ScopeLocals> | 
Definition at line 160 of file jsonipc.hh.
| using Jsonipc::SharedBase = typedef JsonipcSharedBase | 
Definition at line 35 of file jsonipc.hh.
| using Jsonipc::StringBufferWriter = typedef rapidjson::Writer<rapidjson::StringBuffer, rapidjson::UTF8<>, rapidjson::UTF8<>, rapidjson::CrtAllocator, rapidjson::kWriteNanAndInfNullFlag> | 
Definition at line 41 of file jsonipc.hh.
| std::string Jsonipc::normalize_typename | ( | const std::string & | string | ) | 
Yield the Javascript identifier name by substituting ':+' with '.'.
Definition at line 816 of file jsonipc.hh.
References Jsonipc::normalize_typename(), and std::string::size().
Referenced by Jsonipc::normalize_typename().
| std::string Jsonipc::short_name | ( | const std::string & | full_name | ) | 
Definition at line 854 of file jsonipc.hh.
| JsonValue Jsonipc::to_json< const char * > | ( | const char *const & | value, | 
| JsonAllocator & | allocator | ||
| ) | 
Convert C++ value to JsonValue.
Definition at line 402 of file jsonipc.hh.
| std::string Jsonipc::typescript_arg_list | ( | ) | 
Definition at line 889 of file jsonipc.hh.
| std::string Jsonipc::typescript_arg_names_list | ( | ) | 
Definition at line 901 of file jsonipc.hh.
| std::string Jsonipc::typescript_call | ( | const std::string & | method_name, | 
| Ret(T::*)(Args...) | func | ||
| ) | 
Definition at line 923 of file jsonipc.hh.
| std::string Jsonipc::typescript_call_impl | ( | const std::string & | method_name | ) | 
Definition at line 912 of file jsonipc.hh.
| BindingPrinter* Jsonipc::g_binding_printer | 
Definition at line 1071 of file jsonipc.hh.