musica (C++)
Loading...
Searching...
No Matches
constitutive::CachedScalar< T > Struct Template Reference

#include <cachedvariable.hpp>

Inheritance diagram for constitutive::CachedScalar< T >:
Collaboration diagram for constitutive::CachedScalar< T >:

Public Member Functions

void initialize () override
 Initialize the cached value.
Public Member Functions inherited from constitutive::CachedVariable< T >
 CachedVariable ()=default
 Default constructor.
 CachedVariable (const CachedVariable &other)
 Copy constructor.
virtual ~CachedVariable ()=default
 Destructor.
bool empty () const
 Whether the state variable is empty.
void set (const T &new_value)
 Set the cached value.
const T & value () const
 Get the value (const).
T & value ()
 Get the value (non-const).

Additional Inherited Members

Public Attributes inherited from constitutive::CachedVariable< T >
bool cached = false
 whether the state variable has been cached
std::shared_ptr< T > value_ = nullptr
 cached value

Member Function Documentation

◆ initialize()


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