OGS
NumLib::TimeIncrement Struct Reference

Detailed Description

Definition at line 31 of file TimeIncrement.h.

#include <TimeIncrement.h>

Public Member Functions

constexpr TimeIncrement (double const dt)
 
constexpr double operator() () const
 

Private Attributes

double value_
 

Friends

std::ostream & operator<< (std::ostream &os, TimeIncrement const &dt)
 

Constructor & Destructor Documentation

◆ TimeIncrement()

NumLib::TimeIncrement::TimeIncrement ( double const dt)
inlineexplicitconstexpr

Definition at line 33 of file TimeIncrement.h.

33: value_{dt} {}

Member Function Documentation

◆ operator()()

double NumLib::TimeIncrement::operator() ( ) const
inlineconstexpr

Definition at line 35 of file TimeIncrement.h.

35{ return value_; }

References value_.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
TimeIncrement const & dt )
friend

Definition at line 37 of file TimeIncrement.h.

39 {
40 auto const precision = os.precision();
41 return os << std::setprecision(
42 std::numeric_limits<double>::max_digits10)
43 << dt.value_ << std::setprecision(precision);
44 }

Member Data Documentation

◆ value_

double NumLib::TimeIncrement::value_
private

Definition at line 47 of file TimeIncrement.h.

Referenced by operator()().


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