OGS
BaseLib::TimeInterval Struct Referencefinal

Detailed Description

Class for a time interval, which has a member to check whether the given time is in this time interval.

Definition at line 23 of file TimeInterval.h.

#include <TimeInterval.h>

Public Member Functions

bool contains (const double current_time) const
 

Public Attributes

double start_time
 
double end_time
 

Member Function Documentation

◆ contains()

bool BaseLib::TimeInterval::contains ( const double current_time) const
inline

Definition at line 26 of file TimeInterval.h.

27 {
28 return (current_time >= start_time && current_time <= end_time);
29 }

References end_time, and start_time.

Referenced by ProcessLib::DirichletBoundaryConditionWithinTimeInterval::getEssentialBCValues().

Member Data Documentation

◆ end_time

double BaseLib::TimeInterval::end_time

Definition at line 32 of file TimeInterval.h.

Referenced by contains().

◆ start_time

double BaseLib::TimeInterval::start_time

Definition at line 31 of file TimeInterval.h.

Referenced by contains().


The documentation for this struct was generated from the following file: