|
Frobby
0.9.5
|
#include <Partition.h>
Public Member Functions | |
| Partition () | |
| Partition (const Partition &partition) | |
| ~Partition () | |
| void | reset (size_t size) |
| bool | join (size_t i, size_t j) |
| size_t | getSize () const |
| size_t | getSetCount () const |
| size_t | getSetSize (size_t set) const |
| size_t | getRoot (size_t i) const |
| void | addToSet (size_t i) |
| size_t | getSizeOfClassOf (size_t i) const |
| void | print (FILE *file) const |
Private Member Functions | |
| Partition & | operator= (const Partition &) |
Private Attributes | |
| int * | _partitions |
| size_t | _size |
| size_t | _capacity |
| size_t | _setCount |
Definition at line 20 of file Partition.h.
| Partition::Partition | ( | ) |
Definition at line 20 of file Partition.cpp.
| Partition::Partition | ( | const Partition & | partition | ) |
Definition at line 26 of file Partition.cpp.
| Partition::~Partition | ( | ) |
Definition at line 35 of file Partition.cpp.
| void Partition::addToSet | ( | size_t | i | ) |
Definition at line 111 of file Partition.cpp.
| size_t Partition::getRoot | ( | size_t | i | ) | const |
Definition at line 102 of file Partition.cpp.
| size_t Partition::getSetCount | ( | ) | const |
Definition at line 72 of file Partition.cpp.
| size_t Partition::getSetSize | ( | size_t | set | ) | const |
Definition at line 88 of file Partition.cpp.
| size_t Partition::getSize | ( | ) | const |
Definition at line 117 of file Partition.cpp.
| size_t Partition::getSizeOfClassOf | ( | size_t | i | ) | const |
Definition at line 84 of file Partition.cpp.
| bool Partition::join | ( | size_t | i, |
| size_t | j | ||
| ) |
Definition at line 51 of file Partition.cpp.
| void Partition::print | ( | FILE * | file | ) | const |
Definition at line 121 of file Partition.cpp.
| void Partition::reset | ( | size_t | size | ) |
Definition at line 39 of file Partition.cpp.
|
private |
Definition at line 50 of file Partition.h.
|
private |
Definition at line 48 of file Partition.h.
|
private |
Definition at line 52 of file Partition.h.
|
private |
Definition at line 49 of file Partition.h.