LIBRCSC Docs
Documentation for HELIOS's BASE LIBRCSC library for RoboCup 2D Simulation League.
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Types | Public Member Functions | Static Public Member Functions | List of all members
rcsc::RandomEngine Class Reference

random engine holder for boost. More...

#include <random.h>

Public Types

typedef std::mt19937 base_type
 alias of the randome engine object type.
 

Public Member Functions

void seed (base_type::result_type value)
 apply new seed to random engine. More...
 
base_typeget ()
 get engine object More...
 

Static Public Member Functions

static RandomEngineinstance ()
 singleton interface. More...
 

Detailed Description

random engine holder for boost.

Member Function Documentation

◆ get()

base_type & rcsc::RandomEngine::get ( )
inline

get engine object

Returns
reference to the random engine

◆ instance()

static RandomEngine & rcsc::RandomEngine::instance ( )
inlinestatic

singleton interface.

Returns
reference to the instance.

◆ seed()

void rcsc::RandomEngine::seed ( base_type::result_type  value)
inline

apply new seed to random engine.

Parameters
valueseed value

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