#include <easylogging++.h>
|
| template<typename T , typename TPtr > |
| static bool | installCallback (const std::string &id, std::unordered_map< std::string, TPtr > *mapT) |
| |
| template<typename T , typename TPtr > |
| static void | uninstallCallback (const std::string &id, std::unordered_map< std::string, TPtr > *mapT) |
| |
| template<typename T , typename TPtr > |
| static T * | callback (const std::string &id, std::unordered_map< std::string, TPtr > *mapT) |
| |
Definition at line 1554 of file easylogging++.h.
◆ callback()
template<typename T , typename TPtr >
| static T* el::base::utils::Utils::callback |
( |
const std::string & |
id, |
|
|
std::unordered_map< std::string, TPtr > * |
mapT |
|
) |
| |
|
inlinestatic |
Definition at line 1573 of file easylogging++.h.
1574 typename std::unordered_map<std::string, TPtr>::iterator iter = mapT->find(
id);
1575 if (iter != mapT->end()) {
1576 return static_cast<T*
>(iter->second.get());
◆ installCallback()
template<typename T , typename TPtr >
| static bool el::base::utils::Utils::installCallback |
( |
const std::string & |
id, |
|
|
std::unordered_map< std::string, TPtr > * |
mapT |
|
) |
| |
|
inlinestatic |
Definition at line 1557 of file easylogging++.h.
1558 if (mapT->find(
id) == mapT->end()) {
1559 mapT->insert(std::make_pair(
id, TPtr(
new T())));
◆ uninstallCallback()
template<typename T , typename TPtr >
| static void el::base::utils::Utils::uninstallCallback |
( |
const std::string & |
id, |
|
|
std::unordered_map< std::string, TPtr > * |
mapT |
|
) |
| |
|
inlinestatic |
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/electroneum-5.0.0.4/external/easylogging++/easylogging++.h