SoPlex Documentation
Loading...
Searching...
No Matches
basic_format_args< Context > Class Template Reference

#include <core.h>

Public Types

using size_type = int
 
using format_arg = basic_format_arg<Context>
 

Public Member Functions

 basic_format_args ()
 
template<typename... Args>
 basic_format_args (const format_arg_store< Context, Args... > &store)
 
 basic_format_args (const format_arg *args, int count)
 
format_arg get (int index) const
 
int max_size () const
 

Private Member Functions

bool is_packed () const
 
internal::type type (int index) const
 
void set_data (const internal::value< Context > *values)
 
void set_data (const format_arg *args)
 
format_arg do_get (int index) const
 

Private Attributes

unsigned long long types_
 
union { 
 
   const internal::value< Context > *   values_ 
 
   const format_arg *   args_ 
 
};  
 

Friends

class internal::arg_map< Context >
 

Detailed Description

template<typename Context>
class basic_format_args< Context >

Formatting arguments.

Definition at line 1231 of file core.h.

Member Typedef Documentation

◆ format_arg

template<typename Context >
using format_arg = basic_format_arg<Context>

Definition at line 1234 of file core.h.

◆ size_type

template<typename Context >
using size_type = int

Definition at line 1233 of file core.h.

Constructor & Destructor Documentation

◆ basic_format_args() [1/3]

template<typename Context >
basic_format_args ( )

Definition at line 1279 of file core.h.

◆ basic_format_args() [2/3]

template<typename Context >
template<typename... Args>
basic_format_args ( const format_arg_store< Context, Args... > & store)

\rst Constructs a basic_format_args object from ~fmtformat_arg_store. \endrst

Definition at line 1287 of file core.h.

References format_arg_store< Context, Args >::data_, and basic_format_args< Context >::set_data().

◆ basic_format_args() [3/3]

template<typename Context >
basic_format_args ( const format_arg * args,
int count )

\rst Constructs a basic_format_args object from a dynamic set of arguments. \endrst

Definition at line 1297 of file core.h.

References basic_format_args< Context >::set_data().

Member Function Documentation

◆ do_get()

◆ get()

template<typename Context >
format_arg get ( int index) const

Returns the argument at specified index.

Definition at line 1303 of file core.h.

References arg(), basic_format_args< Context >::do_get(), and internal::named_arg_type.

Referenced by basic_format_context< OutputIt, Char >::arg(), and basic_printf_context< OutputIt, Char >::arg().

◆ is_packed()

template<typename Context >
bool is_packed ( ) const
private

◆ max_size()

template<typename Context >
int max_size ( ) const

◆ set_data() [1/2]

template<typename Context >
void set_data ( const format_arg * args)
private

Definition at line 1261 of file core.h.

References basic_format_args< Context >::args_.

◆ set_data() [2/2]

template<typename Context >
void set_data ( const internal::value< Context > * values)
private

◆ type()

template<typename Context >
internal::type type ( int index) const
private

Definition at line 1252 of file core.h.

Referenced by basic_format_args< Context >::do_get(), and arg_map< Context >::init().

Friends And Related Symbol Documentation

◆ internal::arg_map< Context >

template<typename Context >
friend class internal::arg_map< Context >
friend

Definition at line 1252 of file core.h.

Member Data Documentation

◆ [union]

union { ... }

◆ args_

template<typename Context >
const format_arg* args_

◆ types_

template<typename Context >
unsigned long long types_
private

◆ values_

template<typename Context >
const internal::value<Context>* values_