mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | Friends
m::wasm::Scope Struct Reference

#include <WasmUtil.hpp>

Collaboration diagram for m::wasm::Scope:
[legend]

Public Member Functions

 ~Scope ()
 
Environment extract ()
 Ends this Scope by returning the currently active environment and setting the former one active again.
 

Private Member Functions

 Scope ()=delete
 
 Scope (Environment inner)
 
 Scope (const Scope &)=delete
 
 Scope (Scope &&)=default
 

Private Attributes

Environment inner_
 environment active during this Scopes lifetime
 
Environmentouter_
 environment active before and after this Scopes lifetime
 

Friends

struct CodeGenContext
 

Detailed Description

Definition at line 822 of file WasmUtil.hpp.

Constructor & Destructor Documentation

◆ Scope() [1/4]

m::wasm::Scope::Scope ( )
privatedelete

◆ Scope() [2/4]

m::wasm::Scope::Scope ( Environment  inner)
inlineprivate

Definition at line 951 of file WasmUtil.hpp.

References m::wasm::CodeGenContext::Get(), inner_, and outer_.

◆ Scope() [3/4]

m::wasm::Scope::Scope ( const Scope )
privatedelete

◆ Scope() [4/4]

m::wasm::Scope::Scope ( Scope &&  )
privatedefault

◆ ~Scope()

m::wasm::Scope::~Scope ( )
inline

Member Function Documentation

◆ extract()

Environment m::wasm::Scope::extract ( )
inline

Ends this Scope by returning the currently active environment and setting the former one active again.

Definition at line 962 of file WasmUtil.hpp.

References m::wasm::CodeGenContext::env_, m::wasm::CodeGenContext::Get(), inner_, and outer_.

Friends And Related Function Documentation

◆ CodeGenContext

friend struct CodeGenContext
friend

Definition at line 824 of file WasmUtil.hpp.

Field Documentation

◆ inner_

Environment m::wasm::Scope::inner_
private

environment active during this Scopes lifetime

Definition at line 827 of file WasmUtil.hpp.

Referenced by extract(), and Scope().

◆ outer_

Environment* m::wasm::Scope::outer_
private

environment active before and after this Scopes lifetime

Definition at line 828 of file WasmUtil.hpp.

Referenced by extract(), Scope(), and ~Scope().


The documentation for this struct was generated from the following file: