SST/macro
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
sstmac::hw::packet_flow_buffer Class Reference

#include <packet_flow_buffer.h>

Inheritance diagram for sstmac::hw::packet_flow_buffer:
Inheritance graph
Collaboration diagram for sstmac::hw::packet_flow_buffer:
Collaboration graph

Public Member Functions

virtual ~packet_flow_buffer ()
 
virtual void set_output (int this_outport, int dst_inport, event_handler *output)
 
virtual int queue_length () const
 
event_loc_id output_location () const
 
event_loc_id input_location () const
 
- Public Member Functions inherited from sstmac::hw::packet_flow_sender
virtual ~packet_flow_sender ()
 
void set_acker (event_handler *acker)
 
virtual void set_input (int my_inport, int dst_outport, event_handler *input)=0
 
virtual void init_credits (int port, int num_credits)=0
 
virtual int num_initial_credits () const =0
 
void handle_payload (packet_flow_payload *pkt)
 
void set_event_location (node_id nid)
 
void set_event_location (switch_id sid)
 
void set_stat_collector (packet_sent_stats *c)
 
std::string to_string () const
 
virtual std::string packet_flow_name () const =0
 
void set_update_vc (bool flag)
 
- Public Member Functions inherited from sstmac::hw::packet_flow_handler
 packet_flow_handler ()
 
virtual ~packet_flow_handler ()
 
virtual void handle (event *ev)
 
virtual void handle_credit (packet_flow_credit *msg)=0
 
int thread_id () const
 
- Public Member Functions inherited from sstmac::event_subscheduler
 event_subscheduler ()
 
timestamp now () const
 get the current time More...
 
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_schedulerparent () 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

 packet_flow_buffer (const timestamp &send_lat, const timestamp &credit_lat, packet_flow_bandwidth_arbitrator *arb)
 
 packet_flow_buffer ()
 
std::string buffer_string (const char *name) const
 
- Protected Member Functions inherited from sstmac::hw::packet_flow_sender
 packet_flow_sender (const timestamp &send_lat, const timestamp &credit_lat)
 
 packet_flow_sender ()
 
void send_credit (const packet_flow_input &src, packet_flow_payload *payload, timestamp packet_tail_leaves)
 
void send (packet_flow_bandwidth_arbitrator *arb, packet_flow_payload *pkt, const packet_flow_input &src, const packet_flow_output &dest)
 
virtual void do_handle_payload (packet_flow_payload *pkt)=0
 
- Protected Member Functions inherited from sstmac::event_handler
 event_handler ()
 
void init_loc_id (event_loc_id id)
 
void init_thread_id (int id)
 

Protected Attributes

packet_flow_bandwidth_arbitratorarb_
 
packet_flow_input input_
 
packet_flow_output output_
 
long bytes_delayed_
 
- Protected Attributes inherited from sstmac::hw::packet_flow_sender
packet_sent_statsstat_collector_
 
event_handleracker_
 
timestamp send_lat_
 
timestamp credit_lat_
 
bool update_vc_
 
- Protected Attributes inherited from sstmac::event_subscheduler
event_schedulerparent_
 

Static Protected Attributes

static const int my_outport = 0
 
static const int my_inport = 0
 

Additional Inherited Members

- Static Public Attributes inherited from sstmac::event_handler
static const int null_lpid = -1
 
static const int null_threadid = -1
 

Detailed Description

Definition at line 12 of file packet_flow_buffer.h.

Constructor & Destructor Documentation

virtual sstmac::hw::packet_flow_buffer::~packet_flow_buffer ( )
virtual
sstmac::hw::packet_flow_buffer::packet_flow_buffer ( const timestamp send_lat,
const timestamp credit_lat,
packet_flow_bandwidth_arbitrator arb 
)
protected
Parameters
send_lat
credit_lat
arbAn arbitrator with outgoing bw already initialized
sstmac::hw::packet_flow_buffer::packet_flow_buffer ( )
inlineprotected

Definition at line 51 of file packet_flow_buffer.h.

References buffer_string().

Referenced by input_location().

Here is the call graph for this function:

Member Function Documentation

std::string sstmac::hw::packet_flow_buffer::buffer_string ( const char *  name) const
protected

Referenced by packet_flow_buffer().

event_loc_id sstmac::hw::packet_flow_buffer::input_location ( ) const
inline

Definition at line 34 of file packet_flow_buffer.h.

References sstmac::event_handler::event_location(), sstmac::hw::packet_flow_input::handler, input_, and packet_flow_buffer().

Here is the call graph for this function:

event_loc_id sstmac::hw::packet_flow_buffer::output_location ( ) const
inline

Definition at line 29 of file packet_flow_buffer.h.

References sstmac::event_handler::event_location(), sstmac::hw::packet_flow_output::handler, and output_.

Here is the call graph for this function:

virtual int sstmac::hw::packet_flow_buffer::queue_length ( ) const
inlinevirtual
virtual void sstmac::hw::packet_flow_buffer::set_output ( int  this_outport,
int  dst_inport,
event_handler output 
)
virtual

Member Data Documentation

packet_flow_bandwidth_arbitrator* sstmac::hw::packet_flow_buffer::arb_
protected

Definition at line 57 of file packet_flow_buffer.h.

long sstmac::hw::packet_flow_buffer::bytes_delayed_
protected

Definition at line 60 of file packet_flow_buffer.h.

packet_flow_input sstmac::hw::packet_flow_buffer::input_
protected

Definition at line 58 of file packet_flow_buffer.h.

Referenced by input_location().

const int sstmac::hw::packet_flow_buffer::my_inport = 0
staticprotected

Definition at line 63 of file packet_flow_buffer.h.

const int sstmac::hw::packet_flow_buffer::my_outport = 0
staticprotected

Definition at line 62 of file packet_flow_buffer.h.

packet_flow_output sstmac::hw::packet_flow_buffer::output_
protected

Definition at line 59 of file packet_flow_buffer.h.

Referenced by output_location().


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