SPH
|
Container holding equation terms. More...
#include <EquationTerm.h>
Public Member Functions | |
EquationHolder ()=default | |
EquationHolder (const SharedPtr< IEquationTerm > &term) | |
EquationHolder & | operator+= (const EquationHolder &other) |
EquationHolder | operator+ (const EquationHolder &other) const |
template<typename Term > | |
bool | contains () const |
Checks if the holder contains term of given type. More... | |
void | setDerivatives (DerivativeHolder &derivatives, const RunSettings &settings) const |
Calls EquationTerm::setDerivatives for all stored equation terms. More... | |
void | initialize (IScheduler &scheduler, Storage &storage, const Float t) |
Calls EquationTerm::initialize for all stored equation terms. More... | |
void | finalize (IScheduler &scheduler, Storage &storage, const Float t) |
Calls EquationTerm::finalize for all stored equation terms. More... | |
void | create (Storage &storage, IMaterial &material) const |
Calls EquationTerm::create for all stored equation terms. More... | |
Size | getTermCnt () const |
Container holding equation terms.
Holds an array of equation terms. The object also defines operators for adding more equation terms and functions initialize, finalize and create, calling corresponding functions for all stored equation terms. Equation terms are stored as shared pointers and can be thus used in multiple EquationHolders. It is however not recommended to access the same term concurrently as it can contain a state.
Definition at line 238 of file EquationTerm.h.
|
default |
|
inlineexplicit |
Definition at line 245 of file EquationTerm.h.
|
inline |
Checks if the holder contains term of given type.
Definition at line 265 of file EquationTerm.h.
Calls EquationTerm::create for all stored equation terms.
Definition at line 300 of file EquationTerm.h.
|
inline |
Calls EquationTerm::finalize for all stored equation terms.
The order is reversed compared to initialize call.
Definition at line 293 of file EquationTerm.h.
|
inline |
Definition at line 306 of file EquationTerm.h.
|
inline |
Calls EquationTerm::initialize for all stored equation terms.
Definition at line 284 of file EquationTerm.h.
|
inline |
Definition at line 256 of file EquationTerm.h.
|
inline |
Definition at line 251 of file EquationTerm.h.
|
inline |
Calls EquationTerm::setDerivatives for all stored equation terms.
Definition at line 277 of file EquationTerm.h.