Cambridge SMT System
ucam::util::FastForwardRead< StreamT > Class Template Reference

Convenience class that reads "quickly" until a queried line. More...

#include <szfstream.hpp>

Public Member Functions

 FastForwardRead (StreamT *af)
 Constructor. More...
 
bool operator() (uint id, std::string *line)
 Reads lines until id line is reached. More...
 

Detailed Description

template<class StreamT = std::istream>
class ucam::util::FastForwardRead< StreamT >

Convenience class that reads "quickly" until a queried line.

Definition at line 381 of file szfstream.hpp.

Constructor & Destructor Documentation

template<class StreamT = std::istream>
ucam::util::FastForwardRead< StreamT >::FastForwardRead ( StreamT *  af)
inline

Constructor.

Definition at line 387 of file szfstream.hpp.

Member Function Documentation

template<class StreamT = std::istream>
bool ucam::util::FastForwardRead< StreamT >::operator() ( uint  id,
std::string *  line 
)
inline

Reads lines until id line is reached.

Definition at line 394 of file szfstream.hpp.


The documentation for this class was generated from the following file: