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

A helper class to use a Block, thereby setting the Block active for code generation. More...

#include <WasmDSL.hpp>

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

Public Member Functions

 BlockUser (Block &block)
 
 ~BlockUser ()
 

Private Attributes

Blockblock_
 the block to use (for code gen)
 
::wasm::Block * old_block_ = nullptr
 the previously active, now old block
 

Detailed Description

A helper class to use a Block, thereby setting the Block active for code generation.

When the BlockUser is destructed, restores the previously active block for code generation.

Definition at line 1117 of file WasmDSL.hpp.

Constructor & Destructor Documentation

◆ BlockUser()

m::wasm::BlockUser::BlockUser ( Block block)
inline

Definition at line 1124 of file WasmDSL.hpp.

References m::wasm::Block::this_block_.

◆ ~BlockUser()

m::wasm::BlockUser::~BlockUser ( )
inline

Definition at line 1128 of file WasmDSL.hpp.

Field Documentation

◆ block_

Block& m::wasm::BlockUser::block_
private

the block to use (for code gen)

Definition at line 1120 of file WasmDSL.hpp.

◆ old_block_

::wasm::Block* m::wasm::BlockUser::old_block_ = nullptr
private

the previously active, now old block

Definition at line 1121 of file WasmDSL.hpp.


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