|
souffle
2.0.2-371-g6315b36
|
Evaluation context for Interpreter operations. More...
#include <Context.h>

Public Member Functions | |
| void | addReturnValue (RamDomain val) |
| Add subroutine return value. More... | |
| RamDomain * | allocateNewTuple (size_t size) |
| Allocate a tuple. More... | |
| Context (Context &ctxt) | |
| This constructor is used when program enter a new scope. More... | |
| Context (size_t size=0) | |
| void | createView (const RelationWrapper &rel, size_t indexPos, size_t viewPos) |
| Create a view in the environment. More... | |
| RamDomain | getArgument (size_t i) const |
| Get subroutine Arguments. More... | |
| const std::vector< RamDomain > & | getArguments () const |
| Get subroutine Arguments. More... | |
| std::vector< RamDomain > & | getReturnValues () const |
| Get subroutine return value. More... | |
| ViewWrapper * | getView (size_t id) |
| Return a view. More... | |
| const RamDomain *& | operator[] (size_t index) |
| const RamDomain *const & | operator[] (size_t index) const |
| void | setArguments (const std::vector< RamDomain > &a) |
| Set subroutine Arguments. More... | |
| void | setReturnValues (std::vector< RamDomain > &retVals) |
| Set subroutine return value. More... | |
| virtual | ~Context ()=default |
Private Types | |
| using | ViewPtr = Own< ViewWrapper > |
Private Attributes | |
| VecOwn< RamDomain[]> | allocatedDataContainer |
| @bref Allocated data More... | |
| const std::vector< RamDomain > * | args = nullptr |
| Subroutine arguments. More... | |
| std::vector< const RamDomain * > | data |
| Run-time value. More... | |
| std::vector< RamDomain > * | returnValues = nullptr |
| Subroutine return value. More... | |
| VecOwn< ViewWrapper > | views |
| Views. More... | |
|
private |
|
inline |
|
inline |
|
virtualdefault |
|
inline |
Add subroutine return value.
Definition at line 88 of file Context.h.
Referenced by souffle::interpreter::Engine::execute().
|
inline |
Allocate a tuple.
allocatedDataContainer has the ownership of those tuples.
Definition at line 69 of file Context.h.
References returnValues.
|
inline |
Create a view in the environment.
Definition at line 110 of file Context.h.
Referenced by souffle::interpreter::Engine::execute().
|
inline |
Get subroutine Arguments.
Definition at line 104 of file Context.h.
Referenced by souffle::interpreter::Engine::execute().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 56 of file Context.h.
References allocatedDataContainer, and TCB_SPAN_NAMESPACE_NAME::detail::size().

|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
Subroutine return value.
Definition at line 128 of file Context.h.
Referenced by allocateNewTuple().
|
private |
1.8.17