void ConditionFunction_Init(ConditionFunction* self, ConditionFunction_ApplyFunc* apply, Name name) { /* General info */ self->type = ConditionFunction_Type; self->_sizeOfSelf = sizeof(ConditionFunction); self->_deleteSelf = False; /* Virtual info */ self->_delete = _ConditionFunction_Delete; self->_print = _ConditionFunction_Print; self->_copy = NULL; _Stg_Class_Init((Stg_Class*)self); /* Stg_Class info */ _ConditionFunction_Init(self, apply, name); }
ConditionFunction* _ConditionFunction_New( CONDITIONFUNCTION_DEFARGS ) { ConditionFunction* self; /* Allocate memory */ assert( _sizeOfSelf >= sizeof(ConditionFunction) ); self = (ConditionFunction*)_Stg_Class_New( STG_CLASS_PASSARGS ); self->data = NULL; /* General info */ /* Virtual functions */ /* Stg_Class info */ _ConditionFunction_Init(self, apply, init, name, data); return self; }
ConditionFunction* _ConditionFunction_New( SizeT _sizeOfSelf, Type type, Stg_Class_DeleteFunction* _delete, Stg_Class_PrintFunction* _print, Stg_Class_CopyFunction* _copy, ConditionFunction_ApplyFunc* apply, Name name) { ConditionFunction* self; /* Allocate memory */ assert( _sizeOfSelf >= sizeof(ConditionFunction) ); self = (ConditionFunction*)_Stg_Class_New(_sizeOfSelf, type, _delete, _print, _copy); /* General info */ /* Virtual functions */ /* Stg_Class info */ _ConditionFunction_Init(self, apply, name); return self; }