The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
ttracer::tprint Struct Reference

Helper structure to print the tracing statistics. More...

#include <tracer.hpp>

Inheritance diagram for ttracer::tprint:
Inheritance graph

Public Member Functions

 tprint (const ttracer *const tracer__)
 
 ~tprint ()
 

Public Attributes

const ttracer *const tracer
 The tracer, whose statistics to print. More...
 

Detailed Description

Helper structure to print the tracing statistics.

When the constructor gets a valid ttracer pointer it prints the tracing statistics in its destructor. This allows the structure to be initialised at the beginning of a scope and print the statistics once the scope is left. (This makes it easier to write the tracing macros.)

Definition at line 40 of file tracer.hpp.

Constructor & Destructor Documentation

ttracer::tprint::tprint ( const ttracer *const  tracer__)
explicit

Definition at line 20 of file tracer.cpp.

ttracer::tprint::~tprint ( )

Definition at line 25 of file tracer.cpp.

References right.

Member Data Documentation

const ttracer* const ttracer::tprint::tracer

The tracer, whose statistics to print.

Definition at line 48 of file tracer.hpp.


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