TraDemGen Logo  1.00.7
C++ Simulated Travel Demand Generation Library
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>

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

◆ ProbabilityMassFunction_T

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

◆ CategoricalAttributeLite() [1/3]

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

Main constructor.

Definition at line 95 of file CategoricalAttributeLite.hpp.

◆ CategoricalAttributeLite() [2/3]

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

Default constructor.

Definition at line 103 of file CategoricalAttributeLite.hpp.

◆ CategoricalAttributeLite() [3/3]

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

Copy constructor.

Definition at line 109 of file CategoricalAttributeLite.hpp.

◆ ~CategoricalAttributeLite()

template<typename T >
virtual TRADEMGEN::CategoricalAttributeLite< T >::~CategoricalAttributeLite ( )
inlinevirtual

Destructor.

Definition at line 128 of file CategoricalAttributeLite.hpp.

Member Function Documentation

◆ getValue()

◆ checkValue()

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().

◆ displayProbabilityMass()

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

◆ operator=()

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

Copy operator.

Definition at line 118 of file CategoricalAttributeLite.hpp.


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