LOOS 4.1.0
The Lightweight Object Oriented Structural analysis library/toolkit
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
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...
 
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::ValueStackstack (void)
 

Friends

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

Detailed Description

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

Constructor & Destructor Documentation

◆ ~Kernel()

loos::Kernel::~Kernel ( )

The data stack...

Destroy all of the stored commands...

Member Function Documentation

◆ execute()

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.


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