LibSWOC++ 1.5.14
Solid Wall of C++
Loading...
Searching...
No Matches
swoc::bwf::ContextNames< T >::Binding Class Reference

Specialized binding for names in an instance of ContextNames. More...

#include <bwf_base.h>

Inheritance diagram for swoc::bwf::ContextNames< T >::Binding:
Inheritance graph
Collaboration diagram for swoc::bwf::ContextNames< T >::Binding:
Collaboration graph

Public Member Functions

BufferWriteroperator() (BufferWriter &w, const Spec &spec) const override
 
- Public Member Functions inherited from swoc::bwf::NameBinding
virtual ~NameBinding ()
 Force virtual destructor.
 

Protected Member Functions

 Binding (ContextNames const &names, context_type &ctx)
 

Protected Attributes

context_type_ctx
 Context for generators.
 
ContextNames const & _names
 Base set of names.
 

Friends

class ContextNames
 

Additional Inherited Members

- Static Protected Member Functions inherited from swoc::bwf::NameBinding
static BufferWritererr_invalid_name (BufferWriter &w, Spec const &spec)
 — Names / Generators —
 

Detailed Description

template<typename T>
class swoc::bwf::ContextNames< T >::Binding

Specialized binding for names in an instance of ContextNames.

Definition at line 398 of file bwf_base.h.

Constructor & Destructor Documentation

◆ Binding()

template<typename T>
swoc::bwf::ContextNames< T >::Binding::Binding ( ContextNames const & names,
context_type & ctx )
inlineprotected

Constructor.

Parameters
namesNames to define for the binding.
ctxBinding context.

Definition at line 420 of file bwf_base.h.

Member Function Documentation

◆ operator()()

template<typename T>
BufferWriter & swoc::bwf::ContextNames< T >::Binding::operator() ( BufferWriter & w,
const Spec & spec ) const
inlineoverridevirtual

Override of virtual method to provide an implementation.

Parameters
wOutput.
specFormat specifier for output.
Returns
w

This is called from the formatting logic to generate output for a named specifier. Subclasses that need to handle name dispatch differently need only override this method.

Implements swoc::bwf::NameBinding.

Definition at line 410 of file bwf_base.h.

Friends And Related Symbol Documentation

◆ ContextNames

template<typename T>
friend class ContextNames
friend

Definition at line 425 of file bwf_base.h.

Member Data Documentation

◆ _ctx

template<typename T>
context_type& swoc::bwf::ContextNames< T >::Binding::_ctx
protected

Context for generators.

Definition at line 422 of file bwf_base.h.

◆ _names

template<typename T>
ContextNames const& swoc::bwf::ContextNames< T >::Binding::_names
protected

Base set of names.

Definition at line 423 of file bwf_base.h.


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