matador::condition< condition< L1, R1 >, condition< L2, R2 > > Class Template Reference

Logical binary condition. More...

#include <condition.hpp>

Inherits detail::basic_condition.

Public Member Functions

 condition (const condition< L1, R1 > &l, const condition< L2, R2 > &r, detail::basic_condition::t_operand op)
 Create a binary logical condition.
 
std::string evaluate (basic_dialect &dialect) const override
 Evaluates the condition.
 

Detailed Description

template<class L1, class R1, class L2, class R2>
class matador::condition< condition< L1, R1 >, condition< L2, R2 > >

Logical binary condition.

This class represents a logical binary condition

  • AND
  • OR
Template Parameters
L1The left hand type of the left operator
R1The right hand type of the left operator
L2The left hand type of the right operator
R2The right hand type of the right operator

Constructor & Destructor Documentation

◆ condition()

template<class L1 , class R1 , class L2 , class R2 >
matador::condition< condition< L1, R1 >, condition< L2, R2 > >::condition ( const condition< L1, R1 > &  l,
const condition< L2, R2 > &  r,
detail::basic_condition< condition< L1, R1 >, condition< L2, R2 > >::t_operand  op 
)
inline

Create a binary logical condition.

Parameters
lLeft hand operator of the condition
rright hand operator of the condition
opThe operand (AND or OR)

Member Function Documentation

◆ evaluate()

template<class L1 , class R1 , class L2 , class R2 >
std::string matador::condition< condition< L1, R1 >, condition< L2, R2 > >::evaluate ( basic_dialect dialect) const
inlineoverride

Evaluates the condition.

Parameters
dialectThe dialect used to evaluate
Returns
The exaluated string based on the compile type

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