| 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 | |
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.
|
Tekkotsu v3.0 |
Generated Fri May 11 20:08:00 2007 by Doxygen 1.4.7 |