QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
|
quote for the forward value of an index More...
#include <forwardvaluequote.hpp>
Public Member Functions | |
ForwardValueQuote (ext::shared_ptr< Index > index, const Date &fixingDate) | |
Public Member Functions inherited from Quote | |
~Quote () override=default | |
virtual Real | value () const =0 |
returns the current value More... | |
virtual bool | isValid () const =0 |
returns true if the Quote holds a valid value More... | |
Public Member Functions inherited from Observable | |
Observable () | |
Observable (const Observable &) | |
Observable & | operator= (const Observable &) |
Observable (Observable &&)=delete | |
Observable & | operator= (Observable &&)=delete |
virtual | ~Observable ()=default |
void | notifyObservers () |
Public Member Functions inherited from Observer | |
Observer ()=default | |
Observer (const Observer &) | |
Observer & | operator= (const Observer &) |
virtual | ~Observer () |
std::pair< iterator, bool > | registerWith (const ext::shared_ptr< Observable > &) |
void | registerWithObservables (const ext::shared_ptr< Observer > &) |
Size | unregisterWith (const ext::shared_ptr< Observable > &) |
void | unregisterWithAll () |
virtual void | update ()=0 |
virtual void | deepUpdate () |
Quote interface | |
ext::shared_ptr< Index > | index_ |
Date | fixingDate_ |
Real | value () const override |
returns the current value More... | |
bool | isValid () const override |
returns true if the Quote holds a valid value More... | |
void | update () override |
Additional Inherited Members | |
Public Types inherited from Observer | |
typedef set_type::iterator | iterator |
quote for the forward value of an index
Definition at line 34 of file forwardvaluequote.hpp.
ForwardValueQuote | ( | ext::shared_ptr< Index > | index, |
const Date & | fixingDate | ||
) |
|
overridevirtual |
|
overridevirtual |
returns true if the Quote holds a valid value
Implements Quote.
Definition at line 35 of file forwardvaluequote.cpp.
|
overridevirtual |
This method must be implemented in derived classes. An instance of Observer does not call this method directly: instead, it will be called by the observables the instance registered with when they need to notify any changes.
Implements Observer.
Definition at line 40 of file forwardvaluequote.cpp.
|
private |
Definition at line 46 of file forwardvaluequote.hpp.
|
private |
Definition at line 47 of file forwardvaluequote.hpp.