indirectLess.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Filename: indirectLess.h
  2. // Created by: drose (27Jun01)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
  8. //
  9. // All use of this software is subject to the terms of the Panda 3d
  10. // Software license. You should have received a copy of this license
  11. // along with this source code; you will also find a current copy of
  12. // the license at http://etc.cmu.edu/panda3d/docs/license/ .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. #ifndef INDIRECTLESS_H
  19. #define INDIRECTLESS_H
  20. #include "pandabase.h"
  21. ////////////////////////////////////////////////////////////////////
  22. // Class : IndirectLess
  23. // Description : An STL function object class, this is intended to be
  24. // used on any ordered collection of pointers to classes
  25. // that contain an operator <() method. It defines the
  26. // order of the pointers via operator <().
  27. ////////////////////////////////////////////////////////////////////
  28. template<class ObjectType>
  29. class IndirectLess {
  30. public:
  31. INLINE bool operator () (const ObjectType *a, const ObjectType *b) const;
  32. };
  33. #include "indirectLess.I"
  34. #endif