YAPOG  0.0.1
Yet Another Pokemon Online Game
LessComparator.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_LESSCOMPARATOR_HPP
2 # define YAPOG_LESSCOMPARATOR_HPP
3 
4 # include "YAPOG/Macros.hpp"
6 
7 namespace yap
8 {
9  template <typename T>
10  class LessComparator : public IComparator<T>
11  {
12  public:
13 
14  virtual ~LessComparator ();
15 
16  bool operator() (const T& left, const T& right) const;
17 
20  virtual int Compare (const T& left, const T& right) const;
22 
23  protected:
24 
25  LessComparator ();
26 
27  LessComparator (const LessComparator<T>& copy);
29 
30  virtual int HandleCompare (const T& left, const T& right) const = 0;
31  };
32 } // namespace yap
33 
35 
36 #endif // YAPOG_LESSCOMPARATOR_HPP