ot::RefNode Class Reference
#include <RefNode.h>
Inheritance diagram for ot::RefNode:


Public Member Functions | |
| virtual | ~RefNode () |
| Node * | getReferenced () |
| virtual void | onEventGenerated (Event &event, Node &generator) |
| virtual int | isEventGenerator () |
| virtual int | isEventQueue () |
| virtual Event & | getEvent (unsigned int index=0) |
| virtual Event & | getEventNearTime (double time) |
| virtual unsigned int | getSize () |
| virtual int | isTimeDependend () |
| virtual Event & | getEventAtTime (double time) |
Protected Member Functions | |
| RefNode (Node *ref) | |
Protected Attributes | |
| Node * | reference |
Friends | |
| class | ConfigurationParser |
Detailed Description
Definition at line 81 of file RefNode.h.
Constructor & Destructor Documentation
| ot::RefNode::RefNode | ( | Node * | ref | ) | [inline, protected] |
| virtual ot::RefNode::~RefNode | ( | ) | [inline, virtual] |
Member Function Documentation
| virtual Event& ot::RefNode::getEvent | ( | unsigned int | index = 0 |
) | [inline, virtual] |
returns a stored event by index.
The index starts with 0 for the latest event and goes back in time with increasing index.
- Parameters:
-
index index of the desired event, if no index is given the latest is returned.
- Returns:
- reference to the value of the event.
Reimplemented from ot::Node.
| virtual Event& ot::RefNode::getEventAtTime | ( | double | time | ) | [inline, virtual] |
| virtual Event& ot::RefNode::getEventNearTime | ( | double | time | ) | [inline, virtual] |
| Node* ot::RefNode::getReferenced | ( | ) | [inline] |
| virtual unsigned int ot::RefNode::getSize | ( | ) | [inline, virtual] |
| virtual int ot::RefNode::isEventGenerator | ( | ) | [inline, virtual] |
tests for EventGenerator interface being implemented.
This has to be overriden in classes that subclass EventGenerator. Due to inheritance constraints it cannot be done automatically.
- Returns:
- a pointer to the EventGenerator interface, or NULL if it is not implemented
Reimplemented from ot::Node.
| virtual int ot::RefNode::isEventQueue | ( | ) | [inline, virtual] |
| virtual int ot::RefNode::isTimeDependend | ( | ) | [inline, virtual] |
tests for TimeDependend interface being present.
This has to be overriden in classes that subclass TimeDependend. See isEventGenerator for details.
- Returns:
- a pointer to the TimeDependend interface, or NULL if it is not implemented.
Reimplemented from ot::Node.
this method notifies the object that a new event was generated.
It is called by an EventGenerator.
- Parameters:
-
event reference to the new event. Do not change the event values, make a copy and change that ! generator reference to the EventGenerator object that notified the EventObserver.
Reimplemented from ot::Node.
Friends And Related Function Documentation
friend class ConfigurationParser [friend] |
Member Data Documentation
Node* ot::RefNode::reference [protected] |
The documentation for this class was generated from the following file: