|
FCT
|
#include <UnionFind.h>

Public 成员函数 | |
| T | find (const T &x) const |
| bool | unite (const T &x, const T &y) |
| std::unordered_map< T, std::vector< T > > | getGroups () const |
| bool | connected (const T &x, const T &y) const |
| void | shared (const T &x, const ShareType &data) |
| std::optional< ShareType > | shared (const T &x) const |
Private 属性 | |
| std::unordered_map< T, T > | m_parent |
| std::unordered_map< T, int > | m_rank |
| std::conditional_t<!std::is_void_v< ShareType >, std::unordered_map< T, std::optional< ShareType > >, char > | m_sharedData |
在文件 UnionFind.h 第 10 行定义.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
mutableprivate |
在文件 UnionFind.h 第 12 行定义.
|
mutableprivate |
在文件 UnionFind.h 第 13 行定义.
|
mutableprivate |
在文件 UnionFind.h 第 16 行定义.