Repository for hit counters used across the application. More...
#include <easylogging++.h>
Public Member Functions | |
const base::HitCounter * | getCounter (const char *filename, base::type::LineNumber lineNumber) |
Gets hit counter registered at specified position. More... | |
bool | validateAfterN (const char *filename, base::type::LineNumber lineNumber, std::size_t n) |
Validates counter for hits >= N, i.e, registers new if does not exist otherwise updates original one. More... | |
bool | validateEveryN (const char *filename, base::type::LineNumber lineNumber, std::size_t n) |
Validates counter for every N, i.e, registers new if does not exist otherwise updates original one. More... | |
bool | validateNTimes (const char *filename, base::type::LineNumber lineNumber, std::size_t n) |
Validates counter for hits are <= n, i.e, registers new if does not exist otherwise updates original one. More... | |
Public Member Functions inherited from el::base::utils::RegistryWithPred< base::HitCounter, base::HitCounter::Predicate > | |
RegistryWithPred & | operator= (const RegistryWithPred &sr) |
Assignment operator that unregisters all the existing registeries and deeply copies each of repo element. More... | |
RegistryWithPred (void) | |
RegistryWithPred (const RegistryWithPred &sr) | |
Copy constructor that is useful for base classes. Try to avoid this constructor, use move constructor. More... | |
virtual | ~RegistryWithPred (void) |
Public Member Functions inherited from el::base::utils::AbstractRegistry< base::HitCounter, std::vector< base::HitCounter * > > | |
AbstractRegistry (void) | |
Default constructor. More... | |
AbstractRegistry (AbstractRegistry &&sr) | |
Move constructor that is useful for base classes. More... | |
virtual iterator | begin (void) ELPP_FINAL |
virtual const_iterator | cbegin (void) const ELPP_FINAL |
virtual const_iterator | cend (void) const ELPP_FINAL |
virtual bool | empty (void) const ELPP_FINAL |
virtual iterator | end (void) ELPP_FINAL |
virtual std::vector< base::HitCounter * > & | list (void) ELPP_FINAL |
Returns underlying container by reference. More... | |
virtual const std::vector< base::HitCounter * > & | list (void) const ELPP_FINAL |
Returns underlying container by constant reference. More... | |
bool | operator!= (const AbstractRegistry< base::HitCounter, std::vector< base::HitCounter * > > &other) |
AbstractRegistry & | operator= (AbstractRegistry &&sr) |
Assignment move operator. More... | |
bool | operator== (const AbstractRegistry< base::HitCounter, std::vector< base::HitCounter * > > &other) |
virtual std::size_t | size (void) const ELPP_FINAL |
virtual | ~AbstractRegistry (void) |
Public Member Functions inherited from el::base::threading::ThreadSafe | |
virtual void | acquireLock (void) ELPP_FINAL |
virtual base::threading::Mutex & | lock (void) ELPP_FINAL |
virtual void | releaseLock (void) ELPP_FINAL |
Repository for hit counters used across the application.
Definition at line 2110 of file easylogging++.h.
|
inline |
Gets hit counter registered at specified position.
Definition at line 2125 of file easylogging++.h.
bool el::base::RegisteredHitCounters::validateAfterN | ( | const char * | filename, |
base::type::LineNumber | lineNumber, | ||
std::size_t | n | ||
) |
Validates counter for hits >= N, i.e, registers new if does not exist otherwise updates original one.
Definition at line 1870 of file easylogging++.cc.
bool el::base::RegisteredHitCounters::validateEveryN | ( | const char * | filename, |
base::type::LineNumber | lineNumber, | ||
std::size_t | n | ||
) |
Validates counter for every N, i.e, registers new if does not exist otherwise updates original one.
Definition at line 1857 of file easylogging++.cc.
bool el::base::RegisteredHitCounters::validateNTimes | ( | const char * | filename, |
base::type::LineNumber | lineNumber, | ||
std::size_t | n | ||
) |
Validates counter for hits are <= n, i.e, registers new if does not exist otherwise updates original one.
Definition at line 1887 of file easylogging++.cc.