9 #ifndef Tempus_TimeEventIndexRange_decl_hpp
10 #define Tempus_TimeEventIndexRange_decl_hpp
15 #include "Teuchos_Time.hpp"
28 template<
class Scalar>
45 virtual bool isIndex(
int index)
const;
This class defines time events which can be used to "trigger" an action. Time events are points in ti...
TimeEventRangeIndex specifies a start, stop and stride index.
virtual int getIndexStop() const
virtual bool isIndex(int index) const
Test if index is a time event.
virtual void setIndexStop(int stop)
virtual int indexOfNextEvent(int index) const
Index of the next event. Negative indicating the last event is in the past.
virtual void describe() const
Describe member data.
TimeEventRangeIndex()
Default constructor.
virtual void setIndexRange(int start, int stop, int stride)
virtual bool eventInRangeIndex(int index1, int index2) const
Test if an event occurs within the index range.
virtual void setIndexStart(int start)
virtual int getNumEvents() const
virtual void setNumEvents()
virtual int indexToNextEvent(int index) const
How many indices until the next event. Negative indicating the last event is in the past.
virtual int getIndexStride() const
virtual int getIndexStart() const
virtual ~TimeEventRangeIndex()
Destructor.
virtual void setIndexStride(int stride)