![]() |
vrpRouting
0.3
|
#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 |
T | back () 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 51 of file identifiers.hpp.
typedef std::set<T>::const_iterator Identifiers< T >::const_iterator |
Definition at line 54 of file identifiers.hpp.
typedef std::set<T>::iterator Identifiers< T >::iterator |
Definition at line 53 of file identifiers.hpp.
|
default |
|
default |
|
inlineexplicit |
Definition at line 61 of file identifiers.hpp.
|
inlineexplicit |
Definition at line 69 of file identifiers.hpp.
|
inline |
Definition at line 80 of file identifiers.hpp.
Referenced by vrprouting::problem::Fleet::get_truck().
|
inline |
Definition at line 87 of file identifiers.hpp.
|
inline |
Definition at line 81 of file identifiers.hpp.
Referenced by vrprouting::base::Base_Matrix::Base_Matrix(), vrprouting::initialsol::simple::Initial_solution::one_truck_all_orders(), and vrprouting::base::Base_Matrix::set_ids().
|
inline |
Definition at line 86 of file identifiers.hpp.
|
inline |
Definition at line 78 of file identifiers.hpp.
Referenced by anonymous_namespace{tabu.cpp}::are_all_served(), vrprouting::initialsol::simple::Initial_solution::do_while_foo(), vrprouting::problem::Orders::find_best_I(), vrprouting::problem::Orders::find_best_I_J(), vrprouting::problem::Orders::find_best_J(), vrprouting::initialsol::tabu::Initial_solution::Initial_solution(), vrprouting::initialsol::simple::Initial_solution::one_truck_all_orders(), and vrprouting::initialsol::tabu::Initial_solution::process_unassigned().
|
inline |
Definition at line 88 of file identifiers.hpp.
|
inline |
Definition at line 82 of file identifiers.hpp.
Referenced by vrprouting::base::Base_Matrix::Base_Matrix(), and vrprouting::base::Base_Matrix::set_ids().
|
inline |
Definition at line 79 of file identifiers.hpp.
Referenced by vrprouting::initialsol::simple::Initial_solution::do_while_foo(), vrprouting::problem::Orders::find_best_I(), vrprouting::problem::Orders::find_best_I_J(), vrprouting::problem::Orders::find_best_J(), vrprouting::problem::Fleet::get_truck(), and vrprouting::initialsol::simple::Initial_solution::one_truck_all_orders().
|
inline |
true ids() has element
[in] | other | Identifier of type T |
Definition at line 100 of file identifiers.hpp.
Referenced by do_optimize(), do_pickDeliver(), vrprouting::problem::Vehicle_pickDeliver::has_order(), Identifiers< size_t >::operator*=(), vrprouting::problem::Vehicle_pickDeliver::set_initial_solution(), anonymous_namespace{optimize_driver.cpp}::subdivide_processing(), and vrprouting::optimizers::tabu::Optimize::swap_between_routes().
|
inline |
coumpound set INTERSECTION set
[in] | other | is a set of identifiers of type Identifiers<T> |
Definition at line 176 of file identifiers.hpp.
|
inline |
|
inline |
compound set UNION set
[in] | other | set of identifiers |
Definition at line 133 of file identifiers.hpp.
|
inline |
compound set UNION element
[in] | element | of type T |
Definition at line 142 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 226 of file identifiers.hpp.
|
inline |
compund set DIFFERENCE element
[in] | element | to be removed |
Definition at line 235 of file identifiers.hpp.
|
inline |
|
inline |
Definition at line 84 of file identifiers.hpp.
Referenced by vrprouting::initialsol::simple::Initial_solution::one_truck_all_orders().
|
inline |
Definition at line 77 of file identifiers.hpp.
Referenced by vrprouting::problem::Fleet::clean(), do_optimize(), vrprouting::initialsol::simple::Initial_solution::do_while_foo(), vrprouting::problem::Fleet::get_truck(), vrprouting::problem::operator<<(), vrprouting::problem::Vehicle_pickDeliver::orders_size(), and anonymous_namespace{optimize_driver.cpp}::subdivide_processing().
|
friend |
set INTERSECTION
[in] | lhs | Identifiers |
[in] | rhs | Identifiers |
Definition at line 161 of file identifiers.hpp.
|
friend |
set UNION set
[in] | lhs | Identifiers |
[in] | rhs | Identifiers |
Definition at line 121 of file identifiers.hpp.
|
friend |
Definition at line 208 of file identifiers.hpp.
|
friend |
|
private |
Definition at line 93 of file identifiers.hpp.
Referenced by Identifiers< size_t >::back(), 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().