CDT++ 1.0.0-rc1
Causal Dynamical Triangulations in C++
Loading...
Searching...
No Matches
runtime_config::Simulation Class Reference

#include <Runtime_config.hpp>

Collaboration diagram for runtime_config::Simulation:

Public Member Functions

 Simulation (Simulation &&) noexcept=default
 Simulation (Simulation const &)=default
auto alpha () const noexcept -> long double
auto checkpoint () const noexcept -> Int_precision
auto k () const noexcept -> long double
auto lambda () const noexcept -> long double
auto operator= (Simulation &&) noexcept -> Simulation &=default
auto operator= (Simulation const &) -> Simulation &=default
auto passes () const noexcept -> Int_precision
auto triangulation () const noexcept -> Triangulation const &
auto write_files () const noexcept -> bool

Private Member Functions

 Simulation (Triangulation const &triangulation, long double const alpha, long double const k, long double const lambda, Int_precision const passes, Int_precision const checkpoint, bool const write_files) noexcept

Private Attributes

long double m_alpha
Int_precision m_checkpoint
long double m_k
long double m_lambda
Int_precision m_passes
Triangulation m_triangulation
bool m_write_files

Friends

auto make_simulation (Triangulation const &triangulation, long double alpha, long double k, long double lambda, long long passes, long long checkpoint, bool write_files) -> Simulation
 Validate the complete simulation configuration.

Detailed Description

Complete validated configuration for the Metropolis simulation.

Instances can only be created by make_simulation(), and retain a validated Triangulation value rather than raw triangulation options.

Definition at line 83 of file Runtime_config.hpp.

Constructor & Destructor Documentation

◆ Simulation()

runtime_config::Simulation::Simulation ( Triangulation const & triangulation,
long double const alpha,
long double const k,
long double const lambda,
Int_precision const passes,
Int_precision const checkpoint,
bool const write_files )
inlineexplicitprivatenoexcept

Definition at line 99 of file Runtime_config.hpp.

Member Function Documentation

◆ alpha()

auto runtime_config::Simulation::alpha ( ) const -> long double
inlinenodiscardnoexcept

Definition at line 123 of file Runtime_config.hpp.

◆ checkpoint()

auto runtime_config::Simulation::checkpoint ( ) const -> Int_precision
inlinenodiscardnoexcept

Definition at line 133 of file Runtime_config.hpp.

◆ k()

auto runtime_config::Simulation::k ( ) const -> long double
inlinenodiscardnoexcept

Definition at line 125 of file Runtime_config.hpp.

◆ lambda()

auto runtime_config::Simulation::lambda ( ) const -> long double
inlinenodiscardnoexcept

Definition at line 127 of file Runtime_config.hpp.

◆ passes()

auto runtime_config::Simulation::passes ( ) const -> Int_precision
inlinenodiscardnoexcept

Definition at line 130 of file Runtime_config.hpp.

◆ triangulation()

auto runtime_config::Simulation::triangulation ( ) const -> Triangulation const &
inlinenodiscardnoexcept

Definition at line 120 of file Runtime_config.hpp.

◆ write_files()

auto runtime_config::Simulation::write_files ( ) const -> bool
inlinenodiscardnoexcept

Definition at line 136 of file Runtime_config.hpp.

◆ make_simulation

auto make_simulation ( Triangulation const & triangulation,
long double alpha,
long double k,
long double lambda,
long long passes,
long long checkpoint,
bool write_files ) -> Simulation
friend

Validate the complete simulation configuration.

Definition at line 269 of file Runtime_config.hpp.

References make_simulation.

Referenced by make_simulation.

Member Data Documentation

◆ m_alpha

long double runtime_config::Simulation::m_alpha
private

Definition at line 92 of file Runtime_config.hpp.

◆ m_checkpoint

Int_precision runtime_config::Simulation::m_checkpoint
private

Definition at line 96 of file Runtime_config.hpp.

◆ m_k

long double runtime_config::Simulation::m_k
private

Definition at line 93 of file Runtime_config.hpp.

◆ m_lambda

long double runtime_config::Simulation::m_lambda
private

Definition at line 94 of file Runtime_config.hpp.

◆ m_passes

Int_precision runtime_config::Simulation::m_passes
private

Definition at line 95 of file Runtime_config.hpp.

◆ m_triangulation

Triangulation runtime_config::Simulation::m_triangulation
private

Definition at line 91 of file Runtime_config.hpp.

◆ m_write_files

bool runtime_config::Simulation::m_write_files
private

Definition at line 97 of file Runtime_config.hpp.


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