Classes | Public Member Functions

DBus< M > Class Template Reference

A bus is a way to connect devices. More...

#include <bus.h>

List of all members.

Classes

struct  Entry

Public Member Functions

void add (Device *dev, ReceiveFunction func)
bool send (M &msg, bool earlyout=false)
 Send message LIFO.
bool send_fifo (M &msg)
 Send message in FIFO order.
bool send_rr (M &msg, unsigned &start)
 Send message first hit round robin and return the number of the next one that accepted the message.
unsigned count ()
 Return the number of entries in the list.
void debug_dump ()
 Debugging output.
 DBus ()
 Default constructor.

Detailed Description

template<class M>
class DBus< M >

A bus is a way to connect devices.


Constructor & Destructor Documentation

template<class M>
DBus< M >::DBus (  )  [inline]

Default constructor.


Member Function Documentation

template<class M>
void DBus< M >::add ( Device dev,
ReceiveFunction  func 
) [inline]
template<class M>
unsigned DBus< M >::count (  )  [inline]

Return the number of entries in the list.

template<class M>
void DBus< M >::debug_dump (  )  [inline]

Debugging output.

template<class M>
bool DBus< M >::send ( M &  msg,
bool  earlyout = false 
) [inline]

Send message LIFO.

template<class M>
bool DBus< M >::send_fifo ( M &  msg  )  [inline]

Send message in FIFO order.

template<class M>
bool DBus< M >::send_rr ( M &  msg,
unsigned &  start 
) [inline]

Send message first hit round robin and return the number of the next one that accepted the message.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines