19 #ifndef SCHEDULE_BLOCK_HPP 20 #define SCHEDULE_BLOCK_HPP 22 #include <opm/common/OpmLog/KeywordLocation.hpp> 23 #include <opm/common/utility/TimeService.hpp> 25 #include <opm/input/eclipse/Deck/DeckKeyword.hpp> 39 enum class ScheduleTimeType {
56 ScheduleTimeType time_type,
57 const time_point& start_time);
58 std::size_t size()
const;
60 std::optional<DeckKeyword>
get(
const std::string& kw)
const;
61 const time_point& start_time()
const;
62 const std::optional<time_point>& end_time()
const;
63 void end_time(
const time_point& t);
64 ScheduleTimeType time_type()
const;
66 const DeckKeyword& operator[](
const std::size_t index)
const;
67 std::vector<DeckKeyword>::const_iterator begin()
const;
68 std::vector<DeckKeyword>::const_iterator end()
const;
75 template<
class Serializer>
78 serializer(m_time_type);
79 serializer(m_start_time);
80 serializer(m_end_time);
81 serializer(m_keywords);
82 serializer(m_location);
87 time_point& current_time)
const;
90 ScheduleTimeType m_time_type{ScheduleTimeType::START};
91 time_point m_start_time{};
92 std::optional<time_point> m_end_time{};
94 std::vector<DeckKeyword> m_keywords{};
97 time_point current_time,
103 time_point current_time,
109 #endif // SCHEDULE_BLOCK_HPP Definition: KeywordLocation.hpp:27
Definition: ScheduleBlock.hpp:51
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:30
Definition: DeckOutput.hpp:29
Definition: UnitSystem.hpp:34
Class for (de-)serializing.
Definition: Serializer.hpp:94
Definition: DeckKeyword.hpp:36