ponder
3.2
C++ reflection library
|
Contains Ponder runtime support public API. More...
Classes | |
class | FunctionCaller |
This object is used to invoke a function. More... | |
class | ObjectCaller |
This object is used to invoke a object member function, or method. More... | |
class | ObjectFactory |
This object is used to create instances of metaclasses. More... | |
Typedefs | |
typedef std::unique_ptr< UserObject > | UniquePtr |
Functions | |
static void | destroy (const UserObject &obj) |
Destroy a UserObject instance. More... | |
template<typename... A> | |
static UserObject | create (const Class &cls, A... args) |
Create instance of metaclass as a UserObject. More... | |
UniquePtr | makeUniquePtr (UserObject *obj) |
template<typename... A> | |
static UniquePtr | createUnique (const Class &cls, A... args) |
template<typename... A> | |
static Value | call (const Function &fn, const UserObject &obj, A &&... args) |
Call a member function. More... | |
template<typename... A> | |
static Value | callStatic (const Function &fn, A &&... args) |
Call a non-member function. More... | |
Contains Ponder runtime support public API.
|
inlinestatic |
Call a member function.
This is a helper function which uses ObjectCaller to call the member function.
fn | The Function to call |
obj | Reference to UserObject instance to destroy |
args | Arguments for the function |
void
.
|
inlinestatic |
Call a non-member function.
This is a helper function which uses FunctionCaller to call the function.
fn | The Function to call |
args | Arguments for the function |
void
.
|
inlinestatic |
Create instance of metaclass as a UserObject.
This is a helper function which uses ObjectFactory to create the instance.
cls | The metaclass to make an instance of |
args | The constructor arguments for the class instance |
|
inlinestatic |
Destroy a UserObject instance.
This is a helper function which uses ObjectFactory to destroy the instance.
obj | Reference to UserObject instance to destroy |