|
Electroneum
|
Repository for hit counters used across the application. More...
#include <easylogging++.h>


Public Member Functions | |
| 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 | 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 | 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... | |
| const base::HitCounter * | getCounter (const char *filename, base::type::LineNumber lineNumber) |
| Gets hit counter registered at specified position. More... | |
Public Member Functions inherited from el::base::utils::RegistryWithPred< base::HitCounter, base::HitCounter::Predicate > | |
| 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) |
| RegistryWithPred & | operator= (const RegistryWithPred &sr) |
| Assignment operator that unregisters all the existing registeries and deeply copies each of repo element. More... | |
Public Member Functions inherited from el::base::utils::AbstractRegistry< T_Ptr, Container > | |
| AbstractRegistry (void) | |
| Default constructor. More... | |
| AbstractRegistry (AbstractRegistry &&sr) | |
| Move constructor that is useful for base classes. More... | |
| bool | operator== (const AbstractRegistry< T_Ptr, Container > &other) |
| bool | operator!= (const AbstractRegistry< T_Ptr, Container > &other) |
| AbstractRegistry & | operator= (AbstractRegistry &&sr) |
| Assignment move operator. More... | |
| virtual | ~AbstractRegistry (void) |
| virtual iterator | begin (void) ELPP_FINAL |
| virtual iterator | end (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 std::size_t | size (void) const ELPP_FINAL |
| virtual Container & | list (void) ELPP_FINAL |
| Returns underlying container by reference. More... | |
| virtual const Container & | list (void) const ELPP_FINAL |
| Returns underlying container by constant reference. More... | |
Public Member Functions inherited from el::base::threading::ThreadSafe | |
| virtual void | acquireLock (void) ELPP_FINAL |
| virtual void | releaseLock (void) ELPP_FINAL |
| virtual base::threading::Mutex & | lock (void) ELPP_FINAL |
Additional Inherited Members | |
Public Types inherited from el::base::utils::RegistryWithPred< base::HitCounter, base::HitCounter::Predicate > | |
| typedef RegistryWithPred< base::HitCounter, base::HitCounter::Predicate >::iterator | iterator |
| typedef RegistryWithPred< base::HitCounter, base::HitCounter::Predicate >::const_iterator | const_iterator |
Public Types inherited from el::base::utils::AbstractRegistry< T_Ptr, Container > | |
| typedef Container::iterator | iterator |
| typedef Container::const_iterator | const_iterator |
Protected Member Functions inherited from el::base::utils::RegistryWithPred< base::HitCounter, base::HitCounter::Predicate > | |
| virtual void | unregisterAll (void) ELPP_FINAL |
| Unregisters all the pointers from current repository. More... | |
| virtual void | unregister (base::HitCounter *&ptr) ELPP_FINAL |
| virtual void | registerNew (base::HitCounter *ptr) ELPP_FINAL |
| base::HitCounter * | get (const T &arg1, const T2 arg2) |
| Gets pointer from repository with speicifed arguments. Arguments are passed to predicate in order to validate pointer. More... | |
Protected Member Functions inherited from el::base::utils::AbstractRegistry< T_Ptr, Container > | |
| virtual void | deepCopy (const AbstractRegistry< T_Ptr, Container > &)=0 |
| void | reinitDeepCopy (const AbstractRegistry< T_Ptr, Container > &sr) |
Protected Member Functions inherited from el::base::threading::ThreadSafe | |
| ThreadSafe (void) | |
| virtual | ~ThreadSafe (void) |
Repository for hit counters used across the application.
Definition at line 2140 of file easylogging++.h.
|
inline |
Gets hit counter registered at specified position.
Definition at line 2155 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.
| 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.
| 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.