![]() |
MapLink Pro 11.2
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
Base class for link comparator objects.
When clients wish to join two tiled networks together, they must provide a comparator object which defines both a sort order (through operator()), an is Equal() method which returns true when two links are the same and a make() method. The make() method is used to construct a link from segments which cross tile boundaries.
For example:
class MyLinkCmp : public TSLLinkCmp { virtual bool operator()(const TSLLink& link1, const TSLLink& link2) const { // Do whatever is appropriate return ???; } };
Public Member Functions | |
TSLLinkCmp () | |
virtual | ~TSLLinkCmp () |
virtual bool | operator() (const TSLLink &link1, const TSLLink &link2) const =0 |
virtual bool | isEqual (const TSLLink &link1, const TSLLink &link2) const =0 |
virtual TSLLink | make (const TSLLink *linkSegments[], int N) const =0 |
|
inline |
Default constructor.
|
inlinevirtual |
Virtual destructor.
|
pure virtual |
Compares two links.
link1,link2 | The two links. |