19 #ifndef TRAN_CALCULATOR_HPP
20 #define TRAN_CALCULATOR_HPP
31 namespace keywords {
template<
class T>
struct keyword_info; }
33 enum class ScalarOperation {
49 bool operator==(
const TranAction& other)
const {
50 return this->op == other.op &&
51 this->field == other.field;
60 std::string next_name()
const {
61 return this->m_name + std::to_string( this->actions.size() );
64 std::vector<TranAction>::const_iterator begin()
const {
65 return this->actions.begin();
68 std::vector<TranAction>::const_iterator end()
const {
69 return this->actions.end();
72 void add_action(ScalarOperation op,
const std::string& field) {
73 this->actions.push_back(TranAction{op, field});
76 std::size_t size()
const {
77 return this->actions.size();
80 const std::string& name()
const {
84 keywords::keyword_info<double> make_kw_info(ScalarOperation op);
86 bool operator==(
const TranCalculator& other)
const {
87 return this->m_name == other.m_name &&
88 this->actions == other.actions;
93 std::vector<TranAction> actions;
Definition: TranCalculator.hpp:42
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:29
Definition: TranCalculator.hpp:45