-
Notifications
You must be signed in to change notification settings - Fork 0
/
circuit_t.h
47 lines (39 loc) · 1.41 KB
/
circuit_t.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//------------------------------------------------------------------------------
#ifndef __Circuit_t__H
#define __Circuit_t__H
#include "lex.h"
#include "e.h"
#include "device_t.h"
#include "flat.h"
#include "pdigraph.hpp"
#include "filename.h"
#include "OSFixes.hpp"
#include <string>
using namespace std;
//==============================================================================
class Circuit_t
{
public:
Circuit_t();
virtual ~ Circuit_t();
void ChkInteg();
void Dump();
string Name() { return name; }
void OutAns();
void Parse(string);
void ParseClock();
void ParseNeuron(Lex::tokdat);
void ParseParams();
void ParseSink();
void ParseSource();
void ParseStop();
EvTime_t Stop() { return stop; }
unsigned sMon; // Number of devices to be monitored
EvTime_t stop; // Simulation stop time
string name;
Lex Lx;
pdigraph<string,Device_t *,string,Device_t *,string,C_pin *> G;
map<string,vector<string> > params;
};
//==============================================================================
#endif