
Specification of a range of frames with given inter-frame delay. More...
#include <Media/FrameRange.H>

Public Member Functions | |
| FrameRange () | |
| Default-construct as "0-1-0@0". | |
| FrameRange (int first, int step, int last, std::vector< SimTime > delays=std::vector< SimTime >(), bool eventTriggered=false) | |
| Constructor. | |
| std::string | toString () const |
| Convert to string. | |
| bool | operator== (const FrameRange &that) const |
| Equality operator. | |
| bool | operator!= (const FrameRange &that) const |
| Inequality operator. | |
| int | getFirst () const |
| int | getStep () const |
| int | getLast () const |
| size_t | numDelayTimes () const |
| SimTime | getDelayTime (size_t idx) const |
| bool | isEventTriggered () const |
Static Public Member Functions | |
| static FrameRange | fromString (const std::string &s) |
| Pseudo-constructor; convert from string. | |
Specification of a range of frames with given inter-frame delay.
Definition at line 47 of file FrameRange.H.
| FrameRange::FrameRange | ( | ) |
Default-construct as "0-1-0@0".
Definition at line 52 of file FrameRange.C.
References SimTime::ZERO().
| FrameRange::FrameRange | ( | int | first, | |
| int | step, | |||
| int | last, | |||
| std::vector< SimTime > | delays = std::vector<SimTime>(), |
|||
| bool | eventTriggered = false | |||
| ) |
| FrameRange FrameRange::fromString | ( | const std::string & | s | ) | [static] |
Pseudo-constructor; convert from string.
Definition at line 115 of file FrameRange.C.
References SimTime::fromString(), max(), SimTime::MSECS(), split(), toString(), and SimTime::ZERO().
Referenced by convertFromString().
| bool FrameRange::operator!= | ( | const FrameRange & | that | ) | const [inline] |
Inequality operator.
Definition at line 68 of file FrameRange.H.
| bool FrameRange::operator== | ( | const FrameRange & | that | ) | const |
Equality operator.
Definition at line 248 of file FrameRange.C.
| std::string FrameRange::toString | ( | ) | const |
Convert to string.
Definition at line 78 of file FrameRange.C.
References ASSERT, SimTime::msecs(), and sformat().
Referenced by convertToString(), and fromString().
1.6.3