OSB_LIB::GreaterStr< S > Struct Template Reference

Inheritance diagram for OSB_LIB::GreaterStr< S >:

Inheritance graph
[legend]
Collaboration diagram for OSB_LIB::GreaterStr< S >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<typename S = std::string>
struct OSB_LIB::GreaterStr< S >

Template to sort 2 strings, optionally case-insensitive.

Parameters:
S String type to compare.
See also:
The inplementation of operator()() uses StrCmp.

Definition at line 340 of file stringutil.h.

Public Member Functions

Private Attributes


Constructor & Destructor Documentation

template<typename S = std::string>
OSB_LIB::GreaterStr< S >::GreaterStr ( bool  ignoreCase = false  )  [inline, explicit]

Constructor with flag to ignore the case.

Definition at line 342 of file stringutil.h.


Member Function Documentation

template<typename S = std::string>
bool OSB_LIB::GreaterStr< S >::operator() ( const S &  lhs,
const S &  rhs 
) const [inline]

The comparison function.

Definition at line 349 of file stringutil.h.

References OSB_LIB::GreaterStr< S >::ignoreCase_.


Member Data Documentation

template<typename S = std::string>
bool OSB_LIB::GreaterStr< S >::ignoreCase_ [private]

Flag to ignore the case when comparing the strings.

Definition at line 358 of file stringutil.h.

Referenced by OSB_LIB::GreaterStr< S >::operator()().


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