Panda3D
Public Member Functions
indirect_compare_names< Key > Class Template Reference

An STL function object class, this is intended to be used on any ordered collection of pointers to classes that define a get_name() method, particularly for things that derive from Namable. More...

#include "stl_compares.h"

Inheritance diagram for indirect_compare_names< Key >:
stl_hash_compare< Key, indirect_compare_names< Key > > indirect_method_hash< Key, indirect_compare_names< Key > > indirect_compare_names_hash< Key >

List of all members.

Public Member Functions

bool is_equal (const Key &a, const Key &b) const
 Returns true if a is equivalent to b, false otherwise.
bool operator() (const Key &a, const Key &b) const
 Returns true if a sorts before b, false otherwise.

Detailed Description

template<class Key>
class indirect_compare_names< Key >

An STL function object class, this is intended to be used on any ordered collection of pointers to classes that define a get_name() method, particularly for things that derive from Namable.

It defines the order of the pointers by case-sensitive name comparison.

Definition at line 123 of file stl_compares.h.


Member Function Documentation

template<class Key >
bool indirect_compare_names< Key >::is_equal ( const Key &  a,
const Key &  b 
) const [inline]

Returns true if a is equivalent to b, false otherwise.

Definition at line 111 of file stl_compares.I.

template<class Key >
bool indirect_compare_names< Key >::operator() ( const Key &  a,
const Key &  b 
) const [inline]

Returns true if a sorts before b, false otherwise.

Definition at line 100 of file stl_compares.I.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations