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

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

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

Collaboration graph
[legend]
List of all members.

Detailed Description

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

Template to sort 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.

See also:
GreaterName for an example.

Definition at line 407 of file stringutil.h.

Public Member Functions

Private Attributes


Constructor & Destructor Documentation

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

Constructor with flag to ignore the case.

Definition at line 409 of file stringutil.h.


Member Function Documentation

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

The comparison function.

Definition at line 415 of file stringutil.h.


Member Data Documentation

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

Flag to ignore the case when comparing the 2 names.

Definition at line 424 of file stringutil.h.


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