QUGaR 0.0.4
Loading...
Searching...
No Matches
qugar::impl::funcs::ConstantBase Class Reference

Dimension independent constant function. More...

#include <primitive_funcs_lib.hpp>

Inheritance diagram for qugar::impl::funcs::ConstantBase:
[legend]

Public Member Functions

 ConstantBase (real value)
 Constructor.
 
real value () const
 Gets the constant value.
 

Static Public Attributes

static constexpr real default_value = numbers::half
 

Protected Attributes

real value_ { 0.0 }
 Constant value.
 

Detailed Description

Dimension independent constant function.

Template Parameters
dimParametric dimension.

Constructor & Destructor Documentation

◆ ConstantBase()

qugar::impl::funcs::ConstantBase::ConstantBase ( real value)
explicit

Constructor.

Parameters
valueConstant value.

Member Function Documentation

◆ value()

real qugar::impl::funcs::ConstantBase::value ( ) const
nodiscard

Gets the constant value.

Returns
real The constant value.

Member Data Documentation

◆ default_value

real qugar::impl::funcs::ConstantBase::default_value = numbers::half
staticconstexpr

◆ value_

real qugar::impl::funcs::ConstantBase::value_ { 0.0 }
protected

Constant value.


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