CACAO
|
Public Member Functions | |
UnionFindImpl (T &end) | |
virtual void | make_set (T s) |
Create a new set. More... | |
virtual T | set_union (T r, T s) |
union the set that contains r with the set that contains s More... | |
virtual T | find (T x) |
find the repres to of a given element x More... | |
T & | end () |
Private Types | |
typedef std::set< T > | SetTy |
typedef std::set< SetTy > | SetSetTy |
Private Member Functions | |
SetSetTy::iterator | find_it (T x) |
Private Attributes | |
SetSetTy | sets |
T & | my_end |
Definition at line 63 of file UnionFind.hpp.
|
private |
Definition at line 66 of file UnionFind.hpp.
|
private |
Definition at line 65 of file UnionFind.hpp.
|
inline |
Definition at line 81 of file UnionFind.hpp.
|
inline |
Definition at line 124 of file UnionFind.hpp.
|
inlinevirtual |
find the repres to of a given element x
x | an element of the union find ds |
Implements cacao::UnionFind< T >.
Definition at line 116 of file UnionFind.hpp.
|
inlineprivate |
Definition at line 70 of file UnionFind.hpp.
|
inlinevirtual |
Create a new set.
s | elements |
Implements cacao::UnionFind< T >.
Definition at line 83 of file UnionFind.hpp.
|
inlinevirtual |
union the set that contains r with the set that contains s
r | repres of a set |
s | repres of a set |
Implements cacao::UnionFind< T >.
Definition at line 91 of file UnionFind.hpp.
|
private |
Definition at line 68 of file UnionFind.hpp.
|
private |
Definition at line 67 of file UnionFind.hpp.