FrameRange Class Reference

Specification of a range of frames with given inter-frame delay. More...

#include <Media/FrameRange.H>

Collaboration diagram for FrameRange:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

Specification of a range of frames with given inter-frame delay.

Definition at line 47 of file FrameRange.H.


Constructor & Destructor Documentation

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 
)

Constructor.

Definition at line 63 of file FrameRange.C.

References SimTime::ZERO().


Member Function Documentation

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().


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:21:47 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3