Lines Matching refs:strm
38 istream &operator>>(istream &strm, TupleWeight<W, n> &w);
83 istream &Read(istream &strm) {
85 values_[i].Read(strm);
86 return strm;
89 ostream &Write(ostream &strm) const {
91 values_[i].Write(strm);
92 return strm;
135 inline static istream &ReadNoParen(istream &strm,
140 c = strm.get();
146 c = strm.get();
149 strm.clear(std::ios::badbit);
150 return strm;
153 c = strm.get();
164 strm >> r;
167 return strm;
171 inline static istream &ReadWithParen(istream &strm,
178 c = strm.get();
183 strm.clear(std::ios::badbit);
184 return strm;
191 c = strm.get();
194 strm.clear(std::ios::badbit);
195 return strm;
204 strm.clear(std::ios::failbit);
205 return strm;
209 c = strm.get();
219 c = strm.get();
222 c = strm.get();
226 strm.clear(std::ios::failbit);
227 return strm;
235 return strm;
275 inline ostream &operator<<(ostream &strm, const TupleWeight<W, n> &w) {
278 strm.clear(std::ios::badbit);
279 return strm;
286 strm.clear(std::ios::badbit);
287 return strm;
293 strm << FLAGS_fst_weight_parentheses[0];
296 strm << separator;
297 strm << w.Value(i);
300 strm << FLAGS_fst_weight_parentheses[1];
302 return strm;
306 inline istream &operator>>(istream &strm, TupleWeight<W, n> &w) {
309 strm.clear(std::ios::badbit);
310 return strm;
317 strm.clear(std::ios::badbit);
318 return strm;
321 strm, w, separator, FLAGS_fst_weight_parentheses[0],
324 return TupleWeight<W, n>::ReadNoParen(strm, w, separator);