oln::internal::default_less< abstract::point< Exact > > Struct Template Reference

#include <point.hh>

List of all members.

Public Member Functions

bool operator() (const abstract::point< Exact > &l, const abstract::point< Exact > &r) const
 Test if the coordinates of a point l are not greater than the coordinates of a point r.


Detailed Description

template<class Exact>
struct oln::internal::default_less< abstract::point< Exact > >

The specialized version for abstract::point.

Definition at line 242 of file point.hh.


Member Function Documentation

template<class Exact>
bool oln::internal::default_less< abstract::point< Exact > >::operator() const abstract::point< Exact > &  l,
const abstract::point< Exact > &  r
const [inline]
 

Test if the coordinates of a point l are not greater than the coordinates of a point r.

  • l A point.
  • r Another point.
Returns:
True if the coordinates of l are not greater than the coordinates of r.

Definition at line 256 of file point.hh.

References oln::abstract::point< Exact >::nth().

00258       {
00259         for (unsigned i = 0; i < abstract::point<Exact>::dim; ++i)
00260           if (l.nth(i) < r.nth(i))
00261             return true;
00262           else if (l.nth(i) > r.nth(i))
00263             return false;
00264         return false;
00265       }


The documentation for this struct was generated from the following file:
Generated on Thu Apr 15 20:16:17 2004 for Olena by doxygen 1.3.6-20040222