#include <Optimizer.h>
Public Member Functions | |
Bin & | operator[] (int i) |
Returns the ith bin. | |
const Bin & | operator[] (int i) const |
Returns the ith bin; const version. | |
Bin & | AddBin (Params::Size_t capacity) |
Add a bin of capacity capacity . | |
Bin & | AddBin (const Bin &b) |
Add the bin b . | |
std::vector< Bin >::iterator | begin () |
Pointer (iterator) to the first bin of m_bins (begin()). | |
std::vector< Bin >::iterator | end () |
Pointer (iterator) to the last bin plus one of m_bins (end()). | |
void | DelBin (int i) |
Remove the ith bin. | |
void | DelAllBins () |
Remove all bins (clear). | |
unsigned int | Count () const |
Returns the number of bins. | |
bool | operator!= (const BinSet &bs) const |
Verify if two bins are different. | |
bool | operator== (const BinSet &bs) const |
Verify if two bins are equal. | |
Private Attributes | |
std::vector< Bin > | m_bins |
const Bin& BinSet::operator[] | ( | int | i | ) | const [inline] |
Bin& BinSet::AddBin | ( | Params::Size_t | capacity | ) | [inline] |
Add a bin of capacity capacity
.
References m_bins.
Referenced by Split::Evolve(), and BestFit::Evolve().
std::vector<Bin>::iterator BinSet::begin | ( | ) | [inline] |
Pointer (iterator) to the first bin of m_bins (begin()).
References m_bins.
Referenced by Optimizer::Output().
std::vector<Bin>::iterator BinSet::end | ( | ) | [inline] |
Pointer (iterator) to the last bin plus one of m_bins (end()).
References m_bins.
Referenced by Optimizer::Output().
void BinSet::DelBin | ( | int | i | ) | [inline] |
void BinSet::DelAllBins | ( | ) | [inline] |
unsigned int BinSet::Count | ( | ) | const [inline] |
Returns the number of bins.
References m_bins.
Referenced by Optimizer::Evaluate(), GeneticAlgorithm::Evaluate(), BestFit::Evolve(), operator==(), and Optimizer::Output().
bool BinSet::operator!= | ( | const BinSet & | bs | ) | const [inline] |
Verify if two bins are different.
bool BinSet::operator== | ( | const BinSet & | bs | ) | const [inline] |
std::vector<Bin> BinSet::m_bins [private] |
Vector of bins.
Referenced by AddBin(), begin(), Count(), DelAllBins(), DelBin(), end(), operator==(), and operator[]().