Electroneum
el::Callback< T > Class Template Referenceabstract

#include <easylogging++.h>

Inheritance diagram for el::Callback< T >:
Collaboration diagram for el::Callback< T >:

Public Member Functions

 Callback (void)
 
bool enabled (void) const
 
void setEnabled (bool enabled)
 

Protected Member Functions

virtual void handle (const T *handlePtr)=0
 
- Protected Member Functions inherited from el::base::threading::ThreadSafe
 ThreadSafe (void)
 
virtual ~ThreadSafe (void)
 
virtual void acquireLock (void) ELPP_FINAL
 
virtual void releaseLock (void) ELPP_FINAL
 
virtual base::threading::Mutexlock (void) ELPP_FINAL
 

Detailed Description

template<typename T>
class el::Callback< T >

Definition at line 488 of file easylogging++.h.

Constructor & Destructor Documentation

◆ Callback()

template<typename T>
el::Callback< T >::Callback ( void  )
inline

Definition at line 2168 of file easylogging++.h.

2168 : m_enabled(true) {}

Member Function Documentation

◆ enabled()

template<typename T>
bool el::Callback< T >::enabled ( void  ) const
inline

Definition at line 2169 of file easylogging++.h.

2169  {
2170  return m_enabled;
2171  }
Here is the caller graph for this function:

◆ handle()

template<typename T>
virtual void el::Callback< T >::handle ( const T handlePtr)
protectedpure virtual

◆ setEnabled()

template<typename T>
void el::Callback< T >::setEnabled ( bool  enabled)
inline

Definition at line 2172 of file easylogging++.h.

2172  {
2173  base::threading::ScopedLock scopedLock(lock());
2174  m_enabled = enabled;
2175  }
bool enabled(void) const
base::threading::internal::ScopedLock< base::threading::Mutex > ScopedLock
virtual base::threading::Mutex & lock(void) ELPP_FINAL

The documentation for this class was generated from the following file: