#include <munkres.h>
Public Member Functions | |
int | assign (ordered_pair *matching) |
void | load_weights (std::vector< std::vector< int > > x) |
munkres (void) | |
void | set_diag (bool a) |
~munkres (void) | |
Private Member Functions | |
void | diagnostic (int a) const |
bool | find_a_matching (void) |
int | find_prime_column (int c) |
int | find_prime_row (int r) |
int | find_star_column (int c) |
int | find_star_row (int r) |
void | init (void) |
void | step1 (void) |
void | step2 (void) |
bool | step3 (void) |
bool | step4 (void) |
bool | step5 (int, int) |
bool | step6 () |
Private Attributes | |
std::vector< std::vector< cell > > | cell_array |
std::vector< bool > | column_cov |
std::vector< bool > | column_starred |
bool | diag_on |
int | num_columns |
int | num_rows |
std::vector< bool > | row_cov |
std::vector< bool > | row_starred |
std::vector< std::vector< int > > | weight_array |
munkres::munkres | ( | void | ) |
Definition at line 29 of file munkres.cpp.
munkres::~munkres | ( | void | ) |
Definition at line 35 of file munkres.cpp.
int munkres::assign | ( | ordered_pair * | matching | ) |
Definition at line 111 of file munkres.cpp.
void munkres::diagnostic | ( | int | a | ) | const [private] |
Definition at line 709 of file munkres.cpp.
bool munkres::find_a_matching | ( | void | ) | [private] |
Definition at line 223 of file munkres.cpp.
int munkres::find_prime_column | ( | int | c | ) | [private] |
Definition at line 205 of file munkres.cpp.
int munkres::find_prime_row | ( | int | r | ) | [private] |
Definition at line 188 of file munkres.cpp.
int munkres::find_star_column | ( | int | c | ) | [private] |
Definition at line 171 of file munkres.cpp.
int munkres::find_star_row | ( | int | r | ) | [private] |
Definition at line 153 of file munkres.cpp.
void munkres::init | ( | void | ) | [private] |
void munkres::load_weights | ( | std::vector< std::vector< int > > | x | ) |
Definition at line 40 of file munkres.cpp.
void munkres::set_diag | ( | bool | a | ) | [inline] |
void munkres::step1 | ( | void | ) | [private] |
Definition at line 235 of file munkres.cpp.
void munkres::step2 | ( | void | ) | [private] |
Definition at line 300 of file munkres.cpp.
bool munkres::step3 | ( | void | ) | [private] |
Definition at line 349 of file munkres.cpp.
bool munkres::step4 | ( | void | ) | [private] |
Definition at line 401 of file munkres.cpp.
bool munkres::step5 | ( | int | r, |
int | c | ||
) | [private] |
Definition at line 557 of file munkres.cpp.
bool munkres::step6 | ( | ) | [private] |
Definition at line 669 of file munkres.cpp.
std::vector<std::vector<cell> > munkres::cell_array [private] |
std::vector<bool> munkres::column_cov [private] |
std::vector<bool> munkres::column_starred [private] |
bool munkres::diag_on [private] |
int munkres::num_columns [private] |
int munkres::num_rows [private] |
std::vector<bool> munkres::row_cov [private] |
std::vector<bool> munkres::row_starred [private] |
std::vector<std::vector<int> > munkres::weight_array [private] |