OSB_LIB::LessStr< S > Struct Template Reference

Inheritance diagram for OSB_LIB::LessStr< S >:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

template<typename S = std::string>
struct OSB_LIB::LessStr< 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 311 of file stringutil.h.

Public Member Functions

Private Attributes


Constructor & Destructor Documentation

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

Constructor with flag to ignore the case.

Definition at line 313 of file stringutil.h.


Member Function Documentation

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

The comparison function.

Definition at line 320 of file stringutil.h.

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


Member Data Documentation

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

Flag to ignore the case when comparing the strings.

Definition at line 329 of file stringutil.h.

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


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