Scippy

SoPlex

Sequential object-oriented simPlex

basic_format_arg< Context > Class Template Reference

#include <core.h>

Classes

class  handle
 

Public Member Functions

constexpr basic_format_arg ()
 
constexpr operator bool () const FMT_NOEXCEPT
 
detail::type type () const
 
bool is_integral () const
 
bool is_arithmetic () const
 

Private Types

using char_type = typename Context::char_type
 

Private Member Functions

 basic_format_arg (const detail::named_arg_info< char_type > *args, size_t size)
 

Private Attributes

detail::value< Context > value_
 
detail::type type_
 

Friends

class basic_format_args< Context >
 
class dynamic_format_arg_store< Context >
 
template<typename T , typename Char , size_t NUM_ARGS, size_t NUM_NAMED_ARGS>
struct detail::arg_data
 
template<typename ContextType , typename T >
FMT_CONSTEXPR basic_format_arg< ContextType > detail::make_arg (const T &value)
 
template<typename Visitor , typename Ctx >
FMT_CONSTEXPR auto visit_format_arg (Visitor &&vis, const basic_format_arg< Ctx > &arg) -> decltype(vis(0))
 

Detailed Description

template<typename Context>
class basic_format_arg< Context >

Definition at line 624 of file core.h.

Member Typedef Documentation

◆ char_type

using char_type = typename Context::char_type
private

Definition at line 1268 of file core.h.

Constructor & Destructor Documentation

◆ basic_format_arg() [1/2]

basic_format_arg ( const detail::named_arg_info< char_type > *  args,
size_t  size 
)
private

Definition at line 1273 of file core.h.

◆ basic_format_arg() [2/2]

constexpr basic_format_arg ( )

Definition at line 1290 of file core.h.

Member Function Documentation

◆ is_arithmetic()

bool is_arithmetic ( ) const

Definition at line 1299 of file core.h.

References detail::is_arithmetic_type().

Referenced by basic_printf_context< OutputIt, Char >::format().

◆ is_integral()

bool is_integral ( ) const

Definition at line 1298 of file core.h.

References detail::is_integral_type().

Referenced by basic_printf_context< OutputIt, Char >::format().

◆ operator bool()

constexpr operator bool ( ) const
explicit

Definition at line 1292 of file core.h.

References detail::none_type.

◆ type()

detail::type type ( ) const

Definition at line 1296 of file core.h.

Referenced by basic_printf_context< OutputIt, Char >::format().

Friends And Related Function Documentation

◆ basic_format_args< Context >

friend class basic_format_args< Context >
friend

Definition at line 1265 of file core.h.

◆ detail::arg_data

friend struct detail::arg_data
friend

Definition at line 1271 of file core.h.

◆ detail::make_arg

FMT_CONSTEXPR basic_format_arg<ContextType> detail::make_arg ( const T &  value)
friend

◆ dynamic_format_arg_store< Context >

friend class dynamic_format_arg_store< Context >
friend

Definition at line 1266 of file core.h.

◆ visit_format_arg

FMT_CONSTEXPR auto visit_format_arg ( Visitor &&  vis,
const basic_format_arg< Ctx > &  arg 
) -> decltype(vis(0))
friend

Member Data Documentation

◆ type_

detail::type type_
private

Definition at line 1254 of file core.h.

Referenced by basic_format_args< basic_format_context >::get(), and detail::make_arg().

◆ value_

detail::value<Context> value_
private

Definition at line 1253 of file core.h.

Referenced by basic_format_args< basic_format_context >::get(), and detail::make_arg().