Panda3D

indirectCompareNames.h

00001 // Filename: indirectCompareNames.h
00002 // Created by:  drose (23Feb01)
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 INDIRECTCOMPARENAMES_H
00016 #define INDIRECTCOMPARENAMES_H
00017 
00018 #include "pandabase.h"
00019 
00020 ////////////////////////////////////////////////////////////////////
00021 //       Class : IndirectCompareNames
00022 // Description : An STL function object class, this is intended to be
00023 //               used on any ordered collection of pointers to classes
00024 //               that define a get_name() method, particularly for
00025 //               things that derive from Namable.  It defines the
00026 //               order of the pointers by case-sensitive name
00027 //               comparison.
00028 ////////////////////////////////////////////////////////////////////
00029 template<class ObjectType>
00030 class IndirectCompareNames {
00031 public:
00032   INLINE bool operator () (const ObjectType *a, const ObjectType *b) const;
00033 };
00034 
00035 #include "indirectCompareNames.I"
00036 
00037 #endif
00038 
 All Classes Functions Variables Enumerations