9 #ifndef Tempus_TimeEventListIndex_decl_hpp
10 #define Tempus_TimeEventListIndex_decl_hpp
15 #include "Teuchos_Time.hpp"
28 template<
class Scalar>
45 virtual bool isIndex(
int index)
const;
63 virtual void setIndexList(std::vector<int> indexList,
bool sort =
true);
This class defines time events which can be used to "trigger" an action. Time events are points in ti...
TimeEventListIndex specifies a list of index events.
TimeEventListIndex()
Default constructor.
virtual bool eventInRangeIndex(int index1, int index2) const
Test if an event occurs within the index range.
std::vector< int > indexList_
virtual ~TimeEventListIndex()
Destructor.
virtual void setIndexList(std::vector< int > indexList, bool sort=true)
virtual std::vector< int > getIndexList() const
virtual void addIndex(int index)
virtual bool isIndex(int index) const
Test if index is near a index event (within tolerance).
virtual void describe() const
Describe member data.
virtual void clearIndexList()
virtual int indexToNextEvent(int index) const
How many indices until the next event. Negative indicating the last event is in the past.
virtual int indexOfNextEvent(int index) const
Index of the next event. Negative indicating the last event is in the past.