LuciadCPillar 2023.1.04
luciad::FeatureQuery::SortOperator Class Referencefinal

SortOperator class contains a list of properties that must be taken into account for sorting. More...

#include <luciad/models/features/FeatureQuery.h>

Public Member Functions

FeatureComparer getComparer () const
 
size_t getHash () const
 Returns the hash value for this sort operator. More...
 
const std::vector< SortProperty > & getSortProperties () const
 Returns the list of sort properties. More...
 
bool operator!= (const SortOperator &other) const
 
bool operator== (const SortOperator &other) const
 
SortOperatorthenBy (DataPropertyPath propertyPath, SortOrder order=SortOrder::Asc)
 Creates a secondary sorting operator that is used as fallback when the main sorting operator encounters the same value. More...
 

Static Public Member Functions

static SortOperator sortBy (DataPropertyPath propertyPath, SortOrder order=SortOrder::Asc)
 Returns a new 'sortby' operator. More...
 

Detailed Description

SortOperator class contains a list of properties that must be taken into account for sorting.

Member Function Documentation

◆ getComparer()

FeatureComparer luciad::FeatureQuery::SortOperator::getComparer ( ) const

◆ getHash()

size_t luciad::FeatureQuery::SortOperator::getHash ( ) const

Returns the hash value for this sort operator.

Returns
the hash value for this sort operator.

◆ getSortProperties()

const std::vector< SortProperty > & luciad::FeatureQuery::SortOperator::getSortProperties ( ) const

Returns the list of sort properties.

Returns
the list of sort properties.

◆ operator!=()

bool luciad::FeatureQuery::SortOperator::operator!= ( const SortOperator other) const

◆ operator==()

bool luciad::FeatureQuery::SortOperator::operator== ( const SortOperator other) const

◆ sortBy()

static SortOperator luciad::FeatureQuery::SortOperator::sortBy ( DataPropertyPath  propertyPath,
SortOrder  order = SortOrder::Asc 
)
static

Returns a new 'sortby' operator.

Parameters
propertyPaththe path to the property that is used for the sort operation
orderthe sorting order: ascending or descending
Returns
a new 'sortby' operator.

◆ thenBy()

SortOperator & luciad::FeatureQuery::SortOperator::thenBy ( DataPropertyPath  propertyPath,
SortOrder  order = SortOrder::Asc 
)

Creates a secondary sorting operator that is used as fallback when the main sorting operator encounters the same value.

Parameters
propertyPaththe path to the property that is used for the sort operation
orderthe sorting order: ascending or descending
Returns
a secondary sorting operator.