The RegistrationsRAII class holds handles to registered variables and when it is destroyed, unregisters them automatically.
More...
#include <pal_statistics_utils.h>
The RegistrationsRAII class holds handles to registered variables and when it is destroyed, unregisters them automatically.
Definition at line 117 of file pal_statistics_utils.h.
◆ RegistrationsRAII() [1/2]
pal_statistics::RegistrationsRAII::RegistrationsRAII |
( |
| ) |
|
◆ RegistrationsRAII() [2/2]
◆ add()
void pal_statistics::RegistrationsRAII::add |
( |
Registration && |
registration | ) |
|
◆ disable() [1/2]
bool pal_statistics::RegistrationsRAII::disable |
( |
const std::string & |
name | ) |
|
◆ disable() [2/2]
bool pal_statistics::RegistrationsRAII::disable |
( |
IdType |
id | ) |
|
◆ disableAll()
bool pal_statistics::RegistrationsRAII::disableAll |
( |
| ) |
|
◆ enable() [1/2]
bool pal_statistics::RegistrationsRAII::enable |
( |
const std::string & |
name | ) |
|
◆ enable() [2/2]
bool pal_statistics::RegistrationsRAII::enable |
( |
IdType |
id | ) |
|
◆ enableAll()
bool pal_statistics::RegistrationsRAII::enableAll |
( |
| ) |
|
◆ find() [1/2]
std::vector< Registration >::iterator pal_statistics::RegistrationsRAII::find |
( |
const std::string & |
name | ) |
|
|
private |
◆ find() [2/2]
std::vector< Registration >::iterator pal_statistics::RegistrationsRAII::find |
( |
IdType |
id | ) |
|
|
private |
◆ operator=()
◆ remove() [1/2]
bool pal_statistics::RegistrationsRAII::remove |
( |
const std::string & |
name | ) |
|
◆ remove() [2/2]
bool pal_statistics::RegistrationsRAII::remove |
( |
IdType |
id | ) |
|
◆ removeAll()
void pal_statistics::RegistrationsRAII::removeAll |
( |
| ) |
|
◆ mutex_
boost::mutex pal_statistics::RegistrationsRAII::mutex_ |
|
private |
◆ registrations_
std::vector<Registration> pal_statistics::RegistrationsRAII::registrations_ |
|
private |
The documentation for this class was generated from the following files: