Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Namespaces | Macros
scriptengine.cpp File Reference
#include <ored/scripting/astresetter.hpp>
#include <ored/scripting/safestack.hpp>
#include <ored/scripting/scriptengine.hpp>
#include <ored/scripting/scriptparser.hpp>
#include <ored/scripting/utilities.hpp>
#include <ored/utilities/log.hpp>
#include <ored/utilities/parsers.hpp>
#include <ored/utilities/to_string.hpp>
#include <ql/errors.hpp>
#include <ql/indexes/indexmanager.hpp>
#include <boost/timer/timer.hpp>

Go to the source code of this file.

Namespaces

namespace  ore
 Serializable Credit Default Swap.
 
namespace  ore::data
 

Macros

#define TRACE(message, n)
 

Macro Definition Documentation

◆ TRACE

#define TRACE (   message,
 
)
Value:
{ \
if (interactive_) { \
std::cerr << "\nScriptEngine: " << message << " at " << to_string((n).locationInfo) \
<< "\nexpr value = " << value.top() << "\ncurr filter = " << filter.top() << std::endl; \
std::cerr << printCodeContext(script_, &n); \
std::string c; \
do { \
std::cerr << "(c)ontext (q)uit "; \
std::getline(std::cin, c); \
if (c == "c") \
std::cerr << context_; \
else if (c == "q") \
interactive_ = false; \
} while (c == "c"); \
} \
}
bool & interactive_
const std::string script_
SafeStack< ValueType > value
SafeStack< Filter > filter
Context & context_

Definition at line 34 of file scriptengine.cpp.

Variable Documentation

◆ model_

const QuantLib::ext::shared_ptr<Model> model_

Definition at line 1147 of file scriptengine.cpp.

◆ size_

const Size size_

Definition at line 1148 of file scriptengine.cpp.

◆ script_

const std::string script_

Definition at line 1149 of file scriptengine.cpp.

◆ interactive_

bool& interactive_

Definition at line 1150 of file scriptengine.cpp.

◆ paylog_

QuantLib::ext::shared_ptr<PayLog> paylog_

Definition at line 1151 of file scriptengine.cpp.

◆ includePastCashflows_

bool includePastCashflows_

Definition at line 1152 of file scriptengine.cpp.

◆ context_

Context& context_

Definition at line 1154 of file scriptengine.cpp.

◆ lastVisitedNode_

ASTNode*& lastVisitedNode_

Definition at line 1155 of file scriptengine.cpp.

◆ filter

SafeStack<Filter> filter

Definition at line 1157 of file scriptengine.cpp.

◆ value

SafeStack<ValueType> value

Definition at line 1158 of file scriptengine.cpp.