|
ponder
3.2
C++ reflection library
|
Represents a metaconstructor which is used to create objects instances from metaclasses. More...
#include <constructor.hpp>
Inheritance diagram for ponder::Constructor:Public Member Functions | |
| virtual | ~Constructor () |
| Destructor. | |
| virtual bool | matches (const Args &args) const =0 |
| Check if the constructor matches the given set of arguments. More... | |
| virtual UserObject | create (void *ptr, const Args &args) const =0 |
| Use the constructor to create a new object. More... | |
Represents a metaconstructor which is used to create objects instances from metaclasses.
This class is an interface which has to be derived to implement typed constructors.
|
pure virtual |
Use the constructor to create a new object.
| ptr | If not null, use for placement new, otherwise heap allocate using new |
| args | Set of arguments to pass to the constructor |
|
pure virtual |
Check if the constructor matches the given set of arguments.
| args | Set of arguments to check |