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);
78 #endif // Tempus_TimeEventListIndex_decl_hpp std::vector< int > indexList_
virtual bool isIndex(int index) const
Test if index is near a index event (within tolerance).
TimeEventListIndex()
Default constructor.
virtual int indexOfNextEvent(int index) const
Index of the next event. Negative indicating the last event is in the past.
TimeEventListIndex specifies a list of index events.
virtual void clearIndexList()
virtual void addIndex(int index)
virtual int indexToNextEvent(int index) const
How many indices until the next event. Negative indicating the last event is in the past...
This class defines time events which can be used to "trigger" an action. Time events are points in ti...
virtual ~TimeEventListIndex()
Destructor.
virtual std::vector< int > getIndexList() const
virtual void setIndexList(std::vector< int > indexList, bool sort=true)
virtual void describe() const
Describe member data.
virtual bool eventInRangeIndex(int index1, int index2) const
Test if an event occurs within the index range.