Public Member Functions | List of all members
el::base::RegisteredHitCounters Class Reference

Repository for hit counters used across the application. More...

#include <easylogging++.h>

Inheritance diagram for el::base::RegisteredHitCounters:
Inheritance graph
[legend]

Public Member Functions

const base::HitCountergetCounter (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 >
RegistryWithPredoperator= (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)
 
AbstractRegistryoperator= (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::Mutexlock (void) ELPP_FINAL
 
virtual void releaseLock (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 >::const_iterator const_iterator
 
typedef RegistryWithPred< base::HitCounter, base::HitCounter::Predicate >::iterator iterator
 
- Public Types inherited from el::base::utils::AbstractRegistry< base::HitCounter, std::vector< base::HitCounter * > >
typedef std::vector< base::HitCounter * >::const_iterator const_iterator
 
typedef std::vector< base::HitCounter * >::iterator iterator
 
- Protected Member Functions inherited from el::base::utils::RegistryWithPred< base::HitCounter, base::HitCounter::Predicate >
base::HitCounterget (const T &arg1, const T2 arg2)
 Gets pointer from repository with speicifed arguments. Arguments are passed to predicate in order to validate pointer. More...
 
virtual void registerNew (base::HitCounter *ptr) ELPP_FINAL
 
virtual void unregister (base::HitCounter *&ptr) ELPP_FINAL
 
virtual void unregisterAll (void) ELPP_FINAL
 Unregisters all the pointers from current repository. More...
 
- Protected Member Functions inherited from el::base::utils::AbstractRegistry< base::HitCounter, std::vector< base::HitCounter * > >
virtual void deepCopy (const AbstractRegistry< base::HitCounter, std::vector< base::HitCounter * > > &)=0
 
void reinitDeepCopy (const AbstractRegistry< base::HitCounter, std::vector< base::HitCounter * > > &sr)
 
- Protected Member Functions inherited from el::base::threading::ThreadSafe
 ThreadSafe (void)
 
virtual ~ThreadSafe (void)
 

Detailed Description

Repository for hit counters used across the application.

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

Member Function Documentation

const base::HitCounter* el::base::RegisteredHitCounters::getCounter ( const char *  filename,
base::type::LineNumber  lineNumber 
)
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.

Returns
True if validation resulted in triggering hit. Meaning logs should be written everytime true is returned

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.

Returns
True if validation resulted in triggering hit. Meaning logs should be written everytime true is returned

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.

Returns
True if validation resulted in triggering hit. Meaning logs should be written everytime true is returned

Definition at line 1887 of file easylogging++.cc.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:36