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

Public Member Functions | |
| CachedVariable ()=default | |
| Default constructor. | |
| CachedVariable (const CachedVariable &other) | |
| Copy constructor. | |
| virtual | ~CachedVariable ()=default |
| Destructor. | |
| bool | empty () const |
| Whether the state variable is empty. | |
| virtual void | initialize ()=0 |
| Initialize the cached value. | |
| 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). | |
Public Attributes | |
| bool | cached = false |
| whether the state variable has been cached | |
| std::shared_ptr< T > | value_ = nullptr |
| cached value | |
|
default |
|
inline |
|
virtualdefault |
Destructor.
|
inline |
Whether the state variable is empty.
Referenced by constitutive::CachedScalar< T >::initialize().

|
pure virtual |
Initialize the cached value.
Implemented in constitutive::CachedMatrix33< T >, constitutive::CachedScalar< T >, constitutive::CachedTensor2< T >, constitutive::CachedVector3< T >, and constitutive::CachedVector6< T >.
|
inline |
Set the cached value.
| new_value | cached value |
Referenced by constitutive::CachedScalar< T >::initialize().

|
inline |
Get the value (non-const).
|
inline |
Get the value (const).
Referenced by constitutive::Tensor2< T >::b(), constitutive::Tensor2< T >::cos3theta(), constitutive::Tensor2< T >::deviatoric(), 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 >::mean(), constitutive::Tensor2< T >::norm(), constitutive::Tensor2< T >::normalized(), constitutive::Tensor2< T >::p(), constitutive::Tensor2< T >::p1(), constitutive::Tensor2< T >::p2(), constitutive::Tensor2< T >::p3(), constitutive::Tensor2< T >::principals(), constitutive::Tensor2< T >::q(), constitutive::Tensor2< T >::R(), constitutive::StateVariable< T >::sigam(), constitutive::StateVariable< T >::sigm(), constitutive::StateVariable< T >::stress(), constitutive::StateVariable< T >::stressa(), and constitutive::Tensor2< T >::theta().

| bool constitutive::CachedVariable< T >::cached = false |
whether the state variable has been cached
Referenced by constitutive::Tensor2< T >::b(), constitutive::StateVariable< T >::clearCaches(), constitutive::Tensor2< T >::clearCaches(), constitutive::Tensor2< T >::cos3theta(), constitutive::Tensor2< T >::deviatoric(), 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 >::mean(), constitutive::Tensor2< T >::norm(), constitutive::Tensor2< T >::normalized(), constitutive::Tensor2< T >::p(), constitutive::Tensor2< T >::p1(), constitutive::Tensor2< T >::p2(), constitutive::Tensor2< T >::p3(), constitutive::Tensor2< T >::principals(), constitutive::Tensor2< T >::q(), constitutive::Tensor2< T >::R(), constitutive::StateVariable< T >::sigam(), constitutive::StateVariable< T >::sigm(), constitutive::StateVariable< T >::stress(), constitutive::StateVariable< T >::stressa(), and constitutive::Tensor2< T >::theta().
| std::shared_ptr<T> constitutive::CachedVariable< T >::value_ = nullptr |
cached value