My Project
List of all members
mrf::ObjectInst< C, Base > Class Template Reference

User implementation hook. More...

#include <object.h>

Inheritance diagram for mrf::ObjectInst< C, Base >:
mrf::Object

Additional Inherited Members

- Static Public Member Functions inherited from mrf::Object
static ObjectgetObject (const std::string &name)
 
static ObjectgetCreateObject (const std::string &name, const std::string &klass, const create_args_t &args=create_args_t())
 

Detailed Description

template<class C, typename Base = Object>
class mrf::ObjectInst< C, Base >

User implementation hook.

Used to implement properties in a user class.

class mycls : public ObjectInst<mycls> {
...
int getint() const;
void setint(int);
};

Each user class must define an Object table. This should be done once, usually with its method definitions.

...
void mycls::setint(int) {...}
...
OBJECT_BEGIN(mycls)
OBJECT_PROP("propname", &mycls::getint, &mycls::setint)
...
OBJECT_END(mycls)

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