Tempus
Version of the Day
Time Integration
|
TimeEventRangeIndex specifies a start, stop and stride index. More...
#include <Tempus_TimeEventRangeIndex_decl.hpp>
Public Member Functions | |
TimeEventRangeIndex () | |
Default constructor. More... | |
TimeEventRangeIndex (std::string name, int start, int stop, int stride) | |
Construct with full argument list of data members. More... | |
virtual | ~TimeEventRangeIndex () |
Destructor. More... | |
Basic methods | |
virtual bool | isIndex (int index) const |
Test if index is a time event. More... | |
virtual int | indexToNextEvent (int index) const |
How many indices until the next event. Negative indicating the last event is in the past. More... | |
virtual int | indexOfNextEvent (int index) const |
Index of the next event. Negative indicating the last event is in the past. More... | |
virtual bool | eventInRangeIndex (int index1, int index2) const |
Test if an event occurs within the index range. More... | |
virtual void | describe () const |
Describe member data. More... | |
Accessor methods | |
virtual void | setIndexRange (int start, int stop, int stride) |
virtual int | getIndexStart () const |
virtual void | setIndexStart (int start) |
virtual int | getIndexStop () const |
virtual void | setIndexStop (int stop) |
virtual int | getIndexStride () const |
virtual void | setIndexStride (int stride) |
virtual int | getNumEvents () const |
virtual void | setNumEvents () |
Public Member Functions inherited from Tempus::TimeEventBase< Scalar > | |
TimeEventBase () | |
Constructor. More... | |
virtual | ~TimeEventBase () |
Destructor. More... | |
virtual bool | isTime (Scalar time) const |
Test if time is near a TimeEvent (within tolerance). More... | |
virtual Scalar | getAbsTol () const |
virtual Scalar | timeToNextEvent (Scalar time) const |
How much time until the next event. Negative indicating the last event is in the past. More... | |
virtual Scalar | timeOfNextEvent (Scalar time) const |
Time of the next event. Negative indicating the last event is in the past. More... | |
virtual bool | eventInRange (Scalar time1, Scalar time2) const |
Test if an event occurs within the time range. More... | |
virtual std::string | getName () const |
virtual void | setName (std::string name) |
virtual Scalar | getDefaultTime () const |
virtual Scalar | getDefaultTol () const |
virtual int | getDefaultIndex () const |
Protected Attributes | |
int | start_ |
int | stop_ |
int | stride_ |
unsigned | numEvents_ |
TimeEventRangeIndex specifies a start, stop and stride index.
Definition at line 29 of file Tempus_TimeEventRangeIndex_decl.hpp.
Tempus::TimeEventRangeIndex< Scalar >::TimeEventRangeIndex | ( | ) |
Default constructor.
Definition at line 16 of file Tempus_TimeEventRangeIndex_impl.hpp.
Tempus::TimeEventRangeIndex< Scalar >::TimeEventRangeIndex | ( | std::string | name, |
int | start, | ||
int | stop, | ||
int | stride | ||
) |
Construct with full argument list of data members.
Definition at line 25 of file Tempus_TimeEventRangeIndex_impl.hpp.
|
inlinevirtual |
Destructor.
Definition at line 40 of file Tempus_TimeEventRangeIndex_decl.hpp.
|
virtual |
Describe member data.
Reimplemented from Tempus::TimeEventBase< Scalar >.
Definition at line 137 of file Tempus_TimeEventRangeIndex_impl.hpp.
|
virtual |
Test if an event occurs within the index range.
Reimplemented from Tempus::TimeEventBase< Scalar >.
Definition at line 113 of file Tempus_TimeEventRangeIndex_impl.hpp.
|
inlinevirtual |
Definition at line 65 of file Tempus_TimeEventRangeIndex_decl.hpp.
|
inlinevirtual |
Definition at line 68 of file Tempus_TimeEventRangeIndex_decl.hpp.
|
inlinevirtual |
Definition at line 71 of file Tempus_TimeEventRangeIndex_decl.hpp.
|
inlinevirtual |
Definition at line 74 of file Tempus_TimeEventRangeIndex_decl.hpp.
|
virtual |
Index of the next event. Negative indicating the last event is in the past.
Reimplemented from Tempus::TimeEventBase< Scalar >.
Definition at line 94 of file Tempus_TimeEventRangeIndex_impl.hpp.
|
virtual |
How many indices until the next event. Negative indicating the last event is in the past.
Reimplemented from Tempus::TimeEventBase< Scalar >.
Definition at line 87 of file Tempus_TimeEventRangeIndex_impl.hpp.
|
virtual |
Test if index is a time event.
Reimplemented from Tempus::TimeEventBase< Scalar >.
Definition at line 80 of file Tempus_TimeEventRangeIndex_impl.hpp.
|
inlinevirtual |
Definition at line 62 of file Tempus_TimeEventRangeIndex_decl.hpp.
|
virtual |
Definition at line 34 of file Tempus_TimeEventRangeIndex_impl.hpp.
|
virtual |
Definition at line 45 of file Tempus_TimeEventRangeIndex_impl.hpp.
|
virtual |
Definition at line 57 of file Tempus_TimeEventRangeIndex_impl.hpp.
|
virtual |
Definition at line 70 of file Tempus_TimeEventRangeIndex_impl.hpp.
|
protected |
Definition at line 84 of file Tempus_TimeEventRangeIndex_decl.hpp.
|
protected |
Definition at line 81 of file Tempus_TimeEventRangeIndex_decl.hpp.
|
protected |
Definition at line 82 of file Tempus_TimeEventRangeIndex_decl.hpp.
|
protected |
Definition at line 83 of file Tempus_TimeEventRangeIndex_decl.hpp.