|
Jlm
|
#include <disjointset.hpp>
Classes | |
| class | MemberIterator |
| class | Set |
| class | SetIterator |
Public Member Functions | |
| constexpr | DisjointSet ()=default |
| DisjointSet (const std::vector< T > &elements) | |
| DisjointSet (const DisjointSet &other) | |
| DisjointSet (DisjointSet &&other) | |
| DisjointSet & | operator= (const DisjointSet &other) |
| DisjointSet & | operator= (DisjointSet &&other) |
| void | insert (const std::vector< T > &elements) |
| const Set * | insert (const T &element) |
| SetIterator | begin () const |
| SetIterator | end () const |
| bool | empty () const noexcept |
| size_t | nvalues () const noexcept |
| size_t | nsets () const noexcept |
| void | clear () |
| const Set * | find (const T &element) const noexcept |
| const Set * | find_or_insert (const T &element) noexcept |
| const Set * | merge (const T &e1, const T &e2) |
Private Member Functions | |
| bool | contains (const T &element) const |
Private Attributes | |
| std::unordered_set< const Set * > | roots_ |
| std::unordered_map< T, std::unique_ptr< Set > > | values_ |
Definition at line 20 of file disjointset.hpp.
|
constexprdefault |
|
inlineexplicit |
Definition at line 249 of file disjointset.hpp.
|
inline |
Definition at line 254 of file disjointset.hpp.
|
inline |
Definition at line 259 of file disjointset.hpp.
|
inline |
Definition at line 308 of file disjointset.hpp.
|
inline |
Definition at line 338 of file disjointset.hpp.
|
inlineprivate |
Definition at line 400 of file disjointset.hpp.
|
inlinenoexcept |
Definition at line 320 of file disjointset.hpp.
|
inline |
Definition at line 314 of file disjointset.hpp.
|
inlinenoexcept |
Definition at line 348 of file disjointset.hpp.
|
inlinenoexcept |
Definition at line 361 of file disjointset.hpp.
|
inline |
Definition at line 289 of file disjointset.hpp.
|
inline |
Definition at line 296 of file disjointset.hpp.
|
inline |
Definition at line 373 of file disjointset.hpp.
|
inlinenoexcept |
Definition at line 332 of file disjointset.hpp.
|
inlinenoexcept |
Definition at line 326 of file disjointset.hpp.
|
inline |
Definition at line 265 of file disjointset.hpp.
|
inline |
Definition at line 277 of file disjointset.hpp.
|
private |
Definition at line 405 of file disjointset.hpp.
|
private |
Definition at line 406 of file disjointset.hpp.