Changeset 634 in Sophya for trunk/Poubelle/archTOI.old/toi.cc
- Timestamp:
- Nov 25, 1999, 9:34:50 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Poubelle/archTOI.old/toi.cc
r555 r634 5 5 #include "tokenizer.h" 6 6 #include "archexc.h" 7 #include <stdio.h> 7 8 8 9 vector<TOI> TOI::alltois; 9 10 10 11 TOI::TOI(string n, int i, string opts, string u) 11 : name(n), index(i), unit(u) 12 : name(n), index(i), unit(u), ref(-1) 12 13 { 13 14 options = Tokenizer(opts).getTokenSet(); … … 16 17 17 18 TOI::TOI(string n, int i, string opts, string u, string reqopts) 18 : name(n), index(i), unit(u) 19 : name(n), index(i), unit(u), ref(-1) 19 20 { 20 21 options = Tokenizer(opts).getTokenSet(); … … 25 26 26 27 TOI::TOI(string n, int i, set<string> opts, string u) 27 : name(n), options(opts), index(i), unit(u) 28 : name(n), options(opts), index(i), unit(u), ref(-1) 28 29 { 29 30 findref(); … … 31 32 32 33 TOI::TOI(string s, string u) 33 : index(unspec), unit(u) 34 : index(unspec), unit(u), ref(-1) 34 35 { 35 36 vector<string> v = Tokenizer(s).getTokenVector(); … … 48 49 } 49 50 51 // $CHECK$ a optimiser avec hash ou arbre... 50 52 void TOI::findref() { 51 53 for (vector<TOI>::iterator i = alltois.begin();
Note:
See TracChangeset
for help on using the changeset viewer.