RAVE
|
The rave object type definition. More...
#include <rave_object.h>
Public Attributes | |
const char * | name |
the name, for printout | |
size_t | type_size |
the size of the object, sizeof(type) | |
int(* | constructor )(RaveCoreObject *obj) |
function to be called for initialization of the object | |
void(* | destructor )(RaveCoreObject *obj) |
function to be called for release of members in the object | |
int(* | copyconstructor )(RaveCoreObject *obj, RaveCoreObject *source) |
Function when creating an clone. | |
The rave object type definition.
If you are implementing support for the copy constructor, you must ensure that all members of the object are clones as well so that there are no references to other objects.
int(* _raveobjecttype::constructor) (RaveCoreObject *obj) |
function to be called for initialization of the object
int(* _raveobjecttype::copyconstructor) (RaveCoreObject *obj, RaveCoreObject *source) |
Function when creating an clone.
void(* _raveobjecttype::destructor) (RaveCoreObject *obj) |
function to be called for release of members in the object
const char* _raveobjecttype::name |
the name, for printout
size_t _raveobjecttype::type_size |
the size of the object, sizeof(type)