|
musica (C++)
|
#include <cachedvariable.hpp>


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 | |
|
inlineoverridevirtual |
Initialize the cached value.
Implements constitutive::CachedVariable< T >.
References constitutive::CachedVariable< T >::empty(), and constitutive::CachedVariable< T >::set().
Referenced by constitutive::Tensor2< T >::b(), constitutive::Tensor2< T >::cos3theta(), constitutive::Tensor2< T >::eta(), constitutive::Tensor2< T >::I1(), constitutive::Tensor2< T >::I2(), constitutive::Tensor2< T >::I3(), constitutive::Tensor2< T >::J2(), constitutive::Tensor2< T >::J3(), constitutive::Tensor2< T >::lode(), constitutive::Tensor2< T >::norm(), constitutive::Tensor2< T >::p(), constitutive::Tensor2< T >::p1(), constitutive::Tensor2< T >::p2(), constitutive::Tensor2< T >::p3(), constitutive::Tensor2< T >::q(), constitutive::Tensor2< T >::R(), and constitutive::Tensor2< T >::theta().

