fm::pcomparator< T > Class Template Reference

A utility to sort arrays of pointer elements. More...

#include <FMSort.h>

Inheritance diagram for fm::pcomparator< T >:

fm::comparator< const void * > List of all members.

Public Types

typedef const void * valueType

Public Member Functions

virtual ~pcomparator ()
 Destructor.
virtual bool compare (const T *a, const T *b)
 Compares two pointers.
virtual bool compare (const valueType &a, const valueType &b)
 [INTERNAL] Override from comparator<T>::compare().

Detailed Description

template<class T>
class fm::pcomparator< T >

A utility to sort arrays of pointer elements.


Member Function Documentation

template<class T>
virtual bool fm::pcomparator< T >::compare const valueType &  a,
const valueType &  b
[inline, virtual]
 

[INTERNAL] Override from comparator<T>::compare().

Do not override this function.

Parameters:
a (void*) representation of an element.
b (void*) representation of another element.
Returns:
The comparison casting a and b to (T*).

Reimplemented from fm::comparator< const void * >.

template<class T>
virtual bool fm::pcomparator< T >::compare const T *  a,
const T *  b
[inline, virtual]
 

Compares two pointers.

Override this function to define your own pcomparator.

Parameters:
a Element a.
b Element b.
Returns:
True if a is smaller than b, false otherwise.


The documentation for this class was generated from the following file:
Generated on Thu Feb 14 16:58:42 2008 for FCollada by  doxygen 1.4.6-NO