Rise
The Vieneo Province
Loading...
Searching...
No Matches
CloudLightning::System Class Reference

#include <CloudLightning.h>

Collaboration diagram for CloudLightning::System:
[legend]

Public Member Functions

 System (uint32_t seed=0x4c495447u)
void Reset ()
void Seed (uint32_t seed)
const std::array< Flash, MaxEvents > & Events () const
uint64_t Generated () const
void Update (const CloudVolume::Parameters &params, double elapsed, uint32_t cloudSeed)

Private Member Functions

double Uniform ()
double Interval ()

Private Attributes

std::mt19937 random
double next =0
uint64_t generated =0
Distribution previous
Distribution current
std::array< Flash, MaxEvents > flashes {}

Detailed Description

Definition at line 246 of file CloudLightning.h.

Constructor & Destructor Documentation

◆ System()

CloudLightning::System::System ( uint32_t seed = 0x4c495447u)
inlineexplicit

Definition at line 249 of file CloudLightning.h.

Here is the call graph for this function:

Member Function Documentation

◆ Events()

const std::array< Flash, MaxEvents > & CloudLightning::System::Events ( ) const
inline

Definition at line 252 of file CloudLightning.h.

Here is the caller graph for this function:

◆ Generated()

uint64_t CloudLightning::System::Generated ( ) const
inline

Definition at line 253 of file CloudLightning.h.

◆ Interval()

double CloudLightning::System::Interval ( )
inlineprivate

Definition at line 301 of file CloudLightning.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Reset()

void CloudLightning::System::Reset ( )
inline

Definition at line 250 of file CloudLightning.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Seed()

void CloudLightning::System::Seed ( uint32_t seed)
inline

Definition at line 251 of file CloudLightning.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Uniform()

double CloudLightning::System::Uniform ( )
inlineprivate

Definition at line 300 of file CloudLightning.h.

Here is the caller graph for this function:

◆ Update()

void CloudLightning::System::Update ( const CloudVolume::Parameters & params,
double elapsed,
uint32_t cloudSeed )
inline

Definition at line 254 of file CloudLightning.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ current

Distribution CloudLightning::System::current
private

Definition at line 305 of file CloudLightning.h.

◆ flashes

std::array<Flash,MaxEvents> CloudLightning::System::flashes {}
private

Definition at line 306 of file CloudLightning.h.

◆ generated

uint64_t CloudLightning::System::generated =0
private

Definition at line 304 of file CloudLightning.h.

◆ next

double CloudLightning::System::next =0
private

Definition at line 303 of file CloudLightning.h.

◆ previous

Distribution CloudLightning::System::previous
private

Definition at line 305 of file CloudLightning.h.

◆ random

std::mt19937 CloudLightning::System::random
private

Definition at line 302 of file CloudLightning.h.


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