AERA
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
r_exec::_Context Class Referenceabstract
Inheritance diagram for r_exec::_Context:
r_exec::HLPContext r_exec::IPGMContext

Public Member Functions

virtual _Contextclone ()=0
 
virtual bool equal (const _Context *c) const =0
 
virtual Atomget_atom (uint16 i) const =0
 
virtual uint16 get_object_code_size () const =0
 
virtual uint16 get_children_count () const =0
 
virtual _Contextget_child_new (uint16 index) const =0
 
virtual _Contextdereference_new () const =0
 
void commit () const
 
void rollback () const
 
void patch_code (uint16 location, Atom value) const
 
void unpatch_code (uint16 patch_index) const
 
uint16 get_last_patch_index () const
 
void setAtomicResult (Atom a) const
 
void setTimestampResult (Timestamp t) const
 
void setDurationResult (std::chrono::microseconds d) const
 
uint16 setCompoundResultHead (Atom a) const
 
void addCompoundResultPart (Atom a) const
 
void trace (std::ostream &out) const
 

Protected Types

enum  Data {
  STEM = 0, REFERENCE = 1, VIEW = 2, MKS = 3,
  VWS = 4, VALUE_ARRAY = 5, BINDING_MAP = 6, UNDEFINED = 7
}
 

Protected Member Functions

 _Context (Atom *code, uint16 index, Overlay *overlay, Data data)
 

Protected Attributes

Overlay *const overlay_
 
Atomcode_
 
uint16 index_
 
Data data_
 

Detailed Description

Definition at line 96 of file _context.h.

Member Function Documentation

◆ dereference_new()

virtual _Context* r_exec::_Context::dereference_new ( ) const
pure virtual

Dereference this and return a new allocated copy. The caller is responsible to delete it.

Implemented in r_exec::IPGMContext, and r_exec::HLPContext.

◆ get_child_new()

virtual _Context* r_exec::_Context::get_child_new ( uint16  index) const
pure virtual

Call get_child and return a new allocated copy of the child. The caller is responsible to delete it.

Implemented in r_exec::IPGMContext, and r_exec::HLPContext.

◆ setCompoundResultHead()

uint16 r_exec::_Context::setCompoundResultHead ( Atom  a) const

Patch the code with a VALUE_PTR to the values array.

Parameters
aThe Atom that is the head of the compound value.
Returns
The index in the value array of the head.

Definition at line 112 of file _context.cpp.


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