PGROUTING
3.2
|
#include "identifiers.hpp"
Public Types | |
typedef std::set< T >::const_iterator | const_iterator |
typedef std::set< T >::iterator | iterator |
Public Member Functions | |
constructors | |
Identifiers ()=default | |
Identifiers (const Identifiers< T > &)=default | |
Identifiers (const std::set< T > &data) | |
Identifiers (const size_t number) | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Identifiers< T > &identifiers) |
Prints the set of identifiers. More... | |
set like operators | |
std::set< T > | m_ids |
size_t | size () const |
bool | empty () const |
T | front () const |
const_iterator | begin () const |
const_iterator | end () const |
void | pop_front () |
void | clear () |
iterator | begin () |
iterator | end () |
bool | has (const T other) const |
true ids() has element More... | |
bool | operator== (const Identifiers< T > &rhs) const |
true when both sets are equal More... | |
set UNION | |
Identifiers< T > & | operator+= (const Identifiers< T > &other) |
compound set UNION set More... | |
Identifiers< T > & | operator+= (const T &element) |
compound set UNION element More... | |
Identifiers< T > | operator+ (const Identifiers< T > &lhs, const Identifiers< T > &rhs) |
set UNION set More... | |
set INTERSECTION | |
Identifiers< T > & | operator*= (const Identifiers< T > &other) |
coumpound set INTERSECTION set More... | |
Identifiers< T > & | operator*= (const T &element) |
compund set INTERSECTION element More... | |
Identifiers< T > | operator* (const Identifiers< T > &lhs, const Identifiers< T > &rhs) |
set INTERSECTION More... | |
set DIFFERENCE | |
Identifiers< T > & | operator-= (const Identifiers< T > &other) |
compound set DIFFERENCE set More... | |
Identifiers< T > & | operator-= (const T &element) |
compund set DIFFERENCE element More... | |
Identifiers< T > | operator- (const Identifiers< T > &lhs, const Identifiers< T > &rhs) |
Definition at line 49 of file identifiers.hpp.
typedef std::set<T>::const_iterator Identifiers< T >::const_iterator |
Definition at line 52 of file identifiers.hpp.
typedef std::set<T>::iterator Identifiers< T >::iterator |
Definition at line 51 of file identifiers.hpp.
|
default |
|
default |
|
inline |
Definition at line 59 of file identifiers.hpp.
|
inlineexplicit |
Definition at line 67 of file identifiers.hpp.
|
inline |
Definition at line 85 of file identifiers.hpp.
|
inline |
Definition at line 81 of file identifiers.hpp.
Referenced by anonymous_namespace{contractGraph_driver.cpp}::get_shortcuts(), and pgrouting::vrp::Initial_solution::one_truck_all_orders().
|
inline |
|
inline |
Definition at line 79 of file identifiers.hpp.
Referenced by pgrouting::vrp::Initial_solution::do_while_foo(), pgrouting::contraction::Pgr_deadend< G >::doContraction(), pgrouting::contraction::Pgr_linear< G >::doContraction(), pgrouting::vrp::PD_Orders::find_best_I(), pgrouting::vrp::PD_Orders::find_best_J(), pgrouting::CH_edge::has_contracted_vertices(), pgrouting::vrp::Initial_solution::one_truck_all_orders(), and pgrouting::graph::PgrDirectedChPPGraph::setPathEdges().
|
inline |
Definition at line 86 of file identifiers.hpp.
|
inline |
Definition at line 82 of file identifiers.hpp.
Referenced by anonymous_namespace{contractGraph_driver.cpp}::get_shortcuts().
|
inline |
Definition at line 80 of file identifiers.hpp.
Referenced by pgrouting::vrp::Initial_solution::do_while_foo(), pgrouting::contraction::Pgr_deadend< G >::doContraction(), pgrouting::contraction::Pgr_linear< G >::doContraction(), pgrouting::vrp::PD_Orders::find_best_I(), pgrouting::vrp::PD_Orders::find_best_J(), pgrouting::vrp::Fleet::get_truck(), pgrouting::contraction::Pgr_linear< G >::one_cycle(), and pgrouting::vrp::Initial_solution::one_truck_all_orders().
|
inline |
true ids() has element
[in] | other | Identifier of type T |
Definition at line 98 of file identifiers.hpp.
Referenced by pgrouting::algorithms::bridges(), pgrouting::contraction::Pgr_deadend< G >::calculateVertices(), pgrouting::contraction::Pgr_deadend< G >::doContraction(), pgrouting::graph::PgrDirectedChPPGraph::EulerCircuitDFS(), pgrouting::vrp::Vehicle_pickDeliver::has_order(), pgrouting::contraction::Pgr_linear< G >::is_contractible(), and Identifiers< size_t >::operator*=().
|
inline |
coumpound set INTERSECTION set
[in] | other | is a set of identifiers of type Identifiers<T> |
Definition at line 174 of file identifiers.hpp.
|
inline |
|
inline |
compound set UNION set
[in] | other | set of identifiers |
Definition at line 131 of file identifiers.hpp.
|
inline |
compound set UNION element
[in] | element | of type T |
Definition at line 140 of file identifiers.hpp.
|
inline |
compound set DIFFERENCE set
[in] | other | is a set of identifiers of type Identifiers<T> Replaces this set with the set difference between this set and other |
Definition at line 224 of file identifiers.hpp.
|
inline |
compund set DIFFERENCE element
[in] | element | to be removed |
Definition at line 233 of file identifiers.hpp.
|
inline |
true when both sets are equal
[in] | rhs | set of identifiers to be compared |
Definition at line 107 of file identifiers.hpp.
|
inline |
Definition at line 83 of file identifiers.hpp.
Referenced by pgrouting::contraction::Pgr_linear< G >::one_cycle(), and pgrouting::vrp::Initial_solution::one_truck_all_orders().
|
inline |
Definition at line 78 of file identifiers.hpp.
Referenced by do_pgr_pickDeliverEuclidean(), pgrouting::vrp::Initial_solution::do_while_foo(), pgrouting::vrp::Fleet::get_truck(), pgrouting::CH_vertex::has_contracted_vertices(), pgrouting::contraction::Pgr_linear< G >::one_cycle(), pgrouting::vrp::operator<<(), and pgrouting::vrp::Vehicle_pickDeliver::orders_size().
|
friend |
set INTERSECTION
[in] | lhs | Identifiers |
[in] | rhs | Identifiers |
Definition at line 159 of file identifiers.hpp.
|
friend |
set UNION set
[in] | lhs | Identifiers |
[in] | rhs | Identifiers |
Definition at line 119 of file identifiers.hpp.
|
friend |
Definition at line 206 of file identifiers.hpp.
|
friend |
|
private |
Definition at line 91 of file identifiers.hpp.
Referenced by Identifiers< size_t >::begin(), Identifiers< size_t >::clear(), Identifiers< size_t >::empty(), Identifiers< size_t >::end(), Identifiers< size_t >::front(), Identifiers< size_t >::has(), Identifiers< size_t >::Identifiers(), Identifiers< size_t >::operator*=(), Identifiers< size_t >::operator+=(), Identifiers< size_t >::operator-=(), Identifiers< size_t >::operator==(), Identifiers< size_t >::pop_front(), and Identifiers< size_t >::size().