MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches

Detailed Description

Base class for comparator objects.

When clients wish to sort objects within a TSLObjectDataLayer, they must provide a comparator object which defines the sort order. For example:

typedef TSLDynamicDataObject DDO;

class My_DDO_Cmp : public TSLCmp { bool compare (const DDO* x, const DDO* y) const { return x->??? < y->???; } };

Public Member Functions

virtual ~TSLCmp ()
 
 TSLCmp ()
 
bool operator() (const TSLDynamicDataObject *x, const TSLDynamicDataObject *y) const
 

Constructor & Destructor Documentation

◆ TSLCmp()

TSLCmp::TSLCmp ( )
inline

Class TSLCmp

◆ ~TSLCmp()

virtual TSLCmp::~TSLCmp ( )
inlinevirtual

Member Function Documentation

◆ operator()()

bool TSLCmp::operator() ( const TSLDynamicDataObject * x,
const TSLDynamicDataObject * y ) const
inline

Defines the sort order of TSLDynamicDataObjects (DDO).

Parameters
(x,y)The 2 DDO's to be compared.
Returns
true if x < y, false otherwise.