util::FakeOFStream Class Reference

#include <fake_ofstream.hh>

Collaboration diagram for util::FakeOFStream:

Collaboration graph
[legend]

List of all members.

Classes

struct  EnableIfKludge

Public Member Functions

 FakeOFStream (int out=-1, std::size_t buffer_size=1048576)
 ~FakeOFStream ()
void SetFD (int to)
FakeOFStreamwrite (const void *data, std::size_t length)
FakeOFStreamoperator<< (StringPiece str)
template<class T >
EnableIfKludge< ToStringBuf< T >
::kBytes >::type & 
operator<< (const T value)
FakeOFStreamoperator<< (char c)
FakeOFStreamoperator<< (unsigned char c)
FakeOFStreamoperator<< (std::size_t value)
void flush ()
void Finish ()


Detailed Description

Definition at line 19 of file fake_ofstream.hh.


Constructor & Destructor Documentation

util::FakeOFStream::FakeOFStream ( int  out = -1,
std::size_t  buffer_size = 1048576 
) [inline, explicit]

Definition at line 27 of file fake_ofstream.hh.

util::FakeOFStream::~FakeOFStream (  )  [inline]

Definition at line 33 of file fake_ofstream.hh.

References flush().

Here is the call graph for this function:


Member Function Documentation

void util::FakeOFStream::Finish (  )  [inline]

Definition at line 114 of file fake_ofstream.hh.

References flush(), util::FSyncOrThrow(), NULL, and util::scoped_base< T, Closer >::reset().

Here is the call graph for this function:

void util::FakeOFStream::flush (  )  [inline]

Definition at line 106 of file fake_ofstream.hh.

References util::scoped_base< T, Closer >::get(), and util::WriteOrThrow().

Referenced by Finish(), lm::ngram::QueryPrinter::Line(), SetFD(), lm::ngram::QueryPrinter::Summary(), lm::ngram::QueryPrinter::Word(), write(), and ~FakeOFStream().

Here is the call graph for this function:

Here is the caller graph for this function:

FakeOFStream& util::FakeOFStream::operator<< ( std::size_t  value  )  [inline]

Definition at line 99 of file fake_ofstream.hh.

References util::ToStringBuf< uint64_t >::kBytes, and util::ToString().

Here is the call graph for this function:

FakeOFStream& util::FakeOFStream::operator<< ( unsigned char  c  )  [inline]

Definition at line 85 of file fake_ofstream.hh.

FakeOFStream& util::FakeOFStream::operator<< ( char  c  )  [inline]

Definition at line 79 of file fake_ofstream.hh.

template<class T >
EnableIfKludge<ToStringBuf<T>::kBytes>::type& util::FakeOFStream::operator<< ( const T  value  )  [inline]

Definition at line 72 of file fake_ofstream.hh.

References util::ToString().

Here is the call graph for this function:

FakeOFStream& util::FakeOFStream::operator<< ( StringPiece  str  )  [inline]

Definition at line 60 of file fake_ofstream.hh.

References StringPiece::data(), StringPiece::size(), and write().

Here is the call graph for this function:

void util::FakeOFStream::SetFD ( int  to  )  [inline]

Definition at line 38 of file fake_ofstream.hh.

References flush().

Here is the call graph for this function:

FakeOFStream& util::FakeOFStream::write ( const void *  data,
std::size_t  length 
) [inline]

Definition at line 43 of file fake_ofstream.hh.

References flush(), UTIL_LIKELY, and util::WriteOrThrow().

Referenced by operator<<().

Here is the call graph for this function:

Here is the caller graph for this function:


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

Generated on Tue Sep 29 00:35:18 2015 for Moses by  doxygen 1.5.9