00001 // Filename: indirectLess.h 00002 // Created by: drose (27Jun01) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef INDIRECTLESS_H 00016 #define INDIRECTLESS_H 00017 00018 #include "pandabase.h" 00019 00020 //////////////////////////////////////////////////////////////////// 00021 // Class : IndirectLess 00022 // Description : An STL function object class, this is intended to be 00023 // used on any ordered collection of pointers to classes 00024 // that contain an operator <() method. It defines the 00025 // order of the pointers via operator <(). 00026 //////////////////////////////////////////////////////////////////// 00027 template<class ObjectType> 00028 class IndirectLess { 00029 public: 00030 INLINE bool operator () (const ObjectType *a, const ObjectType *b) const; 00031 }; 00032 00033 #include "indirectLess.I" 00034 00035 #endif 00036