| Yate
    | 
Ephemeral object counter changer. More...
#include <yateclass.h>
| Public Member Functions | |
| TempObjectCounter (NamedCounter *counter, bool enable=GenObject::getObjCounting()) | |
| TempObjectCounter (const GenObject *obj, bool enable=GenObject::getObjCounting()) | |
| TempObjectCounter (const GenObject &obj, bool enable=GenObject::getObjCounting()) | |
| ~TempObjectCounter () | |
Ephemeral object counter changer.
This class changes the current thread's object counter for its lifetime
| 
 | inline | 
Constructor, changes object counter if counting is enabled
| counter | Object counter to apply on the current thread | 
| enable | True to enable change, false to take no action | 
References Thread::setCurrentObjCounter().
| 
 | inline | 
Constructor, changes object counter if counting is enabled
| obj | Object to copy the counter from | 
| enable | True to enable change, false to take no action | 
References GenObject::getObjCounter(), and Thread::setCurrentObjCounter().
| 
 | inline | 
Constructor, changes object counter if counting is enabled
| obj | Object to copy the counter from | 
| enable | True to enable change, false to take no action | 
References GenObject::getObjCounter(), and Thread::setCurrentObjCounter().
| 
 | inline | 
Destructor, restores saved object counter
References Thread::setCurrentObjCounter().