indirectLess.I 1.1 KB

1234567891011121314151617181920212223242526272829
  1. // Filename: indirectLess.I
  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. ////////////////////////////////////////////////////////////////////
  19. // Function: IndirectLess::operator ()
  20. // Access: Public
  21. // Description: Returns true if a sorts before b, false otherwise.
  22. ////////////////////////////////////////////////////////////////////
  23. template<class ObjectType>
  24. INLINE bool IndirectLess<ObjectType>::
  25. operator () (const ObjectType *a, const ObjectType *b) const {
  26. return (a != b && (*a) < (*b));
  27. }