-
Notifications
You must be signed in to change notification settings - Fork 0
/
Circuit.h
29 lines (22 loc) · 890 Bytes
/
Circuit.h
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
26
27
28
29
/*
* Circuit.h
* Creator: George Ferguson
* Created: Sun Nov 27 14:08:51 2016
*/
#ifndef CIRCUIT_H_
#define CIRCUIT_H_
#include "Gates.h"
typedef struct Circuit Circuit;
extern Circuit *new_Circuit(int numInputs, Boolean** inputs, int numOutputs, Boolean** outputs, int numGates, Gate** gates);
extern void Circuit_free(Circuit* this);
extern int Circuit_numInputs(Circuit* this);
extern Boolean** Circuit_getInputs(Circuit* this);
extern void Circuit_setInput(Circuit* this, int index, bool value);
extern int Circuit_numOutputs(Circuit* this);
extern Boolean** Circuit_getOutputs(Circuit* this);
extern bool Circuit_getOutput(Circuit* this, int index);
extern int Circuit_numGates(Circuit* this);
extern void Circuit_dump(Circuit* this);
extern void Circuit_connect(Circuit* this, Boolean* src, Boolean* dst);
extern void Circuit_update(Circuit* this);
#endif /* CIRCUIT_H_ */