CartoType C++ API 8.8-7-gb35e4dc71
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | List of all members
CartoTypeCore::TimeAndDistanceMatrix Class Reference

#include <cartotype_navigation.h>

Public Member Functions

 TimeAndDistanceMatrix ()=default
 
 TimeAndDistanceMatrix (TimeAndDistanceMatrix &)=default
 
 TimeAndDistanceMatrix (TimeAndDistanceMatrix &&)=default
 
 TimeAndDistanceMatrix (size_t aFromCount, size_t aToCount, std::vector< uint32_t > &&aMatrix)
 
TimeAndDistanceMatrixoperator= (const TimeAndDistanceMatrix &)=default
 
TimeAndDistanceMatrixoperator= (TimeAndDistanceMatrix &&)=default
 
size_t FromCount () const
 
size_t ToCount () const
 
uint32_t Time (size_t aFromIndex, size_t aToIndex) const
 
uint32_t Distance (size_t aFromIndex, size_t aToIndex) const
 

Detailed Description

A matrix of route times and distances between sets of points.

Constructor & Destructor Documentation

◆ TimeAndDistanceMatrix() [1/4]

CartoTypeCore::TimeAndDistanceMatrix::TimeAndDistanceMatrix ( )
default

The default constructor.

◆ TimeAndDistanceMatrix() [2/4]

CartoTypeCore::TimeAndDistanceMatrix::TimeAndDistanceMatrix ( TimeAndDistanceMatrix )
default

The copy constructor

◆ TimeAndDistanceMatrix() [3/4]

CartoTypeCore::TimeAndDistanceMatrix::TimeAndDistanceMatrix ( TimeAndDistanceMatrix &&  )
default

The move constructor.

◆ TimeAndDistanceMatrix() [4/4]

CartoTypeCore::TimeAndDistanceMatrix::TimeAndDistanceMatrix ( size_t  aFromCount,
size_t  aToCount,
std::vector< uint32_t > &&  aMatrix 
)
inline

Constructs the object from from-count, to-count and raw matrix.

Member Function Documentation

◆ Distance()

uint32_t CartoTypeCore::TimeAndDistanceMatrix::Distance ( size_t  aFromIndex,
size_t  aToIndex 
) const
inline

Returns the distance in metres along the best route from one of the 'from' points to one of the 'to' points.

◆ FromCount()

size_t CartoTypeCore::TimeAndDistanceMatrix::FromCount ( ) const
inline

Returns the number of 'from' points.

◆ operator=() [1/2]

TimeAndDistanceMatrix & CartoTypeCore::TimeAndDistanceMatrix::operator= ( const TimeAndDistanceMatrix )
default

The copy assignment operator

◆ operator=() [2/2]

TimeAndDistanceMatrix & CartoTypeCore::TimeAndDistanceMatrix::operator= ( TimeAndDistanceMatrix &&  )
default

The move assignment operator.

◆ Time()

uint32_t CartoTypeCore::TimeAndDistanceMatrix::Time ( size_t  aFromIndex,
size_t  aToIndex 
) const
inline

Returns the time in seconds taken to travel on the best route from one of the 'from' points to one of the 'to' points.

◆ ToCount()

size_t CartoTypeCore::TimeAndDistanceMatrix::ToCount ( ) const
inline

Returns the number of 'to' points.


The documentation for this class was generated from the following file: