Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
geo::part::details::PartitionSorterByAreaRangeLower< Range > Struct Template Reference

Ordering class to sort partition by specified range (lower boundary). More...

#include <Partitions.h>

Public Types

using Sorter_t = PartitionSorterByAreaRangeLower< Range >
 
using KeyExtractor_t = PartitionRangeLowerBoundExtractor< Range >
 
using Key_t = decltype(Sorter_t::key(std::declval< PartitionBase >()))
 Type of sorting key. In short: double. More...
 

Public Member Functions

template<typename A , typename B >
bool operator() (A const &a, B const &b) const
 

Static Public Member Functions

template<typename T >
static auto key (T const &obj)
 
static Key_t key (Key_t k)
 
static bool sortKey (Key_t a, Key_t b)
 

Static Public Attributes

static constexpr auto range = Range
 

Detailed Description

template<PartitionBase::AreaRangeMember_t Range>
struct geo::part::details::PartitionSorterByAreaRangeLower< Range >

Ordering class to sort partition by specified range (lower boundary).

Definition at line 72 of file Partitions.h.

Member Typedef Documentation

template<PartitionBase::AreaRangeMember_t Range>
using geo::part::details::PartitionSorterByAreaRangeLower< Range >::Key_t = decltype(Sorter_t::key(std::declval<PartitionBase>()))

Type of sorting key. In short: double.

Definition at line 742 of file Partitions.h.

Definition at line 734 of file Partitions.h.

template<PartitionBase::AreaRangeMember_t Range>
using geo::part::details::PartitionSorterByAreaRangeLower< Range >::Sorter_t = PartitionSorterByAreaRangeLower<Range>

Definition at line 732 of file Partitions.h.

Member Function Documentation

template<PartitionBase::AreaRangeMember_t Range>
template<typename T >
static auto geo::part::details::PartitionSorterByAreaRangeLower< Range >::key ( T const &  obj)
inlinestatic

Definition at line 739 of file Partitions.h.

739 { return KeyExtractor_t()(obj); }
PartitionRangeLowerBoundExtractor< Range > KeyExtractor_t
Definition: Partitions.h:734
template<PartitionBase::AreaRangeMember_t Range>
static Key_t geo::part::details::PartitionSorterByAreaRangeLower< Range >::key ( Key_t  k)
inlinestatic

Definition at line 744 of file Partitions.h.

744 { return k; } // shortcut
template<PartitionBase::AreaRangeMember_t Range>
template<typename A , typename B >
bool geo::part::details::PartitionSorterByAreaRangeLower< Range >::operator() ( A const &  a,
B const &  b 
) const
inline

Definition at line 748 of file Partitions.h.

749  { return sortKey(key(a), key(b)); }
const double a
static bool * b
Definition: config.cpp:1043
template<PartitionBase::AreaRangeMember_t Range>
static bool geo::part::details::PartitionSorterByAreaRangeLower< Range >::sortKey ( Key_t  a,
Key_t  b 
)
inlinestatic

Definition at line 745 of file Partitions.h.

745 { return a < b; }
const double a
static bool * b
Definition: config.cpp:1043

Member Data Documentation

template<PartitionBase::AreaRangeMember_t Range>
constexpr auto geo::part::details::PartitionSorterByAreaRangeLower< Range >::range = Range
static

Definition at line 736 of file Partitions.h.


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