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. |
|
Definition at line 14 of file DataEvent.h. |
|
Definition at line 15 of file DataEvent.h. |
|
copy constructor
Definition at line 18 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. |
|
returns data
Definition at line 28 of file DataEvent.h. |
|
returns data
Definition at line 27 of file DataEvent.h. Referenced by MicrophoneServer::processEvent(), LookForSoundBehavior::processEvent(), and BufferedImageGenerator::processEvent(). |
|
assignment
Definition at line 21 of file DataEvent.h. |
|
assigns d to the internal data
Definition at line 26 of file DataEvent.h. |
|
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 v2.4.1 |
Generated Tue Aug 16 16:34:59 2005 by Doxygen 1.4.4 |