tipc
A TIP to LLVM compiler
|
Specialized implementation of a union-find data structure tailored to work with TipTypes wrapped in shared pointers. More...
#include <UnionFind.h>
Public Member Functions | |
UnionFind ()=default | |
UnionFind (std::vector< std::shared_ptr< TipType >> seed) | |
~UnionFind ()=default | |
void | add (std::vector< std::shared_ptr< TipType >> seed) |
add additional types to the union find structure More... | |
std::shared_ptr< TipType > | find (std::shared_ptr< TipType > t1) |
void | quick_union (std::shared_ptr< TipType > t1, std::shared_ptr< TipType > t2) |
bool | connected (std::shared_ptr< TipType > t1, std::shared_ptr< TipType > t2) |
Friends | |
std::ostream & | operator<< (std::ostream &os, const UnionFind &obj) |
Specialized implementation of a union-find data structure tailored to work with TipTypes wrapped in shared pointers.
|
default |
|
explicit |
|
default |
void UnionFind::add | ( | std::vector< std::shared_ptr< TipType >> | seed | ) |
add additional types to the union find structure
|
friend |