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

Implement voter for ordered (non-commutative) functors. More...

#include <voter.hpp>

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

Public Member Functions

 OrdrVoter (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< VoterArgsT, Symbol, OrdrHasherargs_
 Map functor arguments to emplaced symbols. More...
 

Detailed Description

Implement voter for ordered (non-commutative) functors.

Constructor & Destructor Documentation

◆ OrdrVoter()

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

Member Function Documentation

◆ emplace()

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

Implementation of iVoter.

Implements opt::iVoter.

◆ inspect()

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

Implementation of iVoter.

Implements opt::iVoter.

Member Data Documentation

◆ args_

std::unordered_map<VoterArgsT,Symbol,OrdrHasher> opt::OrdrVoter::args_

Map functor arguments to emplaced symbols.

◆ label_

std::string opt::OrdrVoter::label_

Label type of the functor.


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