10 #ifndef Tempus_TimeEventListIndex_decl_hpp
11 #define Tempus_TimeEventListIndex_decl_hpp
18 #include "Tempus_config.hpp"
27 template <
class Scalar>
35 std::string name =
"TimeEventListIndex");
49 virtual bool isIndex(
int index)
const;
99 virtual void setIndexList(std::vector<int> indexList,
bool sort =
true);
141 template <
class Scalar>
147 #endif // Tempus_TimeEventListIndex_decl_hpp
std::vector< int > indexList_
TimeEventListIndex()
Default constructor.
virtual int indexToNextEvent(int index) const
How many indices until the next event.
virtual bool isIndex(int index) const
Test if index is a time event.
virtual int indexOfNextEvent(int index) const
Return the index of the next event following the input index.
TimeEventListIndex specifies a list of index events.
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters() const
Return a valid ParameterList with current settings.
virtual void clearIndexList()
Clear the vector of all events.
virtual void addIndex(int index)
Add the index to event vector.
Teuchos::RCP< TimeEventListIndex< Scalar > > createTimeEventListIndex(Teuchos::RCP< Teuchos::ParameterList > pList)
Nonmember Constructor via ParameterList.
virtual std::vector< int > getIndexList() const
Return a vector of event indices.
virtual void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel) const
Describe member data.
virtual bool eventInRangeIndex(int index1, int index2) const
Test if an event occurs within the index range.
This class defines time events which can be used to "trigger" an action.
virtual ~TimeEventListIndex()
Destructor.
virtual void setIndexList(std::vector< int > indexList, bool sort=true)
Set the vector of event indices.