Apache SINGA
A distributed deep learning platform .
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Macros
Public Member Functions | List of all members
singa::BaseMsg Class Referenceabstract
Inheritance diagram for singa::BaseMsg:
singa::Msg

Public Member Functions

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 BaseMsgCopyAddr ()=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...
 

Member Function Documentation

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
firstworker/server group id
idworker/server id within the group
flag0 for server, 1 for worker, 2 for stub

Implemented in singa::Msg.


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