35 #ifndef AIMS_DISTANCEMAP_STLSORT_H
36 #define AIMS_DISTANCEMAP_STLSORT_H
51 :
public std::binary_function<Point3df,Point3df, bool>
55 return p1[2] < p2[2] ||
59 ( p1[0] < p2[0] ) ) ) );
68 return p1[2] < p2[2] ||
72 ( p1[0] < p2[0] ) ) ) );
78 :
public std::binary_function<std::pair<T,T>, std::pair<T,T>, bool>
81 const std::pair<T,T> & r )
const
83 return p.first < r.first
84 || (p.first == r.first && p.second < r.second) ;
92 :
public std::binary_function<std::set<T>,std::set<T>, bool>
94 bool operator () (
const std::set<T> & s1,
const std::set<T> & s2 )
const
96 typename std::set<T>::iterator
97 is1=s1.begin(),es1=s1.end(),is2=s2.begin();
98 unsigned n1 = s1.size(), n2 = s2.size();
103 while ( ( is1 != es1) && ( (*is1) == (*is2) ) )
109 return( (*is1) < (*is2) );
std::set< Point3df, Point3dfCompare > Point3dfSet
std::map< Point3df, Point3dfSet, Point3dfCompare > Point3dfNeigh
bool operator()(const std::pair< T, T > &p, const std::pair< T, T > &r) const
bool operator()(const Point3d &p1, const Point3d &p2) const
bool operator()(const Point3df &p1, const Point3df &p2) const
bool operator()(const std::set< T > &s1, const std::set< T > &s2) const