MUQ  0.4.3
muq::Utilities::OrLimiter Class Reference

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

#include <MultiIndexLimiter.h>

Inheritance diagram for muq::Utilities::OrLimiter:

Detailed Description

Combines two limiters through an OR operation.

This class will return true if either of the limiters given to the constructor return true.

Definition at line 184 of file MultiIndexLimiter.h.

Public Member Functions

 OrLimiter (std::shared_ptr< MultiIndexLimiter > limitA, std::shared_ptr< MultiIndexLimiter > limitB)
 
virtual ~OrLimiter ()=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

◆ OrLimiter() [1/2]

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

Definition at line 187 of file MultiIndexLimiter.h.

◆ ~OrLimiter()

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

◆ OrLimiter() [2/2]

muq::Utilities::OrLimiter::OrLimiter ( )
inlineprivate

Definition at line 192 of file MultiIndexLimiter.h.

Member Function Documentation

◆ IsFeasible()

virtual bool muq::Utilities::OrLimiter::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 189 of file MultiIndexLimiter.h.

References a, and b.

Member Data Documentation

◆ a

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

Definition at line 193 of file MultiIndexLimiter.h.

Referenced by IsFeasible().

◆ b

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

Definition at line 193 of file MultiIndexLimiter.h.

Referenced by IsFeasible().


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