CXXR (C++ R)
Public Member Functions
CXXR::LoopException Class Reference

Exception thrown by R commands 'break' and 'next'. More...

#include <LoopException.hpp>

List of all members.

Public Member Functions

 LoopException (Environment *env, bool next_iteration)
 Constructor.
Environmentenvironment () const
 Evaluation environment.
bool next () const
 Continue with next iteration of the loop (if any)?

Detailed Description

Exception thrown by R commands 'break' and 'next'.


Constructor & Destructor Documentation

CXXR::LoopException::LoopException ( Environment env,
bool  next_iteration 
)
inline

Constructor.

Parameters:
envEvaluation environment in which 'break' or 'next' occurred.
next_iterationtrue for 'next'; false for 'break'.

Member Function Documentation

Environment* CXXR::LoopException::environment ( ) const
inline

Evaluation environment.

Returns:
Pointer to the evaluation environment in which 'break' or 'next' occurred.
bool CXXR::LoopException::next ( ) const
inline

Continue with next iteration of the loop (if any)?

Returns:
true if this LoopException arose from the R 'next' command; false if it arose from 'break'.

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