Role (participant) of a protocol or session. More...
#include <role.h>
Public Member Functions | |
Role () | |
Role constructor with "default" as name. | |
Role (std::string name) | |
Role constructor. | |
Role (const Role &role) | |
Role copy constructor. | |
virtual | ~Role () |
Role destructor. | |
virtual Role * | clone () const override |
clone a Role. | |
std::string | name () const |
void | set_name (std::string name) |
virtual bool | matches (Role *other) const |
Check if this Role matches another Role. | |
virtual void | accept (util::RoleVisitor &v) |
Role (participant) of a protocol or session.
virtual bool sesstype::Role::matches | ( | Role * | other | ) | const [inline, virtual] |
Check if this Role matches another Role.
Reimplemented in sesstype::parameterised::Role, and sesstype::parameterised::RoleGrp.
std::string sesstype::Role::name | ( | ) | const [inline] |
void sesstype::Role::set_name | ( | std::string | name | ) | [inline] |
[in] | name | Sets role name to name. |