CatapultServer  v0.5.0.1 (Elephant)
catapult::extensions::WeightPolicyGenerator Class Reference

Weight policy generator. More...

Public Member Functions

 WeightPolicyGenerator ()
 Creates a default weight policy generator. More...
 
WeightPolicy operator() ()
 Generates the next weight policy. More...
 

Private Attributes

std::mt19937 m_generator
 
std::uniform_int_distribution m_distr
 

Detailed Description

Weight policy generator.

Constructor & Destructor Documentation

◆ WeightPolicyGenerator()

catapult::extensions::WeightPolicyGenerator::WeightPolicyGenerator ( )
inline

Creates a default weight policy generator.

Member Function Documentation

◆ operator()()

WeightPolicy catapult::extensions::WeightPolicyGenerator::operator() ( )
inline

Generates the next weight policy.

Member Data Documentation

◆ m_distr

std::uniform_int_distribution catapult::extensions::WeightPolicyGenerator::m_distr
private

◆ m_generator

std::mt19937 catapult::extensions::WeightPolicyGenerator::m_generator
private

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