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

List of all members.

Public Member Functions

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

Detailed Description

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

Definition at line 262 of file dpoint.hh.


Member Function Documentation

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

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

Returns:
True if the coordinates of l are not greater than the coordinates of r.

Definition at line 271 of file dpoint.hh.

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

00273       {
00274         for (unsigned i = 0; i < abstract::dpoint<Exact>::dim; ++i)
00275           if (l.nth(i) < r.nth(i))
00276             return true;
00277           else if (l.nth(i) > r.nth(i))
00278             return false;
00279         return false;
00280       }


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