class TempObjectCounter

Ephemeral object counter changer. More...

Full nameTelEngine::TempObjectCounter
Definition#include <yateclass.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

This class changes the current thread's object counter for its lifetime

inline  TempObjectCounter (NamedCounter* counter, bool enable = GenObject::getObjCounting())

TempObjectCounter

Constructor, changes object counter if counting is enabled

Parameters:
counterObject counter to apply on the current thread
enableTrue to enable change, false to take no action

inline  TempObjectCounter (const GenObject* obj, bool enable = GenObject::getObjCounting())

TempObjectCounter

Constructor, changes object counter if counting is enabled

Parameters:
objObject to copy the counter from
enableTrue to enable change, false to take no action

inline  TempObjectCounter (const GenObject& obj, bool enable = GenObject::getObjCounting())

TempObjectCounter

Constructor, changes object counter if counting is enabled

Parameters:
objObject to copy the counter from
enableTrue to enable change, false to take no action

inline  ~TempObjectCounter ()

~TempObjectCounter

Destructor, restores saved object counter


Generated by: paulc on bussard on Thu Jul 24 18:41:02 2014, using kdoc 2.0a54.