Warning: include(php/utility.php): Failed to open stream: No such file or directory in /home/argos/argos3/doc/api/embedded/a02414.php on line 2

Warning: include(): Failed opening 'php/utility.php' for inclusion (include_path='.:/usr/lib64/php') in /home/argos/argos3/doc/api/embedded/a02414.php on line 2
The ARGoS Website

argos::CRandom::CCategory Class Reference

The RNG category. More...

#include <rng.h>

Public Member Functions

 CCategory (const std::string &str_id, UInt32 un_seed)
 Class constructor. More...
 
virtual ~CCategory ()
 Class destructor. More...
 
const std::string & GetId () const throw ()
 Returns the id of the category. More...
 
void SetId (const std::string &str_id)
 Sets the new id of the category. More...
 
UInt32 GetSeed () const
 Returns the seed of the category. More...
 
void SetSeed (UInt32 un_seed)
 Sets the new seed of the category. More...
 
CRNGCreateRNG ()
 Creates a new RNG inside this category. More...
 
void ResetRNGs ()
 Resets the RNGs in this category. More...
 
void ReseedRNGs ()
 Sets new seed for the RNGs in this category. More...
 

Detailed Description

The RNG category.

This class stores a specific category of RNGs.

Definition at line 244 of file rng.h.

Constructor & Destructor Documentation

◆ CCategory()

argos::CRandom::CCategory::CCategory ( const std::string &  str_id,
UInt32  un_seed 
)

Class constructor.

Parameters
str_idthe id of the category.
un_seedthe seed of the category.

Definition at line 236 of file rng.cpp.

◆ ~CCategory()

argos::CRandom::CCategory::~CCategory ( )
virtual

Class destructor.

Definition at line 246 of file rng.cpp.

Member Function Documentation

◆ CreateRNG()

CRandom::CRNG * argos::CRandom::CCategory::CreateRNG ( )

Creates a new RNG inside this category.

Returns
the pointer to a new RNG inside this category.

Definition at line 264 of file rng.cpp.

◆ GetId()

const std::string& argos::CRandom::CCategory::GetId ( ) const
throw (
)
inline

Returns the id of the category.

Returns
the id of the category.

Definition at line 265 of file rng.h.

◆ GetSeed()

UInt32 argos::CRandom::CCategory::GetSeed ( ) const
inline

Returns the seed of the category.

Returns
the seed of the category.

Definition at line 280 of file rng.h.

◆ ReseedRNGs()

void argos::CRandom::CCategory::ReseedRNGs ( )

Sets new seed for the RNGs in this category.

This method does not reset the RNGs. You must call Reset() explicitly.

See also
Reset()

Definition at line 288 of file rng.cpp.

◆ ResetRNGs()

void argos::CRandom::CCategory::ResetRNGs ( )

Resets the RNGs in this category.

Definition at line 275 of file rng.cpp.

◆ SetId()

void argos::CRandom::CCategory::SetId ( const std::string &  str_id)
inline

Sets the new id of the category.

Parameters
str_idthe new id of the category.

Definition at line 272 of file rng.h.

◆ SetSeed()

void argos::CRandom::CCategory::SetSeed ( UInt32  un_seed)

Sets the new seed of the category.

This method does not reset the RNGs. You must call Reset() explicitly.

Parameters
un_seedthe new seed of the category.
See also
Reset()

Definition at line 256 of file rng.cpp.