USGS

Isis 3.0 Developer's Reference (API)

Home

Isis::NoCaseStringCompare< K > Struct Template Reference

Provides a case insensitive string comparison. More...

#include <CollectorMap.h>

List of all members.

Public Member Functions

bool operator() (const K &v1, const K &v2) const
 Compares v1 and v2 as case insensitive strings, and returns true of v1 is less than v2 (as those strings).

Detailed Description

template<typename K>
struct Isis::NoCaseStringCompare< K >

Provides a case insensitive string comparison.

This string comparison functor object compares two strings ignoring case. Use this policy when your key into the collector map is a string and you want to ignore case when finding elements in the collection.


Member Function Documentation

template<typename K >
bool Isis::NoCaseStringCompare< K >::operator() ( const K &  v1,
const K &  v2 
) const [inline]

Compares v1 and v2 as case insensitive strings, and returns true of v1 is less than v2 (as those strings).

Parameters:
v1 Input constant
v2 Input constant
Returns:
bool Returns true if v1 is less than v2 in string format

References Isis::IString::DownCase().


The documentation for this struct was generated from the following file: