Bitcoin Core 32.99.0
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
CountingLog Class Reference

Counts delivered entries per message, and its own destruction, which the kernel triggers through the user_data_destroy_callback when the connection is destroyed. More...

Public Member Functions

 CountingLog (std::map< std::string, int > &messages, int &destroyed)
 
 ~CountingLog ()
 
void LogMessage (const LogEntry &entry)
 

Private Attributes

std::map< std::string, int > & m_messages
 
int & m_destroyed
 

Detailed Description

Counts delivered entries per message, and its own destruction, which the kernel triggers through the user_data_destroy_callback when the connection is destroyed.

Definition at line 704 of file test_kernel.cpp.

Constructor & Destructor Documentation

◆ CountingLog()

CountingLog::CountingLog ( std::map< std::string, int > &  messages,
int &  destroyed 
)
inline

Definition at line 710 of file test_kernel.cpp.

◆ ~CountingLog()

CountingLog::~CountingLog ( )
inline

Definition at line 712 of file test_kernel.cpp.

Member Function Documentation

◆ LogMessage()

void CountingLog::LogMessage ( const LogEntry &  entry)
inline

Definition at line 714 of file test_kernel.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ m_destroyed

int& CountingLog::m_destroyed
private

Definition at line 707 of file test_kernel.cpp.

◆ m_messages

std::map<std::string, int>& CountingLog::m_messages
private

Definition at line 706 of file test_kernel.cpp.


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