Bitcoin Core 28.99.0
P2P Digital Currency
Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
tinyformat::detail::FormatArg Class Reference

#include <tinyformat.h>

Public Member Functions

 FormatArg ()=default
 
template<typename T >
 FormatArg (const T &value)
 
void format (std::ostream &out, const char *fmtBegin, const char *fmtEnd, int ntrunc) const
 
int toInt () const
 

Static Private Member Functions

template<typename T >
static TINYFORMAT_HIDDEN void formatImpl (std::ostream &out, const char *fmtBegin, const char *fmtEnd, int ntrunc, const void *value)
 
template<typename T >
static TINYFORMAT_HIDDEN int toIntImpl (const void *value)
 

Private Attributes

const void * m_value {nullptr}
 
void(* m_formatImpl )(std::ostream &out, const char *fmtBegin, const char *fmtEnd, int ntrunc, const void *value)
 
int(* m_toIntImpl )(const void *value)
 

Detailed Description

Definition at line 520 of file tinyformat.h.

Constructor & Destructor Documentation

◆ FormatArg() [1/2]

tinyformat::detail::FormatArg::FormatArg ( )
default

◆ FormatArg() [2/2]

template<typename T >
tinyformat::detail::FormatArg::FormatArg ( const T &  value)
inlineexplicit

Definition at line 526 of file tinyformat.h.

Member Function Documentation

◆ format()

void tinyformat::detail::FormatArg::format ( std::ostream &  out,
const char *  fmtBegin,
const char *  fmtEnd,
int  ntrunc 
) const
inline

Definition at line 532 of file tinyformat.h.

Here is the caller graph for this function:

◆ formatImpl()

template<typename T >
static TINYFORMAT_HIDDEN void tinyformat::detail::FormatArg::formatImpl ( std::ostream &  out,
const char *  fmtBegin,
const char *  fmtEnd,
int  ntrunc,
const void *  value 
)
inlinestaticprivate

Definition at line 549 of file tinyformat.h.

Here is the call graph for this function:

◆ toInt()

int tinyformat::detail::FormatArg::toInt ( ) const
inline

Definition at line 540 of file tinyformat.h.

◆ toIntImpl()

template<typename T >
static TINYFORMAT_HIDDEN int tinyformat::detail::FormatArg::toIntImpl ( const void *  value)
inlinestaticprivate

Definition at line 556 of file tinyformat.h.

Member Data Documentation

◆ m_formatImpl

void(* tinyformat::detail::FormatArg::m_formatImpl) (std::ostream &out, const char *fmtBegin, const char *fmtEnd, int ntrunc, const void *value)
inlineprivate

Definition at line 562 of file tinyformat.h.

◆ m_toIntImpl

int(* tinyformat::detail::FormatArg::m_toIntImpl) (const void *value)
inlineprivate

Definition at line 564 of file tinyformat.h.

◆ m_value

const void* tinyformat::detail::FormatArg::m_value {nullptr}
private

Definition at line 561 of file tinyformat.h.


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