ZeroErr
Loading...
Searching...
No Matches
zeroerr::ContextScope< F > Class Template Reference

Template implementation of context scope. More...

#include <log.h>

Inheritance diagram for zeroerr::ContextScope< F >:
Collaboration diagram for zeroerr::ContextScope< F >:

Public Member Functions

 ContextScope (F f)
 ~ContextScope ()
virtual void str (zeroerr::StringBuffer &os) const override
 Output context information to a stream.

Protected Attributes

F f_

Detailed Description

template<typename F>
class zeroerr::ContextScope< F >

Template implementation of context scope.

Stores a callable that outputs context information when needed during assertion failure

Template Parameters
FType of the callable function

Constructor & Destructor Documentation

◆ ContextScope()

template<typename F>
zeroerr::ContextScope< F >::ContextScope ( F f)
inline

◆ ~ContextScope()

template<typename F>
zeroerr::ContextScope< F >::~ContextScope ( )
inline

Member Function Documentation

◆ str()

template<typename F>
virtual void zeroerr::ContextScope< F >::str ( zeroerr::StringBuffer & os) const
inlineoverridevirtual

Output context information to a stream.

Parameters
osThe output stream to write context to

Implements zeroerr::IContextScope.

Member Data Documentation

◆ f_

template<typename F>
F zeroerr::ContextScope< F >::f_
protected

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