Joshua
open source statistical hierarchical phrase-based machine translation system
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
util::ErsatzProgress Class Reference

#include <ersatz_progress.hh>

List of all members.

Public Member Functions

 ErsatzProgress ()
 ErsatzProgress (std::ostream *to, const std::string &message, std::size_t complete)
 ~ErsatzProgress ()
ErsatzProgressoperator++ ()
ErsatzProgressoperator+= (std::size_t amount)
void Set (std::size_t to)
void Finished ()

Private Member Functions

void Milestone ()
 ErsatzProgress (const ErsatzProgress &other)
ErsatzProgressoperator= (const ErsatzProgress &other)

Private Attributes

std::size_t current_
std::size_t next_
std::size_t complete_
unsigned char stones_written_
std::ostream * out_

Constructor & Destructor Documentation

util::ErsatzProgress::ErsatzProgress ( std::ostream *  to,
const std::string &  message,
std::size_t  complete 
)

Here is the call graph for this function:


Member Function Documentation

Here is the call graph for this function:

Here is the caller graph for this function:

void util::ErsatzProgress::Milestone ( ) [private]

Here is the caller graph for this function:

ErsatzProgress& util::ErsatzProgress::operator++ ( )

Here is the call graph for this function:

ErsatzProgress& util::ErsatzProgress::operator+= ( std::size_t  amount)

Here is the call graph for this function:

ErsatzProgress& util::ErsatzProgress::operator= ( const ErsatzProgress other) [private]
void util::ErsatzProgress::Set ( std::size_t  to)

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

std::size_t util::ErsatzProgress::complete_ [private]
std::size_t util::ErsatzProgress::current_ [private]
std::size_t util::ErsatzProgress::next_ [private]
std::ostream* util::ErsatzProgress::out_ [private]
unsigned char util::ErsatzProgress::stones_written_ [private]