Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

FirstOfPairCompare< ObjectType, Compare > Class Template Reference

An STL function object class, this is intended to be used on any ordered collection of pairs of objects. More...

#include <firstOfPairCompare.h>

List of all members.

Public Member Functions

 FirstOfPairCompare (Compare compare=Compare())
bool operator() (const ObjectType &a, const ObjectType &b) const
 Returns true if a sorts before b, false otherwise.


Public Attributes

Compare _compare


Detailed Description

template<class ObjectType, class Compare>
class FirstOfPairCompare< ObjectType, Compare >

An STL function object class, this is intended to be used on any ordered collection of pairs of objects.

It invokes the indicated comparison function object on the first object of its pair.

Definition at line 41 of file firstOfPairCompare.h.


Constructor & Destructor Documentation

template<class ObjectType, class Compare>
FirstOfPairCompare< ObjectType, Compare >::FirstOfPairCompare Compare  compare = Compare()  )  [inline]
 

Definition at line 33 of file firstOfPairCompare.I.

References FirstOfPairCompare< ObjectType, Compare >::_compare, and INLINE.


Member Function Documentation

template<class ObjectType, class Compare>
bool FirstOfPairCompare< ObjectType, Compare >::operator() const ObjectType &  a,
const ObjectType &  b
const [inline]
 

Returns true if a sorts before b, false otherwise.

Definition at line 46 of file firstOfPairCompare.I.


Member Data Documentation

template<class ObjectType, class Compare>
Compare FirstOfPairCompare< ObjectType, Compare >::_compare
 

Definition at line 45 of file firstOfPairCompare.h.

Referenced by FirstOfPairCompare< ObjectType, Compare >::FirstOfPairCompare().


The documentation for this class was generated from the following files:
Generated on Fri May 2 00:50:38 2003 for Panda by doxygen1.3