MacroBody
class MacroBody
Represents a macro call: macro_name(arg1, arg2, ...).
DEFINITION
class MacroBody;
constructor MacroBody
DEFINITION
| MacroBody | ( | const Token & name, | |
| std::vector< Expression > arguments, | |||
| const Macro * macro = {} | ); |
| PARAMETER | DESCRIPTION |
|---|---|
name |
|
arguments |
|
macro |
method cloneconstvirtual
DEFINITION
| virtual std::shared_ptr< BodyElement > clone | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
std::shared_ptr< BodyElement > |
method emptyconstvirtual
DEFINITION
| virtual bool empty | ( | ) const; |
| RETURNS | DESCRIPTION |
|---|---|
bool |
method encodeconstvirtual
DEFINITION
| virtual void encode | ( | std::string & bytes, | |
| const Memory * memory | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
bytes |
|
memory |
method evaluatedconstvirtual
DEFINITION
| virtual std::optional< Body > evaluated | ( | const EvaluationContext & context | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
context |
| RETURNS | DESCRIPTION |
|---|---|
std::optional< Body > |
method serializeconstvirtual
DEFINITION
| virtual void serialize | ( | std::ostream & stream, | |
| const std::string & prefix | ) const; |
| PARAMETER | DESCRIPTION |
|---|---|
stream |
|
prefix |
member arguments
DEFINITION
std::vector< Expression > arguments;
member macro
DEFINITION
const Macro * macro;
member name
DEFINITION
Token name;