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

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 > >

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.

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 Tue Feb 20 20:27:17 2007 for Olena by  doxygen 1.5.1