#include <Split.h>
Public Member Functions | |
Split (Input &i) | |
~Split () | |
void | Evolve () |
Protected Member Functions | |
std::ostream & | Write (std::ostream &) const |
Split::Split | ( | Input & | i | ) | [inline] |
Calls the base constructor and prints some information if needed.
Split::~Split | ( | ) | [inline] |
References Optimizer::m_solution.
void Split::Evolve | ( | ) | [virtual] |
Just splits the input (in original order) according to target size, i.e., select file by file until fit the specified volume.
Implements Optimizer.
References BinSet::AddBin(), Bin::AddItem(), Optimizer::m_files, Optimizer::m_params, Optimizer::m_solution, Params::m_target, and Params::m_verbose.
std::ostream& Split::Write | ( | std::ostream & | ) | const [protected, virtual] |
Writes some information (like algorithm name and parameters) in ostream object (usually cout).
Reimplemented from Optimizer.