aboutsummaryrefslogtreecommitdiff
path: root/Gate.h
blob: 14c35ac7a4c783ca24d5ecb19588961b82ea2bdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once
#include <string>
#include <vector>

#include "Observer.h"
#include "Net.h"



class Gate: Observer {
   private:
      std::string label;
      std::string type;

      std::vector<Net*> inputs;
      std::vector<Net*> outputs;

   public:
      Gate(/* args */);
      ~Gate();
      virtual void addInput(Net*);
      virtual void addOutput(Net*);
};

class GateAnd