Changeset 9ace5d2 for app/src/dgp/grammar.hh
- Timestamp:
- 12/11/08 22:20:14 (16 years ago)
- Branches:
- master, help
- Children:
- 2d89d4b
- Parents:
- 91ed676
- git-author:
- obrebski <obrebski@…> (12/11/08 22:20:14)
- git-committer:
- obrebski <obrebski@…> (12/11/08 22:20:14)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/src/dgp/grammar.hh
r3748bd1 r9ace5d2 11 11 #include "sgraph.hh" 12 12 13 14 class Link 15 { 16 Role role; 17 FlagSet hflags; 18 FlagSet dflags; 19 } 20 21 13 22 class Grammar 14 23 { … … 18 27 // enum CONSTR { SGL, OBL, LEFT, RIGHT, INIT, NONINIT, FIN, NONFIN }; 19 28 20 Grammar() : types_sz(0), cats_sz(0) {} ;29 Grammar() : types_sz(0), cats_sz(0), flags_sz(0) {} ; 21 30 22 31 int types_sz; 23 32 int cats_sz; 33 int flags_sz; 24 34 25 35 vector< vector< Roles > > connect; … … 31 41 vector< RoleSet > gt; 32 42 43 44 // vector< vector< vector< 45 vector< FlagSet > set; 46 vector< FlagSet > pass; 47 33 48 bool read(FILE* f); 34 49 void write(FILE* f); … … 36 51 void add_category(const char* s); 37 52 void add_type(const char* s); 53 void add_flag(const char* s); 38 54 39 55 void set_sgl(Role r) { sgl.set(r); }
Note: See TracChangeset
for help on using the changeset viewer.