Vowpal Wabbit
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
VW::io::details::function_ptr_sink< Mutex > Class Template Reference

#include <logger.h>

Inheritance diagram for VW::io::details::function_ptr_sink< Mutex >:

Public Types

using func_t = void(*)(void *, const std::string &)
 

Public Member Functions

 function_ptr_sink (void *context, func_t func)
 

Protected Member Functions

void sink_it_ (const spdlog::details::log_msg &msg) override
 
void flush_ () override
 

Protected Attributes

func_t _func
 
void * _context
 

Member Typedef Documentation

◆ func_t

template<typename Mutex >
using VW::io::details::function_ptr_sink< Mutex >::func_t = void (*)(void*, const std::string&)

Constructor & Destructor Documentation

◆ function_ptr_sink()

template<typename Mutex >
VW::io::details::function_ptr_sink< Mutex >::function_ptr_sink ( void *  context,
func_t  func 
)
inline

Member Function Documentation

◆ flush_()

template<typename Mutex >
void VW::io::details::function_ptr_sink< Mutex >::flush_ ( )
inlineoverrideprotected

◆ sink_it_()

template<typename Mutex >
void VW::io::details::function_ptr_sink< Mutex >::sink_it_ ( const spdlog::details::log_msg &  msg)
inlineoverrideprotected

Member Data Documentation

◆ _context

template<typename Mutex >
void* VW::io::details::function_ptr_sink< Mutex >::_context
protected

◆ _func

template<typename Mutex >
func_t VW::io::details::function_ptr_sink< Mutex >::_func
protected

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