MUQ  0.4.3
muq::Utilities::XorLimiter Class Reference

Combines two limiters through an XOR operation. More...

#include <MultiIndexLimiter.h>

Inheritance diagram for muq::Utilities::XorLimiter:

Detailed Description

Combines two limiters through an XOR operation.

This class will return true if exactly one of the limiters given to the constructor returns true.

Definition at line 203 of file MultiIndexLimiter.h.

Public Member Functions

 XorLimiter (std::shared_ptr< MultiIndexLimiter > limitA, std::shared_ptr< MultiIndexLimiter > limitB)
 
virtual ~XorLimiter ()=default
 
virtual bool IsFeasible (std::shared_ptr< MultiIndex > multi) const override
 
- Public Member Functions inherited from muq::Utilities::MultiIndexLimiter
virtual ~MultiIndexLimiter ()=default
 

Constructor & Destructor Documentation

◆ XorLimiter() [1/2]

muq::Utilities::XorLimiter::XorLimiter ( std::shared_ptr< MultiIndexLimiter limitA,
std::shared_ptr< MultiIndexLimiter limitB 
)
inline

Definition at line 206 of file MultiIndexLimiter.h.

◆ ~XorLimiter()

virtual muq::Utilities::XorLimiter::~XorLimiter ( )
virtualdefault

◆ XorLimiter() [2/2]

muq::Utilities::XorLimiter::XorLimiter ( )
inlineprivate

Definition at line 211 of file MultiIndexLimiter.h.

Member Function Documentation

◆ IsFeasible()

virtual bool muq::Utilities::XorLimiter::IsFeasible ( std::shared_ptr< MultiIndex >  multi) const
inlineoverridevirtual

This function is overloaded by children to define what terms are included.

Implements muq::Utilities::MultiIndexLimiter.

Definition at line 208 of file MultiIndexLimiter.h.

References a, and b.

Member Data Documentation

◆ a

std::shared_ptr<MultiIndexLimiter> muq::Utilities::XorLimiter::a
private

Definition at line 212 of file MultiIndexLimiter.h.

Referenced by IsFeasible().

◆ b

std::shared_ptr<MultiIndexLimiter> muq::Utilities::XorLimiter::b
private

Definition at line 212 of file MultiIndexLimiter.h.

Referenced by IsFeasible().


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