#include <Controller.h>
Collaboration diagram for vpr::sim::Controller::EventData:

Public Types | |
| enum | EventType { MESSAGE, CONNECTION_INIT, CONNECTION_COMPLETE, LOCALHOST_DELIVERY } |
Public Member Functions | |
| EventData (const NetworkGraph::net_edge_t _edge, const NetworkLine::LineDirection _dir) | |
| EventData (vpr::SocketImplSIM *sock, const EventType _type) | |
| bool | operator== (const EventData &obj) const |
Public Attributes | |
| EventType | type |
| NetworkGraph::net_edge_t | edge |
| NetworkLine::LineDirection | direction |
| vpr::SocketImplSIM * | socket |
Definition at line 284 of file Controller.h.
| MESSAGE | Message arrival event. |
| CONNECTION_INIT | Connection request event. |
| CONNECTION_COMPLETE | Connection completion event. |
| LOCALHOST_DELIVERY | Immediate localhost-delivery-of-crap event. |
Definition at line 286 of file Controller.h.
00287 { 00288 MESSAGE, 00289 CONNECTION_INIT, 00290 CONNECTION_COMPLETE, 00291 LOCALHOST_DELIVERY 00292 };
| vpr::sim::Controller::EventData::EventData | ( | const NetworkGraph::net_edge_t | _edge, | |
| const NetworkLine::LineDirection | _dir | |||
| ) | [inline] |
| vpr::sim::Controller::EventData::EventData | ( | vpr::SocketImplSIM * | sock, | |
| const EventType | _type | |||
| ) | [inline] |
| bool vpr::sim::Controller::EventData::operator== | ( | const EventData & | obj | ) | const [inline] |
Definition at line 307 of file Controller.h.
References direction, edge, socket, and type.
00308 { 00309 bool status = false; 00310 00311 if ( type == obj.type ) 00312 { 00313 // This may need to be expanded to a full if/else if/else block 00314 // if the possible message data types expands beyond the above 00315 // four. 00316 status = (type == MESSAGE) ? (edge == obj.edge && direction == obj.direction) 00317 : (socket == obj.socket); 00318 } 00319 00320 return status; 00321 }
1.5.1