SST/macro
|
#include <packetizer.h>
Classes | |
struct | pending_send |
Public Member Functions | |
virtual | ~packetizer () |
void | start (int vn, message *payload) |
void | packetArrived (int vn, packet *pkt) |
void | sendWhatYouCan (int vn) |
void | setNotify (packetizer_callback *handler) |
int | packetSize () const |
virtual void | init_factory_params (sprockit::sim_parameters *params) |
Public Member Functions inherited from sprockit::factory_type | |
virtual void | init_factory_params (sim_parameters *params) |
virtual void | finalize_init () |
Public Member Functions inherited from sstmac::event_subscheduler | |
event_subscheduler () | |
timestamp | now () const |
get the current time More... | |
virtual std::string | to_string () const |
virtual void | handle (event *ev) |
void | schedule (timestamp t, event_handler *handler, event *ev) |
Add an event to the event queue, where msg will get delivered to handler at time t. More... | |
void | schedule (timestamp t, event_queue_entry *ev) |
void | schedule_now (event_queue_entry *ev) |
void | schedule_now (event_handler *handler, event *ev) |
void | schedule_delay (timestamp delay, event_handler *handler, event *ev) |
void | schedule_delay (timestamp delay, event_queue_entry *ev) |
void | send_self_event (timestamp arrival, event *ev) |
void | send_delayed_self_event (timestamp delay, event *ev) |
void | send_now_self_event (event *ev) |
void | send_self_event_queue (timestamp arrival, event_queue_entry *ev) |
void | send_delayed_self_event_queue (timestamp delay, event_queue_entry *ev) |
void | send_now_self_event_queue (event_queue_entry *ev) |
virtual void | set_event_parent (event_scheduler *m) |
Set the eventmanager for this scheduler. More... | |
event_scheduler * | parent () const |
Public Member Functions inherited from sstmac::event_handler | |
virtual | ~event_handler () |
event_loc_id | event_location () const |
virtual bool | ipc_handler () const |
Whether an event handler is a "fake" handler that represents logical process boundary. More... | |
int | thread_id () const |
virtual void | deadlock_check (event *ev) |
virtual void | deadlock_check () |
Protected Member Functions | |
packetizer () | |
void | bytesArrived (int vn, uint64_t unique_id, int bytes, message *parent) |
Protected Member Functions inherited from sstmac::event_handler | |
event_handler () | |
void | init_loc_id (event_loc_id id) |
void | init_thread_id (int id) |
Private Member Functions | |
virtual void | inject (int vn, long bytes, long byte_offset, message *payload)=0 |
virtual bool | spaceToSend (int vn, int num_bits) const =0 |
Private Attributes | |
recv_cq | completion_queue_ |
std::map< int, std::list< pending_send > > | pending_ |
int | packet_size_ |
packetizer_callback * | notifier_ |
Additional Inherited Members | |
Static Public Attributes inherited from sstmac::event_handler | |
static const int | null_lpid = -1 |
static const int | null_threadid = -1 |
Protected Attributes inherited from sstmac::event_subscheduler | |
event_scheduler * | parent_ |
Definition at line 25 of file packetizer.h.
|
virtual |
|
inlineprotected |
Definition at line 77 of file packetizer.h.
References sstmac::hw::DeclareFactory(), and NotSerializable.
|
protected |
|
virtual |
Reimplemented in sstmac::hw::packet_flow_memory_packetizer, and sstmac::hw::packet_flow_nic_packetizer.
Referenced by sstmac::hw::packet_flow_nic_packetizer::to_string().
|
privatepure virtual |
Implemented in sstmac::hw::packet_flow_memory_packetizer, and sstmac::hw::packet_flow_nic_packetizer.
Referenced by sstmac::hw::packet_flow_nic_packetizer::to_string().
void sstmac::hw::packetizer::packetArrived | ( | int | vn, |
packet * | pkt | ||
) |
|
inline |
Definition at line 43 of file packetizer.h.
void sstmac::hw::packetizer::sendWhatYouCan | ( | int | vn | ) |
|
inline |
Definition at line 39 of file packetizer.h.
Referenced by sstmac::hw::packet_flow_nic_packetizer::to_string().
|
privatepure virtual |
Implemented in sstmac::hw::packet_flow_memory_packetizer, and sstmac::hw::packet_flow_nic_packetizer.
Referenced by sstmac::hw::packet_flow_nic_packetizer::to_string().
void sstmac::hw::packetizer::start | ( | int | vn, |
message * | payload | ||
) |
|
private |
Definition at line 62 of file packetizer.h.
|
private |
Definition at line 74 of file packetizer.h.
|
private |
Definition at line 72 of file packetizer.h.
|
private |
Definition at line 70 of file packetizer.h.