Boost.Geometry    Boost C++ Libraries

boost::geometry::less< Point, Dimension, Strategy > Struct Template Reference
[compare: define compare functors for points]

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

List of all members.

Public Types

typedef Point first_argument_type
typedef bool result_type
typedef Point second_argument_type


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:
Geometry the geometry
Dimension the 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
Strategy underlying 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>.

Definition at line 204 of file compare.hpp.


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

Definition at line 213 of file compare.hpp.

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

Definition at line 214 of file compare.hpp.

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

Definition at line 215 of file compare.hpp.


December 1, 2009

Copyright © 1995-2009 Barend Gehrels, Geodan, Amsterdam
Copyright © 2008-2009 Bruno Lalande, Paris
Copyright © 2009 Mateusz Loskot, Cadcorp, London
Documentation is generated by Doxygen