Public Member Functions | Private Attributes
universe Class Reference

#include <disjoint-set.h>

List of all members.

Public Member Functions

int find (int x)
void join (int x, int y)
int num_sets () const
int size (int x) const
 universe (int elements)
 ~universe ()

Private Attributes

uni_eltelts
int num

Detailed Description

Definition at line 30 of file disjoint-set.h.


Constructor & Destructor Documentation

universe::universe ( int  elements)

Definition at line 44 of file disjoint-set.h.

Definition at line 54 of file disjoint-set.h.


Member Function Documentation

int universe::find ( int  x)

Definition at line 58 of file disjoint-set.h.

void universe::join ( int  x,
int  y 
)

Definition at line 66 of file disjoint-set.h.

int universe::num_sets ( ) const [inline]

Definition at line 37 of file disjoint-set.h.

int universe::size ( int  x) const [inline]

Definition at line 36 of file disjoint-set.h.


Member Data Documentation

uni_elt* universe::elts [private]

Definition at line 40 of file disjoint-set.h.

int universe::num [private]

Definition at line 41 of file disjoint-set.h.


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


iri_leaf_segmentation
Author(s): Sergi Foix
autogenerated on Fri Dec 6 2013 20:27:24