Tempus
Version of the Day
Time Integration
|
TimeEventListIndex specifies a list of index events. More...
#include <Tempus_TimeEventListIndex_decl.hpp>
Public Member Functions | |
TimeEventListIndex () | |
Default constructor. More... | |
TimeEventListIndex (std::string name, std::vector< int > indexList) | |
Construct with full argument list of data members. More... | |
virtual | ~TimeEventListIndex () |
Destructor. More... | |
Basic methods | |
virtual bool | isIndex (int index) const |
Test if index is near a index event (within tolerance). 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 std::vector< int > | getIndexList () const |
virtual void | setIndexList (std::vector< int > indexList, bool sort=true) |
virtual void | addIndex (int index) |
virtual void | clearIndexList () |
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 | |
std::vector< int > | indexList_ |
TimeEventListIndex specifies a list of index events.
Definition at line 29 of file Tempus_TimeEventListIndex_decl.hpp.
Tempus::TimeEventListIndex< Scalar >::TimeEventListIndex | ( | ) |
Default constructor.
Definition at line 16 of file Tempus_TimeEventListIndex_impl.hpp.
Tempus::TimeEventListIndex< Scalar >::TimeEventListIndex | ( | std::string | name, |
std::vector< int > | indexList | ||
) |
Construct with full argument list of data members.
Definition at line 23 of file Tempus_TimeEventListIndex_impl.hpp.
|
inlinevirtual |
Destructor.
Definition at line 40 of file Tempus_TimeEventListIndex_decl.hpp.
|
virtual |
Definition at line 44 of file Tempus_TimeEventListIndex_impl.hpp.
|
inlinevirtual |
Definition at line 65 of file Tempus_TimeEventListIndex_decl.hpp.
|
virtual |
Describe member data.
Reimplemented from Tempus::TimeEventBase< Scalar >.
Definition at line 125 of file Tempus_TimeEventListIndex_impl.hpp.
|
virtual |
Test if an event occurs within the index range.
Reimplemented from Tempus::TimeEventBase< Scalar >.
Definition at line 99 of file Tempus_TimeEventListIndex_impl.hpp.
|
inlinevirtual |
Definition at line 62 of file Tempus_TimeEventListIndex_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 76 of file Tempus_TimeEventListIndex_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 69 of file Tempus_TimeEventListIndex_impl.hpp.
|
virtual |
Test if index is near a index event (within tolerance).
Reimplemented from Tempus::TimeEventBase< Scalar >.
Definition at line 62 of file Tempus_TimeEventListIndex_impl.hpp.
|
virtual |
Definition at line 32 of file Tempus_TimeEventListIndex_impl.hpp.
|
protected |
Definition at line 71 of file Tempus_TimeEventListIndex_decl.hpp.