Changeset e7de6cc for src/dgp/mgraph.hh
- Timestamp:
- 02/21/12 20:02:51 (13 years ago)
- Branches:
- master
- Children:
- b242df2
- Parents:
- 354ba3d
- git-author:
- Tomasz Obrebski <to@…> (02/21/12 20:02:51)
- git-committer:
- Tomasz Obrebski <to@…> (02/21/12 20:02:51)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/dgp/mgraph.hh
r5f4d9c3 re7de6cc 8 8 #include "../common/common.h" 9 9 10 11 using namespace std; 12 10 13 class MNode 11 14 { 12 15 public: 13 16 14 char type[MAXFORMLEN]; 17 int pos; 18 char form[256]; 15 19 Cat cat; 16 int pos; 17 vector<MNode*> pred; 20 vector<int> pred; 18 21 vector<int> snodes; 19 22 20 23 void clear() { snodes.clear(); }; 21 24 }; 22 25 23 26 class MGraph 24 27 { 25 28 public: 26 29 27 MNode nodes[MAXNODES]; 28 int n; 30 void clear() { nodes.clear(); } 31 int size() { return nodes.size(); } 32 int add_node(char* seg); 33 MNode& operator[](int i) { return nodes[i]; } 29 34 30 void clear() { n=0; }; 31 int add_node(char* seg); 35 private: 36 37 vector<MNode> nodes; 38 32 39 }; 33 40
Note: See TracChangeset
for help on using the changeset viewer.