Ethereum  PoC-8
The C++ Implementation of Ethereum
dev::eth::EVM Class Reference

The RAII wrapper for an EVMC instance. More...

#include <EVMC.h>

Inheritance diagram for dev::eth::EVM:
dev::eth::EVMC

Classes

class  Result
 

Public Member Functions

 EVM (evmc_instance *_instance) noexcept
 
 ~EVM ()
 
 EVM (EVM const &)=delete
 
EVMoperator= (EVM)=delete
 
char const * name () const noexcept
 
char const * version () const noexcept
 
Result execute (ExtVMFace &_ext, int64_t gas)
 Handy wrapper for evmc_execute(). More...
 

Static Public Member Functions

static evmc_revision toRevision (EVMSchedule const &_schedule)
 Translate the EVMSchedule to EVMC revision. More...
 

Detailed Description

The RAII wrapper for an EVMC instance.

Definition at line 17 of file EVMC.h.

Constructor & Destructor Documentation

◆ EVM() [1/2]

dev::eth::EVM::EVM ( evmc_instance *  _instance)
explicitnoexcept

Definition at line 13 of file EVMC.cpp.

◆ ~EVM()

dev::eth::EVM::~EVM ( )
inline

Definition at line 22 of file EVMC.h.

◆ EVM() [2/2]

dev::eth::EVM::EVM ( EVM const &  )
delete

Member Function Documentation

◆ execute()

EVM::Result dev::eth::EVM::execute ( ExtVMFace _ext,
int64_t  gas 
)

Handy wrapper for evmc_execute().

Definition at line 39 of file EVMC.cpp.

◆ name()

char const* dev::eth::EVM::name ( ) const
inlinenoexcept

Definition at line 27 of file EVMC.h.

◆ operator=()

EVM& dev::eth::EVM::operator= ( EVM  )
delete

◆ toRevision()

evmc_revision dev::eth::EVM::toRevision ( EVMSchedule const &  _schedule)
static

Translate the EVMSchedule to EVMC revision.

Definition at line 119 of file EVMC.cpp.

◆ version()

char const* dev::eth::EVM::version ( ) const
inlinenoexcept

Definition at line 29 of file EVMC.h.


The documentation for this class was generated from the following files: