source: app/src/dgp/mgraph.hh @ a26cf42

Last change on this file since a26cf42 was 2f8d6d8, checked in by to <to@…>, 15 years ago

Poprawki kodu w C++ (nazwy plikow naglowkowych, using ...).

modified: compiledic/aut2fsa.cc
modified: dgp/grammar.hh
modified: dgp/mgraph.hh
modified: dgp/sgraph.hh
modified: dgp/thesymbols.hh
modified: gue/guess.cc
modified: kor/corlist.cc
modified: lem/lem.cc
modified: lib/symtab.cc
modified: lib/tft.h
modified: lib/tfti.h
modified: lib/ttrans.h
modified: lib/word.cc
modified: lib/word.h

  • Property mode set to 100644
File size: 483 bytes
Line 
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
11using namespace std;
12
13class MNode
14{
15public:
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
26class 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.