CXXR (C++ R)
|
Exception class to convey return value. More...
#include <ReturnException.hpp>
Public Member Functions | |
ReturnException (Environment *the_environment, RObject *the_value) | |
Constructor. | |
Environment * | environment () const |
Target Environment of this ReturnException. | |
RObject * | value () const |
Payload of this ReturnException. |
Exception class to convey return value.
An exception of this class conveys a value back to a computation (typically a Closure application) operating within a specified working Environment, and is used for example to implement the R return command.
|
inline |
Constructor.
the_environment | Pointer to the working Environment of the computational context within which the exception is to be caught. (catch blocks within other contexts should rethrow the exception.) |
the_value | Pointer, possibly null, to the RObject to be conveyed back to the target Environment. |
|
inline |
Target Environment of this ReturnException.
|
inline |
Payload of this ReturnException.