20 #ifndef __COMPLEXWEIGHT_HXX__
21 #define __COMPLEXWEIGHT_HXX__
42 ComplexWeight(
double elementaryWeight,
double loopWeight,
int nbCoresByIteration);
45 std::vector<std::pair<double,int> >
getLoopWeight()
const {
return _loopWeight;}
46 double getSimpleLoopWeight()
const;
48 double calculateTotalLength(
int nbOfCoresAllocated)
const;
51 bool isDefaultValue()
const {
return ((isDefaultValueElementary()) && (isDefaultValueLoop()));}
54 bool hasValidLoopWeight()
const {
return (((*(_loopWeight.begin())).first>0) && ((*(_loopWeight.begin())).second!=-1));}
56 void setLoopWeight(
double loopWeight,
int nbCoresByIteration);
57 void setElementaryWeight(
double elementaryWeight) {_bootWeight=
false; _elementaryWeight=elementaryWeight;}
58 void setToZero() {_bootWeight=
true; unsetElementary(); unsetLoop(); }
59 int getNbCoresConsoLoopMax()
const;
68 void unsetLoop() {_loopWeight.clear(); _loopWeight.push_back(std::pair<double,int>(-1.,-1));}
#define YACSLIBENGINE_EXPORT
void setElementaryWeight(double elementaryWeight)
bool isDefaultValueElementary() const
std::vector< std::pair< double, int > > _loopWeight
std::vector< std::pair< double, int > > getLoopWeight() const
bool isDefaultValueLoop() const
double getElementaryWeight() const
bool isUnsetElementaryWeight() const
bool isUnsetLoopWeight() const
void setDefaultElementary()
bool isDefaultValue() const
bool hasValidLoopWeight() const
ComplexWeight(const ComplexWeight &other)
bool hasValidElementaryWeight() const