_Eo_Class_Description Struct Reference

This struct holds the description of a class. More...

Data Fields

unsigned int version
 The current version of eo, use EO_VERSION.
 
const char * name
 The name of the class.
 
Eo_Class_Type type
 The type of the class.
 
struct {
   Eo_Op *   base_op_id
 
   const Eo_Op_Description *   descs
 
   size_t   count
 
ops
 The ops description, should be filled using EO_CLASS_DESCRIPTION_OPS.
 
const Eo_Event_Description ** events
 The event descriptions for this class.
 
size_t data_size
 The size of data (private + protected + public) this class needs per object.
 
void(* class_constructor )(Eo_Class *klass)
 The constructor of the class.
 
void(* class_destructor )(Eo_Class *klass)
 The destructor of the class.
 

Detailed Description

This struct holds the description of a class.

This description should be passed to eo_class_new. Please use the EO_CLASS_DESCRIPTION_OPS macro when populating it.

Field Documentation

const char* _Eo_Class_Description::name

The name of the class.

Referenced by eo_class_new().

Eo_Class_Type _Eo_Class_Description::type

The type of the class.

Referenced by eo_class_new().

const Eo_Event_Description** _Eo_Class_Description::events

The event descriptions for this class.

size_t _Eo_Class_Description::data_size

The size of data (private + protected + public) this class needs per object.

Referenced by eo_class_new().

void(* _Eo_Class_Description::class_constructor)(Eo_Class *klass)

The constructor of the class.

void(* _Eo_Class_Description::class_destructor)(Eo_Class *klass)

The destructor of the class.