Menge
Modular Pedestrian Simulation Framework for Research and Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Friends | List of all members
Menge::Math::WeightedInt Class Reference

A weighted integer value. Used with WeightedIntGenerator. More...

#include <RandGenerator.h>

Public Member Functions

 WeightedInt (int value, float weight)
 Constructor. More...
 

Public Attributes

int _val
 The value of the entry.
 
float _wt
 The weight of the value.
 

Friends

Loggeroperator<< (Logger &out, const WeightedInt &wInt)
 Friend function for writing string representation to an output stream. More...
 

Detailed Description

A weighted integer value. Used with WeightedIntGenerator.

Constructor & Destructor Documentation

Menge::Math::WeightedInt::WeightedInt ( int  value,
float  weight 
)
inline

Constructor.

Parameters
valueThe integer value.
weightThe relative weight associated with the value.

Friends And Related Function Documentation

Logger& operator<< ( Logger out,
const WeightedInt wInt 
)
friend

Friend function for writing string representation to an output stream.

Parameters
outThe output stream.
wIntAn instance of the weighted int to represent as a string.
Returns
Reference to the input output stream.

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