Accessor::StructureNameLessThan Struct Reference


Detailed Description

Functor for Structure ordering in a std::set.

This functor compares Structures to keep them ordered by name in a std::set.

#include <adskDataAccessor.h>

List of all members.

Public Member Functions

bool operator() (const Structure *lhs, const Structure *rhs) const
 Comparison operator.

Member Function Documentation

bool operator() ( const Structure lhs,
const Structure rhs 
) const

Comparison operator.

The comparison does not support null structure pointers so clients must ensure no null structures get added to the set.

Parameters:
[in]lhsLeft-hand side operand of the a<b comparison.
[in]rhsRight-hand side operand of the a<b comparison.
Exceptions:
std::invalid_argumentThrown if a null structure is passed to the comparator.