Tenncor
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Public Attributes | List of all members
opt::CommVoter Struct Referencefinal

Implement voter for commutative functors. More...

#include <voter.hpp>

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

Public Member Functions

 CommVoter (std::string label)
 
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 the functor. More...
 
std::unordered_map< SegVArgs, Symbol, CommHasherargs_
 Map functor arguments to emplaced symbols. More...
 

Detailed Description

Implement voter for commutative functors.

Constructor & Destructor Documentation

◆ CommVoter()

opt::CommVoter::CommVoter ( std::string  label)
inline

Member Function Documentation

◆ emplace()

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

Implementation of iVoter.

Implements opt::iVoter.

◆ inspect()

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

Implementation of iVoter.

Implements opt::iVoter.

Member Data Documentation

◆ args_

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

Map functor arguments to emplaced symbols.

◆ label_

std::string opt::CommVoter::label_

Label type of the functor.


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