From 8ecf0637c6830b26bbe2c1221847e12f96df81a4 Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Tue, 30 Jun 2020 01:18:04 +0930 Subject: continue converting things to use object over gate --- Gate.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Gate.h') diff --git a/Gate.h b/Gate.h index e5a6115..a1ecaf8 100644 --- a/Gate.h +++ b/Gate.h @@ -41,17 +41,17 @@ class Gate : public Object ~Gate(); bool get_output_state() { return this->output_state; }; - std::vector *get_output_gates() { return &this->output_gate_ids; }; + std::vector *get_output_objects() { return &this->output_object_ids; }; GATE_TYPE get_gate_type() { return this->gate_type; }; Gate *get_input_gate1() { return this->input_gate1; }; Gate *get_input_gate2() { return this->input_gate2; }; void set_state(bool state) { this->output_state = state; }; void set_input_gate1(Gate *gate) { this->input_gate1 = gate; }; void set_input_gate2(Gate *gate) { this->input_gate2 = gate; }; - void add_output_gate_id(int id) { this->output_gate_ids.push_back(id); }; + void add_output_object_id(int id) { this->output_object_ids.push_back(id); }; void remove_output_gate_id(int id); void remove_input_gate(int id); - void update_state(); + void update_state() override; std::string get_object_name() override { return get_output_type_text(); }; -- cgit v1.2.3