10 #ifndef Tempus_TimeEventIndexRange_decl_hpp
11 #define Tempus_TimeEventIndexRange_decl_hpp
18 #include "Tempus_config.hpp"
27 template <
class Scalar>
48 virtual bool isIndex(
int index)
const;
154 template <
class Scalar>
160 #endif // Tempus_TimeEventIndexRange_decl_hpp
virtual void setIndexStart(int start)
Set the start of the index range.
TimeEventRangeIndex specifies a start, stop and stride index.
virtual int getNumEvents() const
Return the number of events.
virtual void describe(Teuchos::FancyOStream &out, const Teuchos::EVerbosityLevel verbLevel) const
Describe member data.
virtual ~TimeEventRangeIndex()
Destructor.
int start_
Start of index range.
virtual int getIndexStride() const
Return the stride of the index range.
int stride_
Stride of index range.
virtual int indexToNextEvent(int index) const
How many indices until the next event.
virtual int getIndexStart() const
Return the start of the index range.
virtual void setIndexStride(int stride)
Set the stride of the index range.
This class defines time events which can be used to "trigger" an action.
virtual void setNumEvents()
Set the number of events from start_, stop_ and stride_.
virtual void setIndexStop(int stop)
Set the stop of the index range.
int stop_
Stop of index range.
TimeEventRangeIndex()
Default constructor.
virtual int getIndexStop() const
Return the stop of the index range.
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters() const
Return a valid ParameterList with current settings.
virtual bool eventInRangeIndex(int index1, int index2) const
Test if an event occurs within the index range.
virtual int indexOfNextEvent(int index) const
Return the index of the next event following the input index.
virtual bool isIndex(int index) const
Test if index is a time event.
Teuchos::RCP< TimeEventRangeIndex< Scalar > > createTimeEventRangeIndex(Teuchos::RCP< Teuchos::ParameterList > pList)
Nonmember Constructor via ParameterList.
unsigned numEvents_
Number of events in index range.
virtual void setIndexRange(int start, int stop, int stride)
Set the range of event indices.