Stock Class Reference
[Financial instruments]

#include <ql/Instruments/stock.hpp>

Inheritance diagram for Stock:

Inheritance graph
[legend]
List of all members.

Detailed Description

Simple stock class.


Public Member Functions

 Stock (const RelinkableHandle< Quote > &quote)
bool isExpired () const
 returns whether the instrument is still tradable.


Protected Member Functions

void performCalculations () const


Member Function Documentation

void performCalculations  )  const [protected, virtual]
 

In case a pricing engine is not used, this method must be overridden to perform the actual calculations and set any needed results. In case a pricing engine is used, the default implementation can be used.

Reimplemented from Instrument.


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