libmoost
moost::progress::policy::spinner Class Reference

#include <spinner.hpp>

List of all members.

Public Types

typedef size_t counter_type

Public Member Functions

 spinner (size_t msecs=500, std::ostream &out=std::cout)
counter_type operator+= (counter_type const incr)
counter_type operator++ ()
counter_type operator++ (int)
counter_type count () const
counter_type expected_count () const

Private Member Functions

void animate ()

Private Attributes

std::vector< char > frames_
std::vector< char >::const_iterator frame_
counter_type counter_
size_t const msecs_
std::ostream & out_
boost::posix_time::ptime ptime_

Detailed Description

Definition at line 40 of file spinner.hpp.


Member Typedef Documentation

Definition at line 43 of file spinner.hpp.


Constructor & Destructor Documentation

moost::progress::policy::spinner::spinner ( size_t  msecs = 500,
std::ostream &  out = std::cout 
) [inline]

Definition at line 45 of file spinner.hpp.


Member Function Documentation

void moost::progress::policy::spinner::animate ( ) [inline, private]

Definition at line 92 of file spinner.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 81 of file spinner.hpp.

Definition at line 86 of file spinner.hpp.

counter_type moost::progress::policy::spinner::operator++ ( ) [inline]

Definition at line 69 of file spinner.hpp.

counter_type moost::progress::policy::spinner::operator++ ( int  ) [inline]

Definition at line 74 of file spinner.hpp.

counter_type moost::progress::policy::spinner::operator+= ( counter_type const  incr) [inline]

Definition at line 56 of file spinner.hpp.

Here is the call graph for this function:


Member Data Documentation

std::vector<char>::const_iterator moost::progress::policy::spinner::frame_ [private]

Definition at line 102 of file spinner.hpp.

std::vector<char> moost::progress::policy::spinner::frames_ [private]

Definition at line 101 of file spinner.hpp.

Definition at line 104 of file spinner.hpp.

std::ostream& moost::progress::policy::spinner::out_ [private]

Definition at line 105 of file spinner.hpp.

boost::posix_time::ptime moost::progress::policy::spinner::ptime_ [private]

Definition at line 106 of file spinner.hpp.


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