![]() |
OR-Tools
8.2
|
Definition at line 33 of file dynamic_permutation.h.
Public Member Functions | |
DynamicPermutation (int n) | |
int | Size () const |
void | AddMappings (const std::vector< int > &src, const std::vector< int > &dst) |
void | UndoLastMappings (std::vector< int > *undone_mapping_src) |
void | Reset () |
int | ImageOf (int i) const |
const std::vector< int > & | AllMappingsSrc () const |
int | RootOf (int i) const |
const std::set< int > & | LooseEnds () const |
std::unique_ptr< SparsePermutation > | CreateSparsePermutation () const |
std::string | DebugString () const |
|
explicit |
Definition at line 22 of file dynamic_permutation.cc.
void AddMappings | ( | const std::vector< int > & | src, |
const std::vector< int > & | dst | ||
) |
Definition at line 27 of file dynamic_permutation.cc.
|
inline |
Definition at line 67 of file dynamic_permutation.h.
std::unique_ptr< SparsePermutation > CreateSparsePermutation | ( | ) | const |
Definition at line 89 of file dynamic_permutation.cc.
std::string DebugString | ( | ) | const |
Definition at line 119 of file dynamic_permutation.cc.
|
inline |
Definition at line 114 of file dynamic_permutation.h.
|
inline |
Definition at line 83 of file dynamic_permutation.h.
void Reset | ( | ) |
Definition at line 78 of file dynamic_permutation.cc.
|
inline |
Definition at line 121 of file dynamic_permutation.h.
|
inline |
Definition at line 38 of file dynamic_permutation.h.
void UndoLastMappings | ( | std::vector< int > * | undone_mapping_src | ) |
Definition at line 49 of file dynamic_permutation.cc.