iceberg-cpp
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
iceberg::True Class Reference

An Expression that is always true. More...

#include <expression.h>

Inheritance diagram for iceberg::True:
iceberg::Expression iceberg::util::Formattable

Public Member Functions

Operation op () const override
 Returns the operation for an expression node.
 
std::string ToString () const override
 Get a user-readable string representation.
 
Result< std::shared_ptr< Expression > > Negate () const override
 Returns the negation of this expression, equivalent to not(this).
 
bool Equals (const Expression &other) const override
 Returns whether this expression will accept the same values as another.
 
- Public Member Functions inherited from iceberg::Expression
virtual bool is_unbound_predicate () const
 
virtual bool is_bound_predicate () const
 
virtual bool is_unbound_aggregate () const
 
virtual bool is_bound_aggregate () const
 

Static Public Member Functions

static const std::shared_ptr< True > & Instance ()
 Returns the singleton instance.
 

Additional Inherited Members

- Public Types inherited from iceberg::Expression
enum class  Operation {
  kTrue , kFalse , kIsNull , kNotNull ,
  kIsNan , kNotNan , kLt , kLtEq ,
  kGt , kGtEq , kEq , kNotEq ,
  kIn , kNotIn , kNot , kAnd ,
  kOr , kStartsWith , kNotStartsWith , kCount ,
  kCountNull , kCountStar , kMax , kMin
}
 Operation types for expressions.
 

Detailed Description

An Expression that is always true.

Represents a boolean predicate that always evaluates to true.

Member Function Documentation

◆ Equals()

bool iceberg::True::Equals ( const Expression other) const
inlineoverridevirtual

Returns whether this expression will accept the same values as another.

Parameters
otheranother expression
Returns
true if the expressions are equivalent

Reimplemented from iceberg::Expression.

◆ Negate()

Result< std::shared_ptr< Expression > > iceberg::True::Negate ( ) const
overridevirtual

Returns the negation of this expression, equivalent to not(this).

Reimplemented from iceberg::Expression.

◆ op()

Operation iceberg::True::op ( ) const
inlineoverridevirtual

Returns the operation for an expression node.

Implements iceberg::Expression.

◆ ToString()

std::string iceberg::True::ToString ( ) const
inlineoverridevirtual

Get a user-readable string representation.

Reimplemented from iceberg::Expression.


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