LibSWOC++ 1.5.14
Solid Wall of C++
Loading...
Searching...
No Matches
swoc::bwf::ArgTuple< Args > Class Template Reference

#include <bwf_base.h>

Inheritance diagram for swoc::bwf::ArgTuple< Args >:
Inheritance graph
Collaboration diagram for swoc::bwf::ArgTuple< Args >:
Collaboration graph

Public Member Functions

 ArgTuple (std::tuple< Args... > const &tuple)
 Construct from a tuple.
 

Protected Member Functions

unsigned count () const override
 Numnber of arguments in the tuple.
 
BufferWriterprint (BufferWriter &w, Spec const &spec, unsigned idx) const override
 Generate formatted output on w for argument at idx.
 
std::any capture (unsigned idx) const override
 Capture the idx argument for later use.
 

Protected Attributes

std::tuple< Args... > const & _tuple
 The source arguments.
 

Detailed Description

template<typename... Args>
class swoc::bwf::ArgTuple< Args >

An argument pack based on a reference tuple.

Template Parameters
ArgsType of arguments in the tuple.

This contains a reference to the tuple, and so is only suitable for passing as a temporary.

Definition at line 823 of file bwf_base.h.

Constructor & Destructor Documentation

◆ ArgTuple()

template<typename... Args>
swoc::bwf::ArgTuple< Args >::ArgTuple ( std::tuple< Args... > const & tuple)
inline

Construct from a tuple.

Definition at line 826 of file bwf_base.h.

Member Function Documentation

◆ capture()

template<typename... Args>
std::any swoc::bwf::ArgTuple< Args >::capture ( unsigned idx) const
overrideprotectedvirtual

Capture the idx argument for later use.

Implements swoc::bwf::ArgPack.

Definition at line 857 of file bwf_base.h.

◆ count()

template<typename... Args>
unsigned swoc::bwf::ArgTuple< Args >::count ( ) const
overrideprotectedvirtual

Numnber of arguments in the tuple.

Implements swoc::bwf::ArgPack.

Definition at line 844 of file bwf_base.h.

◆ print()

template<typename... Args>
BufferWriter & swoc::bwf::ArgTuple< Args >::print ( BufferWriter & w,
Spec const & spec,
unsigned idx ) const
overrideprotectedvirtual

Generate formatted output on w for argument at idx.

Implements swoc::bwf::ArgPack.

Definition at line 850 of file bwf_base.h.

Member Data Documentation

◆ _tuple

template<typename... Args>
std::tuple<Args...> const& swoc::bwf::ArgTuple< Args >::_tuple
protected

The source arguments.

Definition at line 839 of file bwf_base.h.


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