Main Page   Modules   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

Scope Class Reference

List of all members.

Detailed Description

Performance counter scoping class.

This auto class manages a performance counter instance, scoping its measurement interval by virtue of its supporting the RAII protocol


Public Types

typedef T counter_type
 The parameterising performance counter class.


Public Methods

 this (counter_type counter)
 Constructs an instance of the PerformanceCounterScope using a reference to the parameterising performance counter class, whose measurement is to be scoped.

 ~this ()
 The measurement interval is completed with a call to stop() on the managed counter instance.

void Stop ()
 Calls stop() on the managed counter instance, so that intermediate timings can be taken.

counter_type propget_Counter ()
 Returns a reference to the managed counter instance.


Member Typedef Documentation

typedef T counter_type
 

The parameterising performance counter class.


Constructor & Destructor Documentation

~this   [inline]
 

The measurement interval is completed with a call to stop() on the managed counter instance.


Member Function Documentation

counter_type propget_Counter   [inline]
 

Returns a reference to the managed counter instance.

void Stop   [inline]
 

Calls stop() on the managed counter instance, so that intermediate timings can be taken.

this counter_type    counter [inline]
 

Constructs an instance of the PerformanceCounterScope using a reference to the parameterising performance counter class, whose measurement is to be scoped.

The measurement interval is commenced with a call to start() on the managed counter instance.


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

D Libraries documentation Synesis Software Pty Ltd, 2002-2003