ContRap-Core
|
Class Assignment represents assignments of identifiers. More...
#include <command.h>
Public Member Functions | |
Assignment (const DPtr &lvalue, const DPtr &rvalue) | |
Constructs a new assignment of the form "lvalue := rvalue". | |
virtual | ~Assignment () |
Virtual destructor. | |
const DPtr & | get_lvalue () const |
Returns the lvalue. | |
const DPtr & | get_rvalue () const |
Returns the rvalue. | |
virtual CommandType | get_command_type () const |
Returns the enumerated type of the command. | |
virtual std::string | to_string () const |
Converts the object to a non-formatted string. | |
Protected Attributes | |
DPtr | lvalue |
Values. | |
DPtr | rvalue |
Class Assignment represents assignments of identifiers.
An assignment searches in the parent scopes to find an identifier to assign.
Constructs a new assignment of the form "lvalue := rvalue".
lvalue | Value which will be overwritten |
rvalue | Assigned expression |
virtual crp::Assignment::~Assignment | ( | ) | [inline, virtual] |
Virtual destructor.
virtual CommandType crp::Assignment::get_command_type | ( | ) | const [inline, virtual] |
const DPtr& crp::Assignment::get_lvalue | ( | ) | const [inline] |
Returns the lvalue.
const DPtr& crp::Assignment::get_rvalue | ( | ) | const [inline] |
Returns the rvalue.
virtual std::string crp::Assignment::to_string | ( | ) | const [virtual] |
Converts the object to a non-formatted string.
This method is thought to be used for debugging purposes only.
Reimplemented from crp::Command.
DPtr crp::Assignment::lvalue [protected] |
Values.
DPtr crp::Assignment::rvalue [protected] |