![]() |
API documentation
2.0rc1
|
Classes | |
| class | ArrayRef |
| struct | CallbackHelper |
| struct | CallbackHelper< T, R(C::*)(Args...) const > |
| struct | CallbackHelper< T, R(C::*)(Args...)> |
| struct | CallbackHelperBase |
| struct | CallbackHelperBase< T, false, R, Args... > |
| struct | CallbackHelperBase< T, true, R, Args... > |
| struct | InvokeHelper |
| struct | InvokeHelper< void > |
| struct | TypedArrayForPointerType |
| struct | TypedArrayForPointerType< double > |
| struct | TypedArrayForPointerType< float > |
| struct | TypedArrayForPointerType< signed char > |
| struct | TypedArrayForPointerType< signed int > |
| struct | TypedArrayForPointerType< signed short > |
| struct | TypedArrayForPointerType< unsigned char > |
| struct | TypedArrayForPointerType< unsigned int > |
| struct | TypedArrayForPointerType< unsigned short > |
Functions | |
| template<typename... Args> | |
| void | console_log (const char *message, Args &&... optionalParams) |
| template<class T > | |
| client::EventListener * | Callback (const T &func) |
| template<class R , class... Args> | |
| client::EventListener * | Callback (R(*func)(Args...)) |
| template<typename P , typename T = typename TypedArrayForPointerType<P>::type> | |
| T * | MakeTypedArray (const P *ptr, size_t size=0) |
| template<typename T > | |
| T * | MakeTypedArray (const void *ptr, size_t size=0) |
| client::ArrayBufferView * | MakeArrayBufferView (const void *ptr, size_t size=0) |
| template<class T > | |
| ArrayRef< T > | makeArrayRef (T *obj) |
| client::EventListener* cheerp::Callback | ( | const T & | func | ) |
Adapter from C++ functors and lambdas to code callable from JavaScript and the browser The implementation tries hard to directly forward the C++ function to JavaScript woth zero overhead when possible. For functors and capturing lambdas an std::function object and a JavaScript closure are created.
| client::EventListener* cheerp::Callback | ( | R(*)(Args...) | func | ) |
Adapter from C++ funtions to code callable from JavaScript and the browser The implementation directly forward the C++ function to JavaScript with zero overhead.
| void cheerp::console_log | ( | const char * | message, |
| Args &&... | optionalParams | ||
| ) |
|
inline |
| ArrayRef<T> cheerp::makeArrayRef | ( | T * | obj | ) |
| T* cheerp::MakeTypedArray | ( | const P * | ptr, |
| size_t | size = 0 |
||
| ) |
| T* cheerp::MakeTypedArray | ( | const void * | ptr, |
| size_t | size = 0 |
||
| ) |
1.8.13