GCS  0.2.3
Public Member Functions
gu::prodcons::Message Class Reference

Message class for Producer/Consumer communication. More...

#include <gu_prodcons.hpp>

Public Member Functions

 Message (Producer *prod_=0, const MessageData *data_=0, int val_=-1)
 Constructor. More...
 
 Message (const Message &msg)
 
Messageoperator= (const Message &msg)
 
Producerget_producer () const
 Get producer associated to the message. More...
 
const MessageDataget_data () const
 Get data associated to the message. More...
 
int get_val () const
 Get int value associated to the message. More...
 

Detailed Description

Message class for Producer/Consumer communication.

Constructor & Destructor Documentation

gu::prodcons::Message::Message ( Producer prod_ = 0,
const MessageData data_ = 0,
int  val_ = -1 
)
inline

Constructor.

Parameters
prod_Producer associated to the message
data_Message data
val_Integer value associated to the message

Member Function Documentation

const MessageData* gu::prodcons::Message::get_data ( ) const
inline

Get data associated to the message.

Returns
Data associated to the message
Producer& gu::prodcons::Message::get_producer ( ) const
inline

Get producer associated to the message.

Returns
Producer associated to the message
int gu::prodcons::Message::get_val ( ) const
inline

Get int value associated to the message.

Returns
Int value associated to the message

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