Skip to content

ScopeBody

class ScopeBody

Represents a body, that introduces a new scope for its contained body.

DEFINITION
class ScopeBody;

constructor ScopeBody

DEFINITION
ScopeBody ( Body  body_,
const std::shared_ptr< Environment > & inner_environment );
PARAMETERDESCRIPTION
body_
inner_environment

method cloneconstvirtual

DEFINITION
virtual std::shared_ptr< BodyElement >  clone ( ) const;
RETURNSDESCRIPTION
std::shared_ptr< BodyElement >

method createstatic

DEFINITION
static Body  create ( Body  body,
const std::shared_ptr< Environment > & inner_environment );
PARAMETERDESCRIPTION
body
inner_environment
RETURNSDESCRIPTION
Body

method emptyconstvirtual

DEFINITION
virtual bool  empty ( ) const;
RETURNSDESCRIPTION
bool

method encodeconstvirtual

DEFINITION
virtual void  encode ( std::string & bytes,
const Memory * memory ) const;
PARAMETERDESCRIPTION
bytes
memory

method evaluatedconstvirtual

DEFINITION
virtual std::optional< Body >  evaluated ( const EvaluationContext & context ) const;
PARAMETERDESCRIPTION
context
RETURNSDESCRIPTION
std::optional< Body >

method serializeconstvirtual

DEFINITION
virtual void  serialize ( std::ostream & stream,
const std::string & prefix ) const;
PARAMETERDESCRIPTION
stream
prefix