Agora  1.2.0
Agora project
spdlog::details::backtracer Class Reference

#include <backtracer.h>

Collaboration diagram for spdlog::details::backtracer:

Public Member Functions

 backtracer ()=default
 
 backtracer (const backtracer &other)
 
 backtracer (backtracer &&other) SPDLOG_NOEXCEPT
 
backtraceroperator= (backtracer other)
 
void enable (size_t size)
 
void disable ()
 
bool enabled () const
 
void push_back (const log_msg &msg)
 
void foreach_pop (std::function< void(const details::log_msg &)> fun)
 

Private Attributes

std::mutex mutex_
 
std::atomic< bool > enabled_ {false}
 
circular_q< log_msg_buffermessages_
 

Constructor & Destructor Documentation

◆ backtracer() [1/3]

spdlog::details::backtracer::backtracer ( )
default

◆ backtracer() [2/3]

SPDLOG_INLINE spdlog::details::backtracer::backtracer ( const backtracer other)
Here is the call graph for this function:

◆ backtracer() [3/3]

SPDLOG_INLINE spdlog::details::backtracer::backtracer ( backtracer &&  other)

Member Function Documentation

◆ disable()

SPDLOG_INLINE void spdlog::details::backtracer::disable ( )
Here is the caller graph for this function:

◆ enable()

SPDLOG_INLINE void spdlog::details::backtracer::enable ( size_t  size)
Here is the caller graph for this function:

◆ enabled()

SPDLOG_INLINE bool spdlog::details::backtracer::enabled ( ) const
Here is the caller graph for this function:

◆ foreach_pop()

SPDLOG_INLINE void spdlog::details::backtracer::foreach_pop ( std::function< void(const details::log_msg &)>  fun)
Here is the caller graph for this function:

◆ operator=()

SPDLOG_INLINE backtracer & spdlog::details::backtracer::operator= ( backtracer  other)
Here is the call graph for this function:

◆ push_back()

SPDLOG_INLINE void spdlog::details::backtracer::push_back ( const log_msg msg)
Here is the caller graph for this function:

Member Data Documentation

◆ enabled_

std::atomic<bool> spdlog::details::backtracer::enabled_ {false}
private

◆ messages_

circular_q<log_msg_buffer> spdlog::details::backtracer::messages_
private

◆ mutex_

std::mutex spdlog::details::backtracer::mutex_
mutableprivate

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