LOOS  v2.3.2
loos::Kernel Class Reference

The Kernel (virtual machine) for compiling and executing user-defined atom selections. More...

#include <Kernel.hpp>

Public Member Functions

 ~Kernel ()
 The data stack... More...
 
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. More...
 
void clearActions (void)
 
internal::ValueStackstack (void)
 

Friends

std::ostream & operator<< (std::ostream &, const Kernel &)
 

Detailed Description

The Kernel (virtual machine) for compiling and executing user-defined atom selections.

Definition at line 42 of file Kernel.hpp.

Constructor & Destructor Documentation

loos::Kernel::~Kernel ( )

The data stack...

Destroy all of the stored commands...

Definition at line 28 of file Kernel.cpp.

Member Function Documentation

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.

Definition at line 47 of file Kernel.cpp.


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