OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimElevLess.h
Go to the documentation of this file.
1 //*******************************************************************
2 //
3 // License: See top level LICENSE.txt file.
4 //
5 // DESCRIPTION:
6 // Function object (functor) to for stl's sort method for sorting
7 // a vector of ossimElevSource* by best post spacing.
8 //*****************************************************************************
9 // $Id: ossimElevLess.h 9968 2006-11-29 14:01:53Z gpotts $
10 
11 #ifndef ossimElevLess_HEADER
12 #define ossimElevLess_HEADER
13 
14 #include <functional>
15 
17 
19  public std::binary_function<const ossimRefPtr<ossimElevSource>,
20  const ossimRefPtr<ossimElevSource>, bool>
21 {
22 public:
24  {
25  return (a->getMeanSpacingMeters() < b->getMeanSpacingMeters());
26  }
27 };
28 
29 #endif
bool operator()(const ossimRefPtr< ossimElevSource > a, const ossimRefPtr< ossimElevSource > b) const
Definition: ossimElevLess.h:23
virtual double getMeanSpacingMeters() const =0
METHOD: meanSpacingMeters() This method returns the post spacing in the region of gpt: ...