Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

DataEvent< T > Class Template Reference

#include <DataEvent.h>

Inheritance diagram for DataEvent< T >:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<class T>
class DataEvent< T >

for passing around data (or pointers to data)

Definition at line 9 of file DataEvent.h.

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 DataEventoperator= (const DataEvent &evt)
 assignment
virtual EventBaseclone () const
 allows a copy to be made of an event, supporting polymorphism

Protected Attributes

data
 the data being communicated


Member Function Documentation

template<class T>
virtual EventBase* DataEvent< T >::clone (  )  const [inline, virtual]

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.


The documentation for this class was generated from the following file:

Tekkotsu v3.0
Generated Fri May 11 20:08:00 2007 by Doxygen 1.4.7