Tenncor
Public Member Functions | Public Attributes | List of all members
opt::VariadicVoter Struct Referencefinal

Implement voter for variadic groups. More...

#include <voter.hpp>

Inheritance diagram for opt::VariadicVoter:
Inheritance graph
[legend]
Collaboration diagram for opt::VariadicVoter:
Collaboration graph
[legend]

Public Member Functions

 VariadicVoter (std::string label, std::string variadic)
 
void emplace (VoterArgsT args, Symbol sym) override
 Implementation of iVoter. More...
 
CandsT inspect (const CandArgsT &args) const override
 Implementation of iVoter. More...
 
- Public Member Functions inherited from opt::iVoter
virtual ~iVoter (void)=default
 

Public Attributes

std::string label_
 Label type of group. More...
 
std::string variadic_
 Symbol of variadic argument. More...
 
std::unordered_map< SegVArgs, Symbol, CommHasherargs_
 Map functor arguments to emplaced symbols. More...
 

Detailed Description

Implement voter for variadic groups.

Constructor & Destructor Documentation

◆ VariadicVoter()

opt::VariadicVoter::VariadicVoter ( std::string  label,
std::string  variadic 
)
inline

Member Function Documentation

◆ emplace()

void opt::VariadicVoter::emplace ( VoterArgsT  args,
Symbol  sym 
)
inlineoverridevirtual

Implementation of iVoter.

Implements opt::iVoter.

◆ inspect()

CandsT opt::VariadicVoter::inspect ( const CandArgsT args) const
inlineoverridevirtual

Implementation of iVoter.

Implements opt::iVoter.

Member Data Documentation

◆ args_

std::unordered_map<SegVArgs,Symbol,CommHasher> opt::VariadicVoter::args_

Map functor arguments to emplaced symbols.

◆ label_

std::string opt::VariadicVoter::label_

Label type of group.

◆ variadic_

std::string opt::VariadicVoter::variadic_

Symbol of variadic argument.


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