Classes | Public Member Functions | Private Attributes | List of all members
el::base::HitCounter Class Reference

Class that keeps record of current line hit for occasional logging. More...

#include <easylogging++.h>

Classes

class  Predicate
 

Public Member Functions

const char * filename (void) const
 
 HitCounter (void)
 
 HitCounter (const char *filename, base::type::LineNumber lineNumber)
 
 HitCounter (const HitCounter &hitCounter)
 
std::size_t hitCounts (void) const
 
void increment (void)
 
base::type::LineNumber lineNumber (void) const
 
HitCounteroperator= (const HitCounter &hitCounter)
 
void resetLocation (const char *filename, base::type::LineNumber lineNumber)
 Resets location of current hit counter. More...
 
void validateHitCounts (std::size_t n)
 Validates hit counts and resets it if necessary. More...
 
virtual ~HitCounter (void)
 

Private Attributes

const char * m_filename
 
std::size_t m_hitCounts
 
base::type::LineNumber m_lineNumber
 

Detailed Description

Class that keeps record of current line hit for occasional logging.

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

Constructor & Destructor Documentation

el::base::HitCounter::HitCounter ( void  )
inline

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

el::base::HitCounter::HitCounter ( const char *  filename,
base::type::LineNumber  lineNumber 
)
inline

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

el::base::HitCounter::HitCounter ( const HitCounter hitCounter)
inline

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

virtual el::base::HitCounter::~HitCounter ( void  )
inlinevirtual

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

Member Function Documentation

const char* el::base::HitCounter::filename ( void  ) const
inline

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

std::size_t el::base::HitCounter::hitCounts ( void  ) const
inline

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

void el::base::HitCounter::increment ( void  )
inline

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

base::type::LineNumber el::base::HitCounter::lineNumber ( void  ) const
inline

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

HitCounter& el::base::HitCounter::operator= ( const HitCounter hitCounter)
inline

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

void el::base::HitCounter::resetLocation ( const char *  filename,
base::type::LineNumber  lineNumber 
)
inline

Resets location of current hit counter.

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

void el::base::HitCounter::validateHitCounts ( std::size_t  n)
inline

Validates hit counts and resets it if necessary.

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

Member Data Documentation

const char* el::base::HitCounter::m_filename
private

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

std::size_t el::base::HitCounter::m_hitCounts
private

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

base::type::LineNumber el::base::HitCounter::m_lineNumber
private

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


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


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