![]() |
Mapper
0.9.0
API documentation
|
The VirtualCoordVector class provides read-only access to possible distinct coordinates and flags. More...
#include <virtual_coord_vector.h>
Public Types | |
using | size_type = VirtualFlagsVector::size_type |
A reaonably sized unsigned integer type for map coord vector sizes and indexes. More... | |
Public Member Functions | |
VirtualCoordVector (const VirtualCoordVector &prototype)=default | |
Creates another accessor for the data managed by the given prototype. More... | |
VirtualCoordVector (const MapCoordVector &coords) | |
Creates an accessor for the flags and coordinates in coords (case a). More... | |
VirtualCoordVector (const MapCoordVector &flags, const MapCoordVectorF &coords) | |
Creates an accessor for the given flags and the coordinates in coords (case b). More... | |
VirtualCoordVector & | operator= (const VirtualCoordVector &rhs)=default |
Causes this accessor to serve the same data as rhs. More... | |
bool | empty () const |
size_type | size () const |
MapCoordF | operator[] (size_type index) const |
MapCoordF | back () const |
Public Attributes | |
VirtualFlagsVector | flags |
An read-only accessor to the flags which provides an operator[](size_type). More... | |
The VirtualCoordVector class provides read-only access to possible distinct coordinates and flags.
Some algorithms in Mapper need to be applied not only to original integer coordinate lists, but sometimes also to transformed floating-point coordinates sharing the same flags. This class provides uniform access to coordinates and flags in two cases:
(a) Coordinates and flags coming from the same MapCoordVector, and
(b) Coordinates coming from a MapCoordVectorF, and flags from a MapCoordVector.
A reaonably sized unsigned integer type for map coord vector sizes and indexes.
|
default |
Creates another accessor for the data managed by the given prototype.
|
inlineexplicit |
Creates an accessor for the flags and coordinates in coords (case a).
|
inlineexplicit |
Creates an accessor for the given flags and the coordinates in coords (case b).
|
inline |
|
inline |
|
default |
Causes this accessor to serve the same data as rhs.
|
inline |
VirtualFlagsVector OpenOrienteering::VirtualCoordVector::flags |
An read-only accessor to the flags which provides an operator[](size_type).