Interaction (message-passing) statements. More...
#include <interaction.h>
Public Types | |
| typedef std::vector< RoleType * > | RoleContainer |
Public Member Functions | |
| InteractionNodeTmpl () | |
| InteractionNode constructor with empty MsgSig. | |
| InteractionNodeTmpl (MessageType *msg) | |
| InteractionNode constructor. | |
| InteractionNodeTmpl (const InteractionNodeTmpl &node) | |
| InteractionNode copy constructor. | |
| ~InteractionNodeTmpl () override | |
| InteractionNode destructor. | |
| InteractionNodeTmpl * | clone () const override |
| clone a InteractionNode. | |
| void | set_msg (MessageType *msg) |
| Replace Msgsig of InteractionNode. | |
| MessageType * | msg () const |
| void | set_sndr (RoleType *sndr) |
| RoleType * | sndr () const |
| void | remove_sndr () |
| Remove from Role. | |
| void | add_rcvr (RoleType *rcvr) |
| unsigned int | num_rcvrs () const |
| RoleType * | rcvr () const |
Convenient function to return the first to Role. | |
| RoleType * | rcvr (unsigned int idx) const |
| void | remove_rcvrs () |
| Remove to Role (all of them);. | |
| RoleContainer::const_iterator | rcvr_begin () const |
| Start iterator for to Role. | |
| RoleContainer::const_iterator | rcvr_end () const |
| End iterator for to Role. | |
| void | accept (VisitorType &v) override |
Interaction (message-passing) statements.
InteractionNode also encapsulates send-only and receive-only statements.
| sesstype::InteractionNodeTmpl< BaseNode, RoleType, MessageType, VisitorType >::InteractionNodeTmpl | ( | MessageType * | msg | ) | [inline] |
InteractionNode constructor.
| [in] | msgsig | for the interaction. |
| void sesstype::InteractionNodeTmpl< BaseNode, RoleType, MessageType, VisitorType >::add_rcvr | ( | RoleType * | rcvr | ) | [inline] |
| [in] | to | Role to add to this InteractionNode. |
| MessageType* sesstype::InteractionNodeTmpl< BaseNode, RoleType, MessageType, VisitorType >::msg | ( | ) | const [inline] |
| unsigned int sesstype::InteractionNodeTmpl< BaseNode, RoleType, MessageType, VisitorType >::num_rcvrs | ( | ) | const [inline] |
to Role. | RoleType* sesstype::InteractionNodeTmpl< BaseNode, RoleType, MessageType, VisitorType >::rcvr | ( | ) | const [inline] |
| RoleType* sesstype::InteractionNodeTmpl< BaseNode, RoleType, MessageType, VisitorType >::rcvr | ( | unsigned int | idx | ) | const [inline] |
indexth to Role of InteractionNode. | void sesstype::InteractionNodeTmpl< BaseNode, RoleType, MessageType, VisitorType >::set_msg | ( | MessageType * | msg | ) | [inline] |
Replace Msgsig of InteractionNode.
| [in] | msgsig | of InteractionNode to replace with. |
| void sesstype::InteractionNodeTmpl< BaseNode, RoleType, MessageType, VisitorType >::set_sndr | ( | RoleType * | sndr | ) | [inline] |
| [in] | from | Role of InteractionNode. |
| RoleType* sesstype::InteractionNodeTmpl< BaseNode, RoleType, MessageType, VisitorType >::sndr | ( | ) | const [inline] |
from Role of InteractionNode.
1.7.6.1