Settings Class Reference

#include <ql/settings.hpp>

Inheritance diagram for Settings:

Inheritance graph
[legend]
List of all members.

Detailed Description

global repository for run-time library settings


Public Member Functions

Evaluation date
Date evaluationDate () const
 the date at which pricing is to be performed
void setEvaluationDate (const Date &)
 change the evaluation date and notify registered instruments
boost::shared_ptr< ObservableevaluationDateGuard () const
 observable sending notification when the evaluation date changes

Friends

class Singleton<Settings>


Member Function Documentation

Date evaluationDate  )  const
 

the date at which pricing is to be performed

If not set, the current date will be used

void setEvaluationDate const Date  ) 
 

change the evaluation date and notify registered instruments

Note:
settings the evaluation date to the null date will cause evaluationDate() to return today's date.

boost::shared_ptr< Observable > evaluationDateGuard  )  const
 

observable sending notification when the evaluation date changes

Warning:
this observable does not send a notification when the evaluation date changes for natural causes---i.e., a date was not explicitly set (which results in today's date being used for pricing) and the current date changes as the clock strikes midnight.


QuantLib.org
QuantLib
Hosted by
SourceForge.net Logo
Documentation generated by
doxygen