Scippy

SoPlex

Sequential object-oriented simPlex

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 548 of file core.h.

Member Typedef Documentation

◆ format_arg

using format_arg = basic_format_arg<Context>

Definition at line 1234 of file core.h.

◆ size_type

using size_type = int

Definition at line 1233 of file core.h.

Constructor & Destructor Documentation

◆ basic_format_args() [1/3]

Definition at line 1279 of file core.h.

◆ basic_format_args() [2/3]

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

Constructs a basic_format_args object from ~fmtformat_arg_store.

Definition at line 1287 of file core.h.

◆ basic_format_args() [3/3]

basic_format_args ( const format_arg args,
int  count 
)

Constructs a basic_format_args object from a dynamic set of arguments.

Definition at line 1297 of file core.h.

Member Function Documentation

◆ do_get()

format_arg do_get ( int  index) const
private

Definition at line 1263 of file core.h.

◆ get()

format_arg get ( int  index) const

Returns the argument at specified index.

Definition at line 1303 of file core.h.

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

◆ is_packed()

bool is_packed ( ) const
private

Definition at line 1250 of file core.h.

Referenced by arg_map< basic_format_context >::init().

◆ max_size()

int max_size ( ) const

Definition at line 1310 of file core.h.

Referenced by arg_map< basic_format_context >::init().

◆ set_data() [1/2]

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

Definition at line 1260 of file core.h.

◆ set_data() [2/2]

void set_data ( const format_arg args)
private

Definition at line 1261 of file core.h.

◆ type()

internal::type type ( int  index) const
private

Definition at line 1252 of file core.h.

Referenced by arg_map< basic_format_context >::init().

Friends And Related Function Documentation

◆ internal::arg_map< Context >

friend class internal::arg_map< Context >
friend

Definition at line 1258 of file core.h.

Member Data Documentation

◆ @7

union { ... }

◆ args_

const format_arg* args_

Definition at line 1247 of file core.h.

Referenced by arg_map< basic_format_context >::init().

◆ types_

unsigned long long types_
private

Definition at line 1239 of file core.h.

◆ values_

const internal::value<Context>* values_

Definition at line 1246 of file core.h.

Referenced by arg_map< basic_format_context >::init().