QuantLib
A free/open-source library for quantitative finance
Fully annotated sources - version 1.22
Public Member Functions | List of all members
Quote Class Referenceabstract

purely virtual base class for market observables More...

#include <ql/quote.hpp>

+ Inheritance diagram for Quote:
+ Collaboration diagram for Quote:

Public Member Functions

 ~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 &)
 
Observableoperator= (const Observable &)
 
virtual ~Observable ()=default
 
void notifyObservers ()
 

Detailed Description

purely virtual base class for market observables

Tests:
the observability of class instances is tested.

Definition at line 37 of file quote.hpp.

Constructor & Destructor Documentation

◆ ~Quote()

~Quote ( )
overridedefault

Member Function Documentation

◆ value()

virtual Real value ( ) const
pure virtual

◆ isValid()

virtual bool isValid ( ) const
pure virtual