Represents a body that repeats a block of code a specified number of times.
DEFINITION
class RepeatBody;
constructor RepeatBody
DEFINITION
|
RepeatBody |
( |
Symbol variable, |
| | std::optional< Expression > start, |
| | Expression end, |
| | Body body | ); |
| PARAMETER | DESCRIPTION |
variable |
|
start |
|
end |
|
body |
|
method cloneconstvirtual
DEFINITION
|
virtual std::shared_ptr< BodyElement > clone |
( |
) const; |
| RETURNS | DESCRIPTION |
std::shared_ptr< BodyElement > |
|
method createstatic
DEFINITION
|
static Body create |
( |
Symbol variable, |
| | const std::optional< Expression > & start, |
| | const Expression & end, |
| | const Body & body | ); |
| PARAMETER | DESCRIPTION |
variable |
|
start |
|
end |
|
body |
|
method emptyconstvirtual
DEFINITION
|
virtual bool empty |
( |
) const; |
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 |
|