$treeview $search $mathjax
TraDemGen Logo  1.00.0
$projectbrief
$projectbrief
$searchbox

TRADEMGEN::CategoricalAttributeLite< T > Struct Template Reference

Class modeling the distribution of values that can be taken by a categorical attribute. More...

#include <trademgen/basic/CategoricalAttributeLite.hpp>

List of all members.


Public Types

typedef std::map< T, stdair::Probability_T > ProbabilityMassFunction_T

Public Member Functions

const T & getValue (const stdair::Probability_T &iCumulativeProbability) const
bool checkValue (const T &iValue) const
const std::string displayProbabilityMass () const
 CategoricalAttributeLite (const ProbabilityMassFunction_T &iValueMap)
 CategoricalAttributeLite ()
 CategoricalAttributeLite (const CategoricalAttributeLite &iCAL)
CategoricalAttributeLiteoperator= (const CategoricalAttributeLite &iCAL)
virtual ~CategoricalAttributeLite ()

Detailed Description

template<typename T>
struct TRADEMGEN::CategoricalAttributeLite< T >

Class modeling the distribution of values that can be taken by a categorical attribute.

Definition at line 27 of file CategoricalAttributeLite.hpp.


Member Typedef Documentation

template<typename T>
typedef std::map<T, stdair::Probability_T> TRADEMGEN::CategoricalAttributeLite< T >::ProbabilityMassFunction_T

Type for the probability mass function.

Definition at line 33 of file CategoricalAttributeLite.hpp.


Constructor & Destructor Documentation

template<typename T>
TRADEMGEN::CategoricalAttributeLite< T >::CategoricalAttributeLite ( const ProbabilityMassFunction_T iValueMap  )  [inline]

Main constructor.

Definition at line 95 of file CategoricalAttributeLite.hpp.

template<typename T>
TRADEMGEN::CategoricalAttributeLite< T >::CategoricalAttributeLite (  )  [inline]

Default constructor.

Definition at line 103 of file CategoricalAttributeLite.hpp.

template<typename T>
TRADEMGEN::CategoricalAttributeLite< T >::CategoricalAttributeLite ( const CategoricalAttributeLite< T > &  iCAL  )  [inline]

Copy constructor.

Definition at line 109 of file CategoricalAttributeLite.hpp.

template<typename T>
virtual TRADEMGEN::CategoricalAttributeLite< T >::~CategoricalAttributeLite (  )  [inline, virtual]

Destructor.

Definition at line 128 of file CategoricalAttributeLite.hpp.


Member Function Documentation

template<typename T>
const T& TRADEMGEN::CategoricalAttributeLite< T >::getValue ( const stdair::Probability_T &  iCumulativeProbability  )  const [inline]

template<typename T>
bool TRADEMGEN::CategoricalAttributeLite< T >::checkValue ( const T &  iValue  )  const [inline]

Check if a value belongs to the value list.

Definition at line 61 of file CategoricalAttributeLite.hpp.

Referenced by TRADEMGEN::DemandCharacteristics::checkPOSValue().

template<typename T>
const std::string TRADEMGEN::CategoricalAttributeLite< T >::displayProbabilityMass (  )  const [inline]

template<typename T>
CategoricalAttributeLite& TRADEMGEN::CategoricalAttributeLite< T >::operator= ( const CategoricalAttributeLite< T > &  iCAL  )  [inline]


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