Lines Matching refs:strm
94 static EditFstData<A, WrappedFstT, MutableFstT> *Read(istream &strm,
97 bool Write(ostream &strm, const FstWriteOptions &opts) const {
101 edits_.Write(strm, edits_opts);
102 WriteType(strm, external_to_internal_ids_);
103 WriteType(strm, edited_final_weights_);
104 WriteType(strm, num_new_states_);
105 if (!strm) {
336 EditFstData<A, WrappedFstT, MutableFstT>::Read(istream &strm,
351 MutableFstT *edits = MutableFstT::Read(strm, edits_opts);
358 ReadType(strm, &data->external_to_internal_ids_);
359 ReadType(strm, &data->edited_final_weights_);
360 ReadType(strm, &data->num_new_states_);
361 if (!strm) {
480 Read(istream &strm,
483 bool Write(ostream &strm, const FstWriteOptions &opts) const {
490 WriteHeader(strm, header_opts, kFileVersion, &hdr);
495 wrapped_->Write(strm, wrapped_opts);
497 data_->Write(strm, opts);
499 strm.flush();
500 if (!strm) {
656 EditFstImpl<A, WrappedFstT, MutableFstT>::Read(istream &strm,
660 if (!impl->ReadHeader(strm, opts, kMinFileVersion, &hdr)) {
668 Fst<A> *wrapped_fst = Fst<A>::Read(strm, wrapped_opts);
674 impl->data_ = EditFstData<A, WrappedFstT, MutableFstT>::Read(strm, opts);
733 Read(istream &strm,
735 Impl* impl = Impl::Read(strm, opts);
746 virtual bool Write(ostream &strm, const FstWriteOptions &opts) const {
747 return GetImpl()->Write(strm, opts);