Mapper  0.9.0
API documentation
Public Member Functions | Static Public Member Functions | List of all members
OpenOrienteering::PathPartVector Class Reference

#include <object.h>

Inheritance diagram for OpenOrienteering::PathPartVector:
Inheritance graph
[legend]
Collaboration diagram for OpenOrienteering::PathPartVector:
Collaboration graph
[legend]

Public Member Functions

PathPartVectoroperator= (const PathPartVector &)=delete
 This is dangerous when copying objects (which own a PathPartVector). More...
 

Static Public Member Functions

static bool compareEndIndex (const PathPart &part, VirtualPath::size_type index)
 Returns true if the part's end_index is lower than index. More...
 

Member Function Documentation

◆ compareEndIndex()

bool OpenOrienteering::PathPartVector::compareEndIndex ( const PathPart part,
VirtualPath::size_type  index 
)
static

Returns true if the part's end_index is lower than index.

This function can be used for doing a binary search on a sorted PathPartVector.

See also
std::lower_bound()

◆ operator=()

PathPartVector& OpenOrienteering::PathPartVector::operator= ( const PathPartVector )
delete

This is dangerous when copying objects (which own a PathPartVector).

Objects need to deal with the PathParts explicitly, at least as long as the PathPart contains distinct references to the object and to the coordinates.

Other use cases may consider using std::vector<PathPart>.


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