Skip to content
Snippets Groups Projects
Commit 4ecda0b7 authored by wenqing's avatar wenqing
Browse files

[TimeInterval] Added a copy constructor

parent da63cfc6
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,12 @@ public:
{
}
explicit TimeInterval(const TimeInterval& time_inverval)
: _start_time(time_inverval._start_time),
_end_time(time_inverval._end_time)
{
}
bool contains(const double current_time) const
{
return (current_time >= _start_time && current_time <= _end_time);
......
......@@ -49,7 +49,7 @@ private:
int const _variable_id;
int const _component_id;
std::unique_ptr<BaseLib::TimeInterval> _time_interval;
std::unique_ptr<BaseLib::TimeInterval const> _time_interval;
};
std::unique_ptr<DirichletBoundaryConditionWithinTimeInterval>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment