RAVE
_raveobjecttype Struct Reference

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.
 

Detailed Description

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.

Member Data Documentation

◆ constructor

int(* _raveobjecttype::constructor) (RaveCoreObject *obj)

function to be called for initialization of the object

◆ copyconstructor

int(* _raveobjecttype::copyconstructor) (RaveCoreObject *obj, RaveCoreObject *source)

Function when creating an clone.

◆ destructor

void(* _raveobjecttype::destructor) (RaveCoreObject *obj)

function to be called for release of members in the object

◆ name

const char* _raveobjecttype::name

the name, for printout

◆ type_size

size_t _raveobjecttype::type_size

the size of the object, sizeof(type)


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