Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::geometry::less< Point, Dimension, Strategy > Struct Template Reference

Less functor, to sort points in ascending order. More...

#include <compare.hpp>

Inheritance diagram for boost::geometry::less< Point, Dimension, Strategy >:
Collaboration diagram for boost::geometry::less< Point, Dimension, Strategy >:

Public Types

typedef Point first_argument_type
 
typedef Point second_argument_type
 
typedef bool result_type
 

Public Member Functions

bool operator() (Point const &left, Point const &right) const
 

Detailed Description

template<typename Point, int Dimension = -1, typename Strategy = strategy::compare::default_strategy>
struct boost::geometry::less< Point, Dimension, Strategy >

Less functor, to sort points in ascending order.

This functor compares points and orders them on x, then on y, then on z coordinate.

Template Parameters
Geometrythe geometry
Dimensionthe dimension to sort on, defaults to -1, indicating ALL dimensions. That's to say, first on x, on equal x-es then on y, etc. If a dimension is specified, only that dimension is considered
Strategyunderlying coordinate comparing functor, defaults to the default comparison strategies related to the point coordinate system. If specified, the specified strategy is used. This can e.g. be std::less<double>.

Member Typedef Documentation

template<typename Point , int Dimension = -1, typename Strategy = strategy::compare::default_strategy>
typedef Point boost::geometry::less< Point, Dimension, Strategy >::first_argument_type
template<typename Point , int Dimension = -1, typename Strategy = strategy::compare::default_strategy>
typedef bool boost::geometry::less< Point, Dimension, Strategy >::result_type
template<typename Point , int Dimension = -1, typename Strategy = strategy::compare::default_strategy>
typedef Point boost::geometry::less< Point, Dimension, Strategy >::second_argument_type

Member Function Documentation

bool boost::geometry::detail::compare::compare_in_one_dimension< Point, strategy::compare::detail::select_strategy< Strategy, Direction, Point, Dimension >::type , Dimension >::operator() ( Point const &  left,
Point const &  right 
) const
inlineinherited

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