OpenDaVINCI  4.15.3
odcore::strings::StringComparator Class Reference

#include <StringComparator.h>

Public Member Functions

 StringComparator ()
 
 StringComparator (const StringComparator &obj)
 
virtual ~StringComparator ()
 
StringComparatoroperator= (const StringComparator &obj)
 
bool operator() (const string &s1, const string &s2) const
 

Detailed Description

This class compares strings for sorting.

Constructor & Destructor Documentation

odcore::strings::StringComparator::StringComparator ( )
odcore::strings::StringComparator::StringComparator ( const StringComparator obj)

Copy constructor.

Parameters
objReference to an object of this class.
odcore::strings::StringComparator::~StringComparator ( )
virtual

Member Function Documentation

bool odcore::strings::StringComparator::operator() ( const string &  s1,
const string &  s2 
) const

This method returns s1.compare(s2).

Returns
s1.compare(s2) < 0.
StringComparator & odcore::strings::StringComparator::operator= ( const StringComparator obj)

Assignment operator.

Parameters
objReference to an object of this class.
Returns
Reference to this instance.