|
virtual | ~BaseMsg () |
| Destructor to free memory.
|
|
virtual void | set_src (int first, int second, int flag)=0 |
|
virtual void | set_dst (int first, int second, int flag)=0 |
|
virtual void | set_src (int procs_id, int flag)=0 |
|
virtual void | set_dst (int procs_id, int flag)=0 |
|
virtual int | src_first () const =0 |
|
virtual int | dst_first () const =0 |
|
virtual int | src_second () const =0 |
|
virtual int | dst_second () const =0 |
|
virtual int | src_flag () const =0 |
|
virtual int | dst_flag () const =0 |
|
virtual void | set_type (int type)=0 |
|
virtual int | type () const =0 |
|
virtual void | set_target (int first, int second)=0 |
|
virtual int | target_first () const =0 |
|
virtual int | target_second () const =0 |
|
virtual BaseMsg * | CopyAddr ()=0 |
| Copy src and dst address, including first, id, flag.
|
|
virtual void | SetAddr (BaseMsg *msg)=0 |
|
virtual void | add_frame (const void *, int nBytes)=0 |
| Add a frame (a chunck of bytes) into the message.
|
|
virtual int | frame_size ()=0 |
|
virtual void * | frame_data ()=0 |
|
virtual bool | next_frame ()=0 |
| Move the cursor to the next frame. More...
|
|
virtual bool singa::BaseMsg::next_frame |
( |
| ) |
|
|
pure virtual |
Move the cursor to the next frame.
- Returns
- true if the next frame is not NULL; otherwise false
Implemented in singa::Msg.
virtual void singa::BaseMsg::set_src |
( |
int |
first, |
|
|
int |
second, |
|
|
int |
flag |
|
) |
| |
|
pure virtual |
- Parameters
-
first | worker/server group id |
id | worker/server id within the group |
flag | 0 for server, 1 for worker, 2 for stub |
Implemented in singa::Msg.
The documentation for this class was generated from the following file:
- /home/wangwei/program/asf/incubator-singa/include/communication/msg.h