tool::microseconds_stamp< T > Struct Template Reference

Mixin class to add a microsecond count to an existing class. More...

#include <wipal/tool/microseconds_stamp.hh>

List of all members.

Public Member Functions

 microseconds_stamp (const tool::microseconds &, const T &=T())
Access to the microsecond count
const tool::microsecondsmicroseconds () const
tool::microsecondsmicroseconds ()
Equality checks
Warning:
This method compares the super type, but not the microsecond count.


bool operator== (const microseconds_stamp &rhs) const
bool operator!= (const microseconds_stamp &rhs) const


Detailed Description

template<class T>
struct tool::microseconds_stamp< T >

Mixin class to add a microsecond count to an existing class.

This class subclasses its template parameter. Thus, it behaves mostly like it. This class adds a microsecond count attribute, which is initialized through the constructor, and which you may access with the microsecond() methods.

By default, this class' == operator does not compare the microsecond count. Subclass it and provide a custom == operator if this is not the desired behavior.


Constructor & Destructor Documentation

template<class T>
tool::microseconds_stamp< T >::microseconds_stamp ( const tool::microseconds microseconds,
const T &  super = T () 
) [inline]

Construct from an original T object and a microsecond count.


The documentation for this struct was generated from the following files:
Generated on Wed Jan 16 16:15:15 2008 for wipal by  doxygen 1.5.4