diff options
author | Daniel Jones <admin@danieljon.es> | 2020-06-30 01:18:04 +0930 |
---|---|---|
committer | Daniel Jones <admin@danieljon.es> | 2020-06-30 01:18:04 +0930 |
commit | 8ecf0637c6830b26bbe2c1221847e12f96df81a4 (patch) | |
tree | 11bea93ac42670e15f1aad826fe585d3afc6bd7d /Gate.h | |
parent | 193fda2d270f63c127edc5b1082ef14ad12b1175 (diff) | |
download | foxlogicgates-8ecf0637c6830b26bbe2c1221847e12f96df81a4.tar.gz foxlogicgates-8ecf0637c6830b26bbe2c1221847e12f96df81a4.zip |
continue converting things to use object over gate
Diffstat (limited to 'Gate.h')
-rw-r--r-- | Gate.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -41,17 +41,17 @@ class Gate : public Object ~Gate(); bool get_output_state() { return this->output_state; }; - std::vector<int> *get_output_gates() { return &this->output_gate_ids; }; + std::vector<int> *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(); }; |