CACAO
Public Member Functions
cacao::UnionFind< T > Class Template Referenceabstract
Inheritance diagram for cacao::UnionFind< T >:
cacao::UnionFindImpl< T >

Public Member Functions

virtual void make_set (T s)=0
 Create a new set. More...
 
virtual T set_union (T r, T s)=0
 union the set that contains r with the set that contains s More...
 
virtual T find (T x)=0
 find the repres to of a given element x More...
 

Detailed Description

template<typename T>
class cacao::UnionFind< T >

Definition at line 35 of file UnionFind.hpp.

Member Function Documentation

template<typename T >
virtual T cacao::UnionFind< T >::find ( x)
pure virtual

find the repres to of a given element x

Parameters
xan element of the union find ds
Returns
the repres of x

Implemented in cacao::UnionFindImpl< T >.

template<typename T >
virtual void cacao::UnionFind< T >::make_set ( s)
pure virtual

Create a new set.

Parameters
selements

Implemented in cacao::UnionFindImpl< T >.

template<typename T >
virtual T cacao::UnionFind< T >::set_union ( r,
s 
)
pure virtual

union the set that contains r with the set that contains s

Parameters
rrepres of a set
srepres of a set
Returns
the new repres

Implemented in cacao::UnionFindImpl< T >.


The documentation for this class was generated from the following file: