replicode
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
r_exec::CSTOverlay Class Reference

#include <cst_controller.h>

Inheritance diagram for r_exec::CSTOverlay:
Inheritance graph
Collaboration diagram for r_exec::CSTOverlay:
Collaboration graph

Public Member Functions

 CSTOverlay (Controller *c, HLPBindingMap *bindings)
 
 ~CSTOverlay ()
 
bool reduce (View *input, CSTOverlay *&offspring)
 
void load_patterns ()
 
bool can_match (uint64_t now) const
 
- Public Member Functions inherited from r_exec::HLPOverlay
 HLPOverlay (Controller *c, const HLPBindingMap *bindings, bool load_code)
 
virtual ~HLPOverlay ()
 
HLPBindingMapget_bindings () const
 
Atomget_value_code (uint16_t id) const
 
uint16_t get_value_code_size (uint16_t id) const
 
Codeget_unpacked_object () const
 
bool evaluate_bwd_guards ()
 
- Public Member Functions inherited from r_exec::Overlay
virtual ~Overlay ()
 
virtual void reset ()
 
virtual Overlayreduce (r_exec::View *input)
 
void invalidate ()
 
virtual bool is_invalidated ()
 
r_code::CodegetObject () const
 
r_exec::ViewgetView () const
 
r_code::Codebuild_object (Atom head) const
 
- Public Member Functions inherited from core::_Object
virtual ~_Object ()
 
void incRef ()
 
virtual void decRef ()
 

Protected Member Functions

void inject_production ()
 
void update (HLPBindingMap *map, _Fact *input, _Fact *bound_pattern)
 
CSTOverlayget_offspring (HLPBindingMap *map, _Fact *input, _Fact *bound_pattern)
 
 CSTOverlay (const CSTOverlay *original)
 
- Protected Member Functions inherited from r_exec::HLPOverlay
bool evaluate_guards (uint16_t guard_set_iptr_index)
 
bool evaluate_fwd_guards ()
 
bool evaluate (uint16_t index)
 
bool check_fwd_timings ()
 
bool scan_bwd_guards ()
 
bool scan_location (uint16_t index)
 
bool scan_variable (uint16_t index)
 
void store_evidence (_Fact *evidence, bool prediction, bool simulation)
 
 HLPOverlay (Controller *c, HLPBindingMap *bindings)
 
- Protected Member Functions inherited from r_exec::Overlay
void load_code ()
 
void patch_code (uint16_t index, Atom value)
 
uint16_t get_last_patch_index ()
 
void unpatch_code (uint16_t patch_index)
 
void rollback ()
 
void commit ()
 
Codeget_core_object () const
 
 Overlay ()
 
 Overlay (Controller *c, bool load_code=true)
 
- Protected Member Functions inherited from core::_Object
 _Object ()
 

Protected Attributes

uint64_t match_deadline
 
double lowest_cfd
 
std::vector< P< _Fact > > inputs
 
std::unordered_set< P< _Fact >, PHash< _Fact > > predictions
 
std::unordered_set< P< Sim >, PHash< Sim > > simulations
 
- Protected Attributes inherited from r_exec::HLPOverlay
P< HLPBindingMapbindings
 
r_code::list< P< _Fact > > patterns
 
- Protected Attributes inherited from r_exec::Overlay
volatile uint64_t invalidated
 
Controllercontroller
 
r_code::vector< Atomvalues
 
Atomcode
 
uint16_t code_size
 
std::vector< uint16_t > patch_indices
 
uint16_t value_commit_index
 
- Protected Attributes inherited from core::_Object
std::atomic_int_fast64_t refCount
 

Additional Inherited Members

- Static Public Member Functions inherited from r_exec::HLPOverlay
static bool EvaluateBWDGuards (Controller *c, HLPBindingMap *bindings)
 
static bool CheckFWDTimings (Controller *c, HLPBindingMap *bindings)
 
static bool ScanBWDGuards (Controller *c, HLPBindingMap *bindings)
 

Constructor & Destructor Documentation

r_exec::CSTOverlay::CSTOverlay ( const CSTOverlay original)
protected

Here is the caller graph for this function:

r_exec::CSTOverlay::CSTOverlay ( Controller c,
HLPBindingMap bindings 
)
r_exec::CSTOverlay::~CSTOverlay ( )

Member Function Documentation

bool r_exec::CSTOverlay::can_match ( uint64_t  now) const
CSTOverlay * r_exec::CSTOverlay::get_offspring ( HLPBindingMap map,
_Fact input,
_Fact bound_pattern 
)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void r_exec::CSTOverlay::inject_production ( )
protected

Here is the call graph for this function:

Here is the caller graph for this function:

void r_exec::CSTOverlay::load_patterns ( )

Here is the call graph for this function:

Here is the caller graph for this function:

bool r_exec::CSTOverlay::reduce ( View input,
CSTOverlay *&  offspring 
)

Here is the call graph for this function:

void r_exec::CSTOverlay::update ( HLPBindingMap map,
_Fact input,
_Fact bound_pattern 
)
protected

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

std::vector<P<_Fact> > r_exec::CSTOverlay::inputs
protected
double r_exec::CSTOverlay::lowest_cfd
protected
uint64_t r_exec::CSTOverlay::match_deadline
protected
std::unordered_set<P<_Fact>, PHash<_Fact> > r_exec::CSTOverlay::predictions
protected
std::unordered_set<P<Sim>, PHash<Sim> > r_exec::CSTOverlay::simulations
protected

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