mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Member Functions | Private Attributes
m::Sortedness Struct Referencefinal

#include <Condition.hpp>

Inheritance diagram for m::Sortedness:
[legend]
Collaboration diagram for m::Sortedness:
[legend]

Public Types

enum  Order { O_ASC , O_DESC , O_UNDEF }
 
using order_t = ConditionPropertyOrderedMap< Order >
 

Public Member Functions

 Sortedness (order_t orders)
 
 Sortedness ()=default
 
 Sortedness (const Sortedness &)=default
 
 Sortedness (Sortedness &&)=default
 
order_torders ()
 
const order_torders () const
 
bool implied_by (const Condition &o) const override
 Checks whether this Condition is implied by other.
 
void project_and_rename (const std::vector< std::pair< Schema::Identifier, Schema::Identifier > > &old2new) override
 Inform this Condition that Identifiers were simultaneously projected and renamed according to the mapping old2new, i.e.
 
bool operator== (const Condition &o) const override
 
bool operator!= (const Condition &other) const
 

Private Member Functions

std::unique_ptr< Conditionclone () const override
 Creates and returns a deep copy of this.
 

Private Attributes

order_t orders_
 

Detailed Description

Definition at line 148 of file Condition.hpp.

Member Typedef Documentation

◆ order_t

Definition at line 152 of file Condition.hpp.

Member Enumeration Documentation

◆ Order

Enumerator
O_ASC 
O_DESC 
O_UNDEF 

Definition at line 150 of file Condition.hpp.

Constructor & Destructor Documentation

◆ Sortedness() [1/4]

m::Sortedness::Sortedness ( order_t  orders)
inlineexplicit

Definition at line 158 of file Condition.hpp.

◆ Sortedness() [2/4]

m::Sortedness::Sortedness ( )
default

◆ Sortedness() [3/4]

m::Sortedness::Sortedness ( const Sortedness )
explicitdefault

◆ Sortedness() [4/4]

m::Sortedness::Sortedness ( Sortedness &&  )
default

Member Function Documentation

◆ clone()

std::unique_ptr< Condition > m::Sortedness::clone ( ) const
inlineoverrideprivatevirtual

Creates and returns a deep copy of this.

Implements m::Condition.

Definition at line 165 of file Condition.hpp.

References orders_.

◆ implied_by()

bool m::Sortedness::implied_by ( const Condition other) const
inlineoverridevirtual

Checks whether this Condition is implied by other.

Implements m::Condition.

Definition at line 171 of file Condition.hpp.

References m::ConditionPropertyMap< Property, Ordered >::begin(), and O_UNDEF.

◆ operator!=()

bool m::Condition::operator!= ( const Condition other) const
inlineinherited

Definition at line 127 of file Condition.hpp.

References m::Condition::operator==().

◆ operator==()

bool m::Sortedness::operator== ( const Condition o) const
inlineoverridevirtual

Implements m::Condition.

Definition at line 193 of file Condition.hpp.

◆ orders() [1/2]

order_t & m::Sortedness::orders ( )
inline

◆ orders() [2/2]

const order_t & m::Sortedness::orders ( ) const
inline

Definition at line 169 of file Condition.hpp.

References orders_.

◆ project_and_rename()

void m::Sortedness::project_and_rename ( const std::vector< std::pair< Schema::Identifier, Schema::Identifier > > &  old2new)
inlineoverridevirtual

Inform this Condition that Identifiers were simultaneously projected and renamed according to the mapping old2new, i.e.

afterwards, this Condition does only consist of Identifiers contained as second element of each pair in the mapping.

Implements m::Condition.

Definition at line 189 of file Condition.hpp.

References orders_, and m::ConditionPropertyMap< Property, Ordered >::project_and_rename().

Field Documentation

◆ orders_

order_t m::Sortedness::orders_
private

Definition at line 155 of file Condition.hpp.

Referenced by clone(), orders(), and project_and_rename().


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