LOOS 4.1.0
The Lightweight Object Oriented Structural analysis library/toolkit
|
The Kernel (virtual machine) for compiling and executing user-defined atom selections. More...
#include <Kernel.hpp>
Public Member Functions | |
~Kernel () | |
The data stack... | |
void | push (internal::Action *) |
Add a command, setting the data-stack pointer... | |
void | pop (void) |
void | execute (pAtom pa=pAtom()) |
Execute the stored commands for a specific atom. | |
void | clearActions (void) |
internal::ValueStack & | stack (void) |
Friends | |
std::ostream & | operator<< (std::ostream &, const Kernel &) |
The Kernel (virtual machine) for compiling and executing user-defined atom selections.
loos::Kernel::~Kernel | ( | ) |
The data stack...
Destroy all of the stored commands...
void loos::Kernel::execute | ( | pAtom | pa = pAtom() | ) |
Execute the stored commands for a specific atom.
If an exception occurs during processing, then the value stack will be cleared before the error is rethrown. However, it is probably unwise to try to use the Kernel object again.
If the value stack is not empty after executing, then a LOOSError will be thrown.