|
SERiF v0.0.1a
Stellar Evolution and Rotation in Four Dimensions
|
#include <memory>#include <stdexcept>#include <type_traits>#include <utility>#include "serif/utils/error/errors.hpp"Classes | |
| class | serif::model::EosReference< EOS > |
| Reuse one immutable EOS in equation objects, optionally retaining shared ownership. More... | |
Namespaces | |
| namespace | serif |
| namespace | serif::model |
Functions | |
| template<typename Model> | |
| auto | serif::model::share_equation_of_state (std::shared_ptr< const Model > model) |
| Share the EOS subobject while retaining the model that owns it. | |
| template<typename EOS> | |
| EosReference< EOS > | serif::model::borrow_eos (const EOS &eos) noexcept |
| Borrow the model-owned EOS when the prepared graph already retains its immutable model owner. | |
| template<typename EOS> requires (!std::is_lvalue_reference_v<EOS>) | |
| void | serif::model::borrow_eos (EOS &&)=delete |
| Borrowing never extends a temporary EOS lifetime. | |