nsbaci 1.0
Loading...
Searching...
No Matches
InterpreterResult Struct Reference
Inheritance diagram for InterpreterResult:
Collaboration diagram for InterpreterResult:

Public Member Functions

 InterpreterResult (std::vector< nsbaci::Error > errs)
 InterpreterResult (nsbaci::Error error)
 InterpreterResult (InterpreterResult &&) noexcept=default
InterpreterResultoperator= (InterpreterResult &&) noexcept=default
 InterpreterResult (const InterpreterResult &)=default
InterpreterResultoperator= (const InterpreterResult &)=default
Public Member Functions inherited from nsbaci::BaseResult
 BaseResult ()
 Default constructor creates a successful result.
 BaseResult (std::vector< nsbaci::Error > errs)
 Constructs a result from a vector of errors.
 BaseResult (nsbaci::Error error)
 Constructs a failed result from a single error.
 BaseResult (BaseResult &&) noexcept=default
BaseResultoperator= (BaseResult &&) noexcept=default
 BaseResult (const BaseResult &)=default
BaseResultoperator= (const BaseResult &)=default

Public Attributes

bool needsInput = false
 Thread is waiting for input.
std::string inputPrompt
 Prompt to show for input.
std::string output
 Output produced by this instruction.
bool shouldBlock = false
 Thread should be blocked (semaphore wait).
uint32_t blockingSemaphore = 0
 Address of semaphore causing block.
bool shouldYield = false
 Thread should yield after instruction.
bool cobeginStart = false
 Starting a cobegin block.
bool coendWait = false
 Waiting for cobegin threads to finish.
int32_t expectedThreadCount = 0
 Number of threads to wait for at coend.
bool createThread = false
 Should create a new thread.
uint32_t newThreadPC = 0
 PC for new thread (if createThread is true).
bool signalSemaphore = false
 Signal was called on a semaphore.
uint32_t signaledSemaphore = 0
 Address of semaphore that was signaled.
Public Attributes inherited from nsbaci::BaseResult
bool ok
 True if the operation succeeded.
std::vector< nsbaci::Errorerrors
 Errors encountered (empty if ok is true).

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