angel
mercurial changeset:
|
Graph-independent rerouting. More...
#include <angel_types.hpp>
Public Member Functions | |
Rerouting () | |
Rerouting (const c_graph_t::edge_t e, const c_graph_t::edge_t pivot_e, bool isPre, const c_graph_t &angelLCG) | |
Rerouting (const edge_reroute_t &er, const c_graph_t &angelLCG) | |
std::string | debug () const |
bool | isPre () const |
c_graph_t::edge_t | getE (const c_graph_t &angelLCG) const |
c_graph_t::edge_t | getPivotE (const c_graph_t &angelLCG) const |
edge_reroute_t | getER (const c_graph_t &angelLCG) const |
unsigned int | getI () const |
unsigned int | getJ () const |
unsigned int | getK () const |
bool | operator== (const Rerouting &anotherRerouting) const |
Private Member Functions | |
void | init (const c_graph_t::edge_t &e, const c_graph_t::edge_t &pivot_e, bool isPre, const c_graph_t &angelLCG) |
Private Attributes | |
unsigned int | i |
unsigned int | j |
unsigned int | k |
bool | pre |
Graph-independent rerouting.
Class for representing a rerouting. The relevant edges are represented by the unsigned ints that correspond to their source and target. This allows us to represent a rerouting independently of a particular graph instance.
Definition at line 780 of file angel_types.hpp.
Definition at line 540 of file angel_types.cpp.
angel::Rerouting::Rerouting | ( | const c_graph_t::edge_t | e, |
const c_graph_t::edge_t | pivot_e, | ||
bool | isPre, | ||
const c_graph_t & | angelLCG | ||
) |
Definition at line 543 of file angel_types.cpp.
References init().
angel::Rerouting::Rerouting | ( | const edge_reroute_t & | er, |
const c_graph_t & | angelLCG | ||
) |
Definition at line 550 of file angel_types.cpp.
References angel::edge_reroute_t::e, init(), angel::edge_reroute_t::isPre, and angel::edge_reroute_t::pivot_e.
std::string angel::Rerouting::debug | ( | ) | const |
Definition at line 555 of file angel_types.cpp.
Referenced by angel::Transformation::debug().
c_graph_t::edge_t angel::Rerouting::getE | ( | const c_graph_t & | angelLCG | ) | const |
Definition at line 566 of file angel_types.cpp.
References angel::getEdge(), i, and k.
Referenced by getER().
edge_reroute_t angel::Rerouting::getER | ( | const c_graph_t & | angelLCG | ) | const |
Definition at line 576 of file angel_types.cpp.
References getE(), getPivotE(), and pre.
Referenced by xaifBoosterCrossCountryInterface::compute_partial_transformation_sequence(), and angel::transformation_effect().
unsigned int angel::Rerouting::getI | ( | ) | const |
unsigned int angel::Rerouting::getJ | ( | ) | const |
unsigned int angel::Rerouting::getK | ( | ) | const |
c_graph_t::edge_t angel::Rerouting::getPivotE | ( | const c_graph_t & | angelLCG | ) | const |
Definition at line 571 of file angel_types.cpp.
References angel::getEdge(), i, j, k, and pre.
Referenced by getER().
void angel::Rerouting::init | ( | const c_graph_t::edge_t & | e, |
const c_graph_t::edge_t & | pivot_e, | ||
bool | isPre, | ||
const c_graph_t & | angelLCG | ||
) | [private] |
Definition at line 602 of file angel_types.cpp.
References i, isPre(), j, k, pre, and THROW_EXCEPT_MACRO.
Referenced by Rerouting().
bool angel::Rerouting::isPre | ( | ) | const |
Definition at line 562 of file angel_types.cpp.
References pre.
Referenced by xaifBoosterCrossCountryInterface::compute_partial_transformation_sequence(), init(), and operator==().
bool angel::Rerouting::operator== | ( | const Rerouting & | anotherRerouting | ) | const |
unsigned int angel::Rerouting::i [private] |
Definition at line 816 of file angel_types.hpp.
Referenced by debug(), getE(), getI(), getPivotE(), and init().
unsigned int angel::Rerouting::j [private] |
Definition at line 816 of file angel_types.hpp.
Referenced by debug(), getJ(), getPivotE(), and init().
unsigned int angel::Rerouting::k [private] |
Definition at line 816 of file angel_types.hpp.
Referenced by debug(), getE(), getK(), getPivotE(), and init().
bool angel::Rerouting::pre [private] |
Definition at line 817 of file angel_types.hpp.
Referenced by debug(), getER(), getPivotE(), init(), and isPre().