ElementCellLayout* _ElementCellLayout_New(  ELEMENTCELLLAYOUT_DEFARGS  ) {
	ElementCellLayout* self;
	
	/* Allocate memory */
	self = (ElementCellLayout*)_CellLayout_New(  CELLLAYOUT_PASSARGS  );
	
	/* General info */
	
	/* Virtual info */
	
	/* ElementCellLayout info */
	
	return self;
}
TriSingleCellLayout* _TriSingleCellLayout_New(  TRISINGLECELLLAYOUT_DEFARGS  ) {
	TriSingleCellLayout* self;
	
	/* Allocate memory */
	self = (TriSingleCellLayout*)_CellLayout_New(  CELLLAYOUT_PASSARGS  );
	
	/* General info */
	self->dictionary = dictionary;
	
	/* Virtual info */
	
	/* TriSingleCellLayout info */
	
	return self;
}
Exemplo n.º 3
0
SingleCellLayout* _SingleCellLayout_New( 
		SizeT                                     _sizeOfSelf,
		Type                                      type,
		Stg_Class_DeleteFunction*                 _delete,
		Stg_Class_PrintFunction*                  _print,
		Stg_Class_CopyFunction*                   _copy, 
		Stg_Component_DefaultConstructorFunction* _defaultConstructor,
		Stg_Component_ConstructFunction*          _construct,
		Stg_Component_BuildFunction*              _build,
		Stg_Component_InitialiseFunction*         _initialise,
		Stg_Component_ExecuteFunction*            _execute,
		Stg_Component_DestroyFunction*            _destroy,
		CellLayout_CellCountFunction*             _cellLocalCount,
		CellLayout_CellCountFunction*             _cellShadowCount,
		CellLayout_PointCountFunction*            _pointCount,
		CellLayout_InitialisePointsFunction*      _initialisePoints,
		CellLayout_MapElementIdToCellIdFunction*  _mapElementIdToCellId,
		CellLayout_IsInCellFunction*              _isInCell, 
		CellLayout_CellOfFunction*                _cellOf,
		CellLayout_GetShadowInfoFunction*         _getShadowInfo,		
		Name                                      name,
		Bool                                      initFlag,
		const Bool                                dimExists[3],
		const XYZ                                 min,
		const XYZ                                 max )
{
	SingleCellLayout* self;
	
	/* Allocate memory */
	self = (SingleCellLayout*)_CellLayout_New( 
		_sizeOfSelf, 
		type,
		_delete,
		_print,
		_copy,
		_defaultConstructor,
		_construct,
		_build,
		_initialise,
		_execute,
		_destroy,
		name,
		initFlag,
		_cellLocalCount,
		_cellShadowCount,
		_pointCount,
		_initialisePoints,
		_mapElementIdToCellId,
		_isInCell,
		_cellOf,
		_getShadowInfo );
	
	/* Virtual info */
	
	/* SingleCellLayout info */
	if( initFlag ){
		_SingleCellLayout_Init( self, dimExists, min, max );
	}
	
	return self;
}