Project
Public Member Functions | Public Attributes | Friends | List of all members
Perf Class Reference

Perf (single performance) data structure. More...

#include <Perf.h>

Public Member Functions

 Perf (std::string name, std::string criterion, float value)
 
 Perf (std::string name, std::string criterion)
 
 Perf (const Perf &perf)
 
bool operator== (const Perf &perf2) const
 

Public Attributes

std::string crit_
 
float value_
 
std::string name_
 

Friends

std::ostream & operator<< (std::ostream &out, const Perf &p)
 

Detailed Description

Perf (single performance) data structure.

Perf object is the representation of a single performance of an alternative on a criterion: a_i_j A Perf is thus identified by a name (name of the profile or the alternative), the name of the Criterion on which the performance was evaluated, and the value of the performance.

Constructor & Destructor Documentation

◆ Perf() [1/3]

Perf::Perf ( std::string  name,
std::string  criterion,
float  value 
)

Perf standard constructor

Parameters
namename of the performance (ex: name of profile or alternative)
criterioncriterion id on which the performance in based on
valuevalue of the performance

◆ Perf() [2/3]

Perf::Perf ( std::string  name,
std::string  criterion 
)

Perf standard constructor

Parameters
namename of the performance (ex: name of profile or alternative)
criterioncriterion id on which the performance in based on

◆ Perf() [3/3]

Perf::Perf ( const Perf perf)

Performance constructor by copy

Parameters
perfBased performance to copy

Member Function Documentation

◆ operator==()

bool Perf::operator== ( const Perf perf2) const

Overload of == operator for Perf object

Parameters
perf2Perf object to compare it with

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