| Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
DataEvent< T > Class Template Reference#include <DataEvent.h>
Inheritance diagram for DataEvent< T >: ![]() Detailed Descriptiontemplate<class T>
for passing around data (or pointers to data)
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Member Functions | |
| void | setData (const T &d) |
| assigns d to the internal data | |
| const T & | getData () const |
| returns data | |
| T & | getData () |
| returns data | |
Constructors | |
| DataEvent () | |
| DataEvent (const T &d, EventGeneratorID_t gid, unsigned int sid, EventTypeID_t tid, unsigned int dur=0) | |
| DataEvent (const T &d, EventGeneratorID_t gid, unsigned int sid, EventTypeID_t tid, unsigned int dur, const std::string &n, float mag) | |
| DataEvent (const DataEvent &evt) | |
| copy constructor | |
| const DataEvent & | operator= (const DataEvent &evt) |
| assignment | |
| virtual EventBase * | clone () const |
| allows a copy to be made of an event, supporting polymorphism | |
Protected Attributes | |
| T | data |
| the data being communicated | |
Definition at line 13 of file DataEvent.h.
| DataEvent< T >::DataEvent | ( | const T & | d, | |
| EventGeneratorID_t | gid, | |||
| unsigned int | sid, | |||
| EventTypeID_t | tid, | |||
| unsigned int | dur = 0 | |||
| ) | [inline] |
Definition at line 14 of file DataEvent.h.
| DataEvent< T >::DataEvent | ( | const T & | d, | |
| EventGeneratorID_t | gid, | |||
| unsigned int | sid, | |||
| EventTypeID_t | tid, | |||
| unsigned int | dur, | |||
| const std::string & | n, | |||
| float | mag | |||
| ) | [inline] |
Definition at line 15 of file DataEvent.h.
allows a copy to be made of an event, supporting polymorphism
Must be overridden by all subclasses to allow this to happen
I would like to switch this over to the cloneable interface once the compiler gets updated out of the 3.3 branch... see Cloneable::clone() for a discussion of the issue and implementation notes.
Reimplemented from EventBase.
Definition at line 23 of file DataEvent.h.
| T& DataEvent< T >::getData | ( | ) | [inline] |
| const T& DataEvent< T >::getData | ( | ) | const [inline] |
returns data
Definition at line 27 of file DataEvent.h.
Referenced by SignalTrans< T >::processEvent(), PitchDetector::processEvent(), and MicrophoneServer::processEvent().
| void DataEvent< T >::setData | ( | const T & | d | ) | [inline] |
the data being communicated
Definition at line 31 of file DataEvent.h.
Referenced by DataEvent< T >::getData(), DataEvent< T >::operator=(), and DataEvent< T >::setData().
|
Tekkotsu v3.0 |
Generated Wed Oct 4 00:04:59 2006 by Doxygen 1.4.7 |