OSB_LIB::GreaterName< T *, S > Struct Template Reference

Inheritance diagram for OSB_LIB::GreaterName< T *, S >:

Inheritance graph
[legend]
Collaboration diagram for OSB_LIB::GreaterName< T *, S >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<typename T, typename S>
struct OSB_LIB::GreaterName< T *, S >

Descending sort of objects by name, specialization for pointers.

Parameters:
T Class or struct to sort, it must have a member function name() returning S.
S The type returned by the member function T::name().
Optionally the class allows for case-insensitive sorting.

Definition at line 491 of file stringutil.h.

Public Member Functions

Private Attributes


Constructor & Destructor Documentation

template<typename T, typename S>
OSB_LIB::GreaterName< T *, S >::GreaterName ( bool  ignoreCase = false  )  [inline]

Constructor with flag to ignore the case.

Definition at line 493 of file stringutil.h.


Member Function Documentation

template<typename T, typename S>
bool OSB_LIB::GreaterName< T *, S >::operator() ( const T *  lhs,
const T *  rhs 
) const [inline]

The comparison function.

Definition at line 499 of file stringutil.h.


Member Data Documentation

template<typename T, typename S>
bool OSB_LIB::GreaterName< T *, S >::ignoreCase_ [private]

Flag to ignore the case when comparing the 2 names.

Definition at line 508 of file stringutil.h.


The documentation for this struct was generated from the following file:
Generated on Sat Sep 2 14:13:21 2006 for OSB Library by  doxygen 1.4.7