LibSWOC++ 1.5.14
Solid Wall of C++
Loading...
Searching...
No Matches
swoc::bwf::ArgPack Class Referenceabstract

#include <bwf_base.h>

Inheritance diagram for swoc::bwf::ArgPack:
Inheritance graph
Collaboration diagram for swoc::bwf::ArgPack:
Collaboration graph

Public Member Functions

virtual std::any capture (unsigned idx) const =0
 Force virtual destructor for subclasses.
 
virtual BufferWriterprint (BufferWriter &w, Spec const &spec, unsigned idx) const =0
 
virtual unsigned count () const =0
 Number of arguments in the pack.
 

Detailed Description

A pack of arguments for formatting.

Definition at line 788 of file bwf_base.h.

Member Function Documentation

◆ capture()

virtual std::any swoc::bwf::ArgPack::capture ( unsigned idx) const
pure virtual

Force virtual destructor for subclasses.

Get argument at index idx.

Parameters
idxArgument index.
Returns
The argument value.

In general the arguments will be stored by reference and so the returned std::any instance will be a reference type.

Implemented in swoc::bwf::ArgTuple< Args >.

◆ count()

virtual unsigned swoc::bwf::ArgPack::count ( ) const
pure virtual

Number of arguments in the pack.

Implemented in swoc::bwf::ArgTuple< Args >.

◆ print()

virtual BufferWriter & swoc::bwf::ArgPack::print ( BufferWriter & w,
Spec const & spec,
unsigned idx ) const
pure virtual

Generate formatted output for an argument.

Parameters
wOutput.
specFormatting specifier.
idxArgument index.
Returns
w

Implemented in swoc::bwf::ArgTuple< Args >.


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