Last change
on this file since b97a556 was
e7de6cc,
checked in by Tomasz Obrebski <to@…>, 13 years ago
|
new version of dgp
added dgc, tre and compdic components
compiledic renamed to compdic_utf8
./configure updated
|
-
Property mode set to
100644
|
File size:
460 bytes
|
Rev | Line | |
---|
[e7de6cc] | 1 | #ifndef _MGRAPH_HH |
---|
| 2 | #define _MGRAPH_HH |
---|
| 3 | |
---|
| 4 | #include <vector> |
---|
| 5 | |
---|
| 6 | #include "const.hh" |
---|
| 7 | #include "thesymbols.hh" |
---|
| 8 | #include "../common/common.h" |
---|
| 9 | |
---|
| 10 | class MNode |
---|
| 11 | { |
---|
| 12 | public: |
---|
| 13 | |
---|
| 14 | char type[MAXFORMLEN]; |
---|
| 15 | Cat cat; |
---|
| 16 | int pos; |
---|
| 17 | vector<MNode*> pred; |
---|
| 18 | vector<int> snodes; |
---|
| 19 | |
---|
| 20 | void clear() { snodes.clear(); }; |
---|
| 21 | }; |
---|
| 22 | |
---|
| 23 | class MGraph |
---|
| 24 | { |
---|
| 25 | public: |
---|
| 26 | |
---|
| 27 | MNode nodes[MAXNODES]; |
---|
| 28 | int n; |
---|
| 29 | |
---|
| 30 | void clear() { n=0; }; |
---|
| 31 | int add_node(char* seg); |
---|
| 32 | }; |
---|
| 33 | |
---|
| 34 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.