OSSIA
Open Scenario System for Interactive Application
ossia::expressions::expression_atom Class Referencefinal

expression_atom : numeric operators in expressions. More...

Inherits ossia::expressions::expression_callback_container.

Detailed Description

expression_atom : numeric operators in expressions.

See also
expression.hpp

Public Types

using val_t = ossia::nullable_variant< ossia::value, ossia::destination >
 

Public Member Functions

 expression_atom (const value &lhs, comparator op=comparator::EQUAL, const value &rhs=impulse{})
 
 expression_atom (const destination &lhs, comparator op=comparator::EQUAL, const value &rhs=impulse{})
 
 expression_atom (const destination &lhs, comparator op, const destination &rhs)
 
 expression_atom (const value &lhs, comparator op, const destination &rhs)
 
 expression_atom (const val_t &lhs, comparator op, const val_t &rhs, dummy_t)
 
 expression_atom (expression_atom &&other)=delete
 
expression_atomoperator= (expression_atom &&other)=delete
 
 expression_atom (const expression_atom &other)=delete
 
expression_atomoperator= (const expression_atom &other)=delete
 
bool evaluate () const
 
void update () const
 
void reset ()
 
const val_t & get_first_operand () const
 
comparator get_operator () const
 
const val_t & get_second_operand () const
 
bool operator() (const ossia::value &first, const ossia::value &second) const
 
bool operator() (const ossia::value &first, const ossia::destination &second) const
 
bool operator() (const ossia::destination &first, const ossia::value &second) const
 
bool operator() (const ossia::destination &first, const ossia::destination &second) const
 
constexpr bool operator() (const ossia::value &v, const ossia::monostate &m) const noexcept
 
constexpr bool operator() (const ossia::destination &v, const ossia::monostate &m) const noexcept
 
constexpr bool operator() (const ossia::monostate &v, const ossia::value &m) const noexcept
 
constexpr bool operator() (const ossia::monostate &v, const ossia::destination &m) const noexcept
 
constexpr bool operator() (const ossia::monostate &v, const ossia::monostate &m) const noexcept