Rcpp Version 1.1.2
Loading...
Searching...
No Matches
tinyformat::detail::FormatArg Class Reference

#include <tinyformat.h>

Public Member Functions

 FormatArg ()
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
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 492 of file tinyformat.h.

Constructor & Destructor Documentation

◆ FormatArg() [1/2]

tinyformat::detail::FormatArg::FormatArg ( )
inline

Definition at line 495 of file tinyformat.h.

References m_formatImpl, m_toIntImpl, and m_value.

◆ FormatArg() [2/2]

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

Definition at line 502 of file tinyformat.h.

References formatImpl(), m_formatImpl, m_toIntImpl, m_value, and toIntImpl().

Here is the call graph for this function:

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 508 of file tinyformat.h.

References m_formatImpl, m_value, and TINYFORMAT_ASSERT.

Referenced by tinyformat::detail::formatImpl().

◆ formatImpl()

template<typename T>
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 525 of file tinyformat.h.

References tinyformat::formatValue(), and TINYFORMAT_HIDDEN.

Referenced by FormatArg().

Here is the call graph for this function:

◆ toInt()

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

Definition at line 516 of file tinyformat.h.

References m_toIntImpl, m_value, and TINYFORMAT_ASSERT.

Referenced by tinyformat::detail::streamStateFromFormat().

◆ toIntImpl()

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

Definition at line 532 of file tinyformat.h.

References tinyformat::detail::convertToInt< T, convertible >::invoke(), and TINYFORMAT_HIDDEN.

Referenced by FormatArg().

Here is the call graph for this function:

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)
private

Definition at line 538 of file tinyformat.h.

Referenced by format(), FormatArg(), and FormatArg().

◆ m_toIntImpl

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

Definition at line 540 of file tinyformat.h.

Referenced by FormatArg(), FormatArg(), and toInt().

◆ m_value

const void* tinyformat::detail::FormatArg::m_value
private

Definition at line 537 of file tinyformat.h.

Referenced by format(), FormatArg(), FormatArg(), and toInt().


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