예제 #1
0
static void clock_component_state_class_init (ClockComponentStateClass * klass) {
	clock_component_state_parent_class = g_type_class_peek_parent (klass);
	COMPONENT_STATE_CLASS (klass)->finalize = clock_component_state_finalize;
	g_type_class_add_private (klass, sizeof (ClockComponentStatePrivate));
	COMPONENT_STATE_CLASS (klass)->update = clock_component_state_real_update;
	COMPONENT_STATE_CLASS (klass)->get_alwaysUpdate = clock_component_state_real_get_alwaysUpdate;
}
예제 #2
0
static void toggle_component_state_class_init (ToggleComponentStateClass * klass) {
	toggle_component_state_parent_class = g_type_class_peek_parent (klass);
	COMPONENT_STATE_CLASS (klass)->finalize = toggle_component_state_finalize;
	g_type_class_add_private (klass, sizeof (ToggleComponentStatePrivate));
	COMPONENT_STATE_CLASS (klass)->click = toggle_component_state_real_click;
	COMPONENT_STATE_CLASS (klass)->render = toggle_component_state_real_render;
	COMPONENT_STATE_CLASS (klass)->update = toggle_component_state_real_update;
}
예제 #3
0
파일: state-or.c 프로젝트: genba/SmartSim
static void or_component_state_finalize (ComponentState* obj) {
	OrComponentState * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_OR_COMPONENT_STATE, OrComponentState);
	self->priv->inputWires = (_vala_array_free (self->priv->inputWires, self->priv->inputWires_length1, (GDestroyNotify) connection_unref), NULL);
	_connection_unref0 (self->priv->outputWire);
	COMPONENT_STATE_CLASS (or_component_state_parent_class)->finalize (obj);
}
예제 #4
0
static void multiplexer_component_state_finalize (ComponentState* obj) {
	MultiplexerComponentState * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_MULTIPLEXER_COMPONENT_STATE, MultiplexerComponentState);
	self->priv->selectWires = (_vala_array_free (self->priv->selectWires, self->priv->selectWires_length1, (GDestroyNotify) connection_unref), NULL);
	self->priv->dataWires = (_vala_array_free (self->priv->dataWires, self->priv->dataWires_length1, (GDestroyNotify) connection_unref), NULL);
	_connection_unref0 (self->priv->outputWire);
	COMPONENT_STATE_CLASS (multiplexer_component_state_parent_class)->finalize (obj);
}
예제 #5
0
static void tristate_component_state_finalize (ComponentState* obj) {
	TristateComponentState * self;
	self = TRISTATE_COMPONENT_STATE (obj);
	_connection_unref0 (self->priv->inputWire);
	_connection_unref0 (self->priv->controlWire);
	_connection_unref0 (self->priv->outputWire);
	COMPONENT_STATE_CLASS (tristate_component_state_parent_class)->finalize (obj);
}
예제 #6
0
static void toggle_component_state_finalize (ComponentState* obj) {
	ToggleComponentState * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_TOGGLE_COMPONENT_STATE, ToggleComponentState);
	_connection_unref0 (self->priv->outputWire);
	COMPONENT_STATE_CLASS (toggle_component_state_parent_class)->finalize (obj);
}
예제 #7
0
static void multiplexer_component_state_class_init (MultiplexerComponentStateClass * klass) {
	multiplexer_component_state_parent_class = g_type_class_peek_parent (klass);
	COMPONENT_STATE_CLASS (klass)->finalize = multiplexer_component_state_finalize;
	g_type_class_add_private (klass, sizeof (MultiplexerComponentStatePrivate));
	COMPONENT_STATE_CLASS (klass)->update = multiplexer_component_state_real_update;
}
예제 #8
0
static void constant_component_state_finalize (ComponentState* obj) {
	ConstantComponentState * self;
	self = CONSTANT_COMPONENT_STATE (obj);
	_connection_unref0 (self->priv->outputWire);
	COMPONENT_STATE_CLASS (constant_component_state_parent_class)->finalize (obj);
}
예제 #9
0
static void clock_component_state_finalize (ComponentState* obj) {
	ClockComponentState * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, TYPE_CLOCK_COMPONENT_STATE, ClockComponentState);
	_connection_unref0 (self->priv->outputWire);
	COMPONENT_STATE_CLASS (clock_component_state_parent_class)->finalize (obj);
}