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

#include <cachedvariable.hpp>

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

Public Member Functions

void initialize () override
 Initialize the cached value.
Public Member Functions inherited from constitutive::CachedVariable< Eigen::Matrix< T, 3, 1 > >
 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< Eigen::Matrix< T, 3, 1 > >
bool cached
 whether the state variable has been cached
std::shared_ptr< T > value_
 cached value

Member Function Documentation

◆ initialize()

template<typename T>
void constitutive::CachedVector3< T >::initialize ( )
inlineoverridevirtual

Initialize the cached value.

Implements constitutive::CachedVariable< Eigen::Matrix< T, 3, 1 > >.

References constitutive::CachedVariable< Eigen::Matrix< T, 3, 1 > >::empty(), and constitutive::CachedVariable< Eigen::Matrix< T, 3, 1 > >::set().

Referenced by constitutive::Tensor2< T >::principals().

Here is the call graph for this function:
Here is the caller graph for this function:

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