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


Public Member Functions | |
| void | initialize () override |
| Initialize the cached value. | |
| Public Member Functions inherited from constitutive::CachedVariable< Tensor2< T > > | |
| CachedVariable ()=default | |
| Default 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). | |
Additional Inherited Members | |
| Public Attributes inherited from constitutive::CachedVariable< Tensor2< T > > | |
| bool | cached |
| whether the state variable has been cached | |
| std::shared_ptr< T > | value_ |
| cached value | |
|
inlineoverridevirtual |
Initialize the cached value.
Implements constitutive::CachedVariable< Tensor2< T > >.
References constitutive::CachedVariable< Tensor2< T > >::empty(), and constitutive::CachedVariable< Tensor2< T > >::set().
Referenced by constitutive::StateVariable< T >::stress(), and constitutive::StateVariable< T >::stressa().

