Public Types | Public Member Functions

properties_timer Struct Reference

Functor for the timer class which assigns the run-time to a property map. More...

List of all members.

Public Types

typedef double result_type

Public Member Functions

 properties_timer ()
 Default constructor.
 properties_timer (properties::ptr _statistics)
 Default constructor.
double operator() (double r) const
 Saves the run-time to the runtime field of the statistics variable.

Detailed Description

Functor for the timer class which assigns the run-time to a property map.

This functor writes the runtime field of a property map after the time was measured and is thus similar to the reference_timer.

Author:
RevKit
Since:
1.0

Member Typedef Documentation

typedef double result_type

Result value of the reference_timer is double, since it returns the value of the run-time in the operator call. This is only useful, when using the intermediate measurement in timer.

See also:
timer::operator()()
Author:
RevKit
Since:
1.0

Constructor & Destructor Documentation

properties_timer ( ) [inline]

Default constructor.

Available for delayed starting of the timer.

Author:
RevKit
Since:
1.0
properties_timer ( properties::ptr  _statistics) [inline]

Default constructor.

Parameters:
_statisticsA smart pointer to a statistics properties object. Can be empty.
Author:
RevKit
Since:
1.0

Member Function Documentation

double operator() ( double  r) const [inline]

Saves the run-time to the runtime field of the statistics variable.

Parameters:
rThe run-time
Author:
RevKit
Since:
1.0

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines

Generated on Wed May 25 2011 16:34:52 for RevKit by doxygen 1.7.3