wpl::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 Types

typedef T original_type

Public Member Functions

 microseconds_stamp (const tool::microseconds &, const T &=T())
template<class U >
 microseconds_stamp (const microseconds_stamp< U > &)
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 wpl::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.


The documentation for this struct was generated from the following files:

Generated by  doxygen 1.6.2