CDT++ 1.0.0-rc3
Causal Dynamical Triangulations in C++
Loading...
Searching...
No Matches
cdt::RandomStream Class Referencefinal

PCG sequence selector derived from a root random seed. More...

#include <Random.hpp>

Collaboration diagram for cdt::RandomStream:

Public Member Functions

constexpr RandomStream (std::uint64_t const value) noexcept
auto operator== (RandomStream const &other) const noexcept -> bool=default
constexpr auto value () const noexcept -> std::uint64_t

Detailed Description

PCG sequence selector derived from a root random seed.

Definition at line 46 of file Random.hpp.

Constructor & Destructor Documentation

◆ RandomStream()

cdt::RandomStream::RandomStream ( std::uint64_t const value)
inlineexplicitconstexprnoexcept
Parameters
valuePCG sequence selector to retain.

Definition at line 53 of file Random.hpp.

References value().

Member Function Documentation

◆ operator==()

auto cdt::RandomStream::operator== ( RandomStream const & other) const -> bool=default
nodiscarddefaultnoexcept
Parameters
otherStream selector to compare.
Returns
Whether both selectors retain the same value.

◆ value()

auto cdt::RandomStream::value ( ) const -> std::uint64_t
inlinenodiscardconstexprnoexcept
Returns
The retained PCG sequence selector.

Definition at line 58 of file Random.hpp.

Referenced by RandomStream().


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