00001 // Filename: compareTo.h 00002 // Created by: drose (22Feb02) 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 COMPARETO_H 00016 #define COMPARETO_H 00017 00018 #include "pandabase.h" 00019 00020 //////////////////////////////////////////////////////////////////// 00021 // Class : CompareTo 00022 // Description : An STL function object class, this is intended to be 00023 // used on any ordered collection of classes that 00024 // contain a compare_to() method. It defines the order 00025 // of the pointers via compare_to(). 00026 //////////////////////////////////////////////////////////////////// 00027 template<class ObjectType> 00028 class CompareTo { 00029 public: 00030 INLINE bool operator () (const ObjectType &a, const ObjectType &b) const; 00031 }; 00032 00033 #include "compareTo.I" 00034 00035 #endif 00036