source:
_old/app/src/dgp/mgraph.hh
@
57728c1
Last change on this file since 57728c1 was 57728c1, checked in by Mateusz Hromada <ruanda@…>, 15 years ago | |
---|---|
|
|
File size: 483 bytes |
Rev | Line | |
---|---|---|
[0214596] | 1 | #ifndef _MGRAPH_HH |
2 | #define _MGRAPH_HH | |
3 | ||
4 | #include <vector> | |
5 | ||
6 | #include "const.hh" | |
7 | #include "thesymbols.hh" | |
[28e9ae0] | 8 | #include "../common/common.h" |
[0214596] | 9 | |
[2f8d6d8] | 10 | |
11 | using namespace std; | |
12 | ||
[0214596] | 13 | class MNode |
14 | { | |
15 | public: | |
16 | ||
17 | char type[MAXFORMLEN]; | |
18 | Cat cat; | |
19 | int pos; | |
20 | vector<MNode*> pred; | |
21 | vector<int> snodes; | |
22 | ||
23 | void clear() { snodes.clear(); }; | |
24 | }; | |
25 | ||
26 | class MGraph | |
27 | { | |
28 | public: | |
29 | ||
30 | MNode nodes[MAXNODES]; | |
31 | int n; | |
32 | ||
33 | void clear() { n=0; }; | |
34 | int add_node(char* seg); | |
35 | }; | |
36 | ||
37 | #endif |
Note: See TracBrowser
for help on using the repository browser.