Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

functor.h

Go to the documentation of this file.
00001 #ifndef functor_H
00002 #define functor_H
00003 
00004 #include <algorithm>
00005 #include <functional>
00006 
00007 namespace functor{
00008 
00009    template <class TYPE1, class TYPE2 = TYPE1 >
00010    class Less_by_time
00011      : public std::binary_function<TYPE1,TYPE2,bool>
00012    {
00013    public:
00014 
00021      inline bool operator() ( TYPE1 obj1 , TYPE2 obj2 ) const
00022      {
00023       return
00024         ( !obj1 ) ? true  :
00025         ( !obj2 ) ? false : obj1->timestamp() < obj2->timestamp();
00026      }
00028    };
00029 
00030 };// fun
00031 
00032 #endif

Generated on Fri Jul 8 16:38:52 2005 for Salamander by  doxygen 1.4.1