LuciadCPillar 2023.1.04
luciad::Expression Class Referencefinal

An expression is an opaque object whose evaluation returns a value. More...

#include <luciad/expressions/Expression.h>

Public Member Functions

void accept (IExpressionVisitor &visitor) const
 An expression accepts a visitor allowing to traverse the expression hierarchy. More...
 
bool isCondition () const
 Returns true when this expression is a condition. More...
 
bool operator!= (const Expression &other) const
 
bool operator== (const Expression &other) const
 

Detailed Description

An expression is an opaque object whose evaluation returns a value.

A condition is a case of an expression that always returns a boolean value.

Member Function Documentation

◆ accept()

void luciad::Expression::accept ( IExpressionVisitor visitor) const

An expression accepts a visitor allowing to traverse the expression hierarchy.

Parameters
visitorthe visitor.

◆ isCondition()

bool luciad::Expression::isCondition ( ) const

Returns true when this expression is a condition.

This is the case when the evaluation of the expression always results in a boolean.

Returns
true when this expression is a condition.

◆ operator!=()

bool luciad::Expression::operator!= ( const Expression other) const

◆ operator==()

bool luciad::Expression::operator== ( const Expression other) const