MapLink Pro 11.2
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSLNetwork::Query Class Reference

Detailed Description

This query object is returned by the find(...) methods. It provides read-only information about a query made on the network.

The client is responsible for deleting this object (through the destroy() method).

Public Member Functions

void destroy ()
 
const TSLNodenode (int N) const
 
const TSLLinklink (int N) const
 
const TSLLinklink (int N, double &sqDist) const
 
int size_nodes () const
 
int size_links () const
 

Member Function Documentation

◆ destroy()

void TSLNetwork::Query::destroy ( )

Destroy the object.

◆ link() [1/2]

const TSLLink * TSLNetwork::Query::link ( int N) const

◆ link() [2/2]

const TSLLink * TSLNetwork::Query::link ( int N,
double & sqDist ) const

Overloaded function. Used to retrieve link and square distance elements from the stored list.

Parameters
Nthe element index to return, should be less than size_links.
sqDistthe square distance (in TMCs) of the link from the search point. (-1 if not stored for the link).

◆ node()

const TSLNode * TSLNetwork::Query::node ( int N) const

◆ size_links()

int TSLNetwork::Query::size_links ( ) const

◆ size_nodes()

int TSLNetwork::Query::size_nodes ( ) const