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

#include <bwf_base.h>

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

Public Member Functions

NameBinding const & bind () const
 The bound accessor is this class.
 
BufferWriteroperator() (BufferWriter &w, const Spec &spec) const override
 Bound name access.
 
- Public Member Functions inherited from swoc::bwf::NameMap< ExternalGeneratorSignature >
 NameMap ()
 Construct an empty container.
 
 NameMap (std::initializer_list< std::tuple< std::string_view, Generator const & > > list)
 Construct and assign the names and generators in list.
 
self_typeassign (std::string_view const &name, Generator const &generator)
 
bool contains (std::string_view name)
 
 NameMap ()
 Construct an empty container.
 
 NameMap (std::initializer_list< std::tuple< std::string_view, Generator const & > > list)
 Construct and assign the names and generators in list.
 
self_typeassign (std::string_view const &name, Generator const &generator)
 
bool contains (std::string_view name)
 
- Public Member Functions inherited from swoc::bwf::NameBinding
virtual ~NameBinding ()
 Force virtual destructor.
 

Additional Inherited Members

- Public Types inherited from swoc::bwf::NameMap< ExternalGeneratorSignature >
using Generator
 Signature for generators.
 
- Protected Types inherited from swoc::bwf::NameMap< ExternalGeneratorSignature >
using Map
 
- Protected Member Functions inherited from swoc::bwf::NameMap< ExternalGeneratorSignature >
std::string_view localize (std::string_view const &name)
 Copy name in to local storage and return a view of it.
 
std::string_view localize (std::string_view const &name)
 Copy name in to local storage and return a view of it.
 
- Static Protected Member Functions inherited from swoc::bwf::NameBinding
static BufferWritererr_invalid_name (BufferWriter &w, Spec const &spec)
 — Names / Generators —
 
- Protected Attributes inherited from swoc::bwf::NameMap< ExternalGeneratorSignature >
Map _map
 Name to name generator.
 
MemArena _arena
 Local name storage.
 
Map _map
 Name to name generator.
 
MemArena _arena
 Local name storage.
 

Detailed Description

A class to hold external / context-free name bindings.

These names access external data and therefore have no context. An externally accessible singleton instance of this is used as the default if no explicit name set is provided. This enables the executable to establish a set of global names to be used.

Definition at line 345 of file bwf_base.h.

Member Function Documentation

◆ bind()

NameBinding const & swoc::bwf::ExternalNames::bind ( ) const
inline

The bound accessor is this class.

Definition at line 617 of file bwf_base.h.

◆ operator()()

BufferWriter & swoc::bwf::ExternalNames::operator() ( BufferWriter & w,
const Spec & spec ) const
inlineoverridevirtual

Bound name access.

Implements swoc::bwf::NameBinding.

Definition at line 605 of file bwf_base.h.


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