Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
StreamProxy Class Reference

#include <log.h>

+ Collaboration diagram for StreamProxy:

Public Member Functions

 StreamProxy (std::ostream *os)
 
template<typename T >
StreamProxyoperator<< (T &&arg)
 
StreamProxyoperator<< (std::ostream &(*manip)(std::ostream &))
 

Static Public Member Functions

static void fix_stream_state (std::ostream &os)
 

Private Member Functions

template<typename T >
StreamProxyemit_with_null_check (T &&arg)
 

Private Attributes

std::ostream * m_os
 

Constructor & Destructor Documentation

◆ StreamProxy()

StreamProxy::StreamProxy ( std::ostream * os)
inline

Member Function Documentation

◆ emit_with_null_check()

template<typename T >
StreamProxy & StreamProxy::emit_with_null_check ( T && arg)
inlineprivate

◆ fix_stream_state()

void StreamProxy::fix_stream_state ( std::ostream & os)
static

Referenced by operator<<(), and operator<<().

+ Here is the caller graph for this function:

◆ operator<<() [1/2]

StreamProxy & StreamProxy::operator<< ( std::ostream &(* manip )(std::ostream &))
inline

References fix_stream_state(), and m_os.

+ Here is the call graph for this function:

◆ operator<<() [2/2]

template<typename T >
StreamProxy & StreamProxy::operator<< ( T && arg)
inline

References fix_stream_state(), and m_os.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_os

std::ostream* StreamProxy::m_os
private

Referenced by operator<<(), and operator<<().


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