File: class_quant_lib_1_1_instrument.html

package info (click to toggle)
quantlib-refman-html 0.9.0-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 60,592 kB
  • ctags: 7,595
  • sloc: makefile: 30
file content (288 lines) | stat: -rw-r--r-- 22,925 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta name="robots" content="none">
<title>QuantLib: Instrument Class Reference</title>
<link rel="stylesheet" href="quantlib.css" type="text/css">
<link rel="stylesheet" href="print.css" type="text/css" media="print">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="icon" href="favicon.ico" type="image/x-icon">
</head>
<body>

<div id="container">
<div id="header">
<img class="titleimage"
 src="QL-title.jpg" width="212" height="47" border="0"
 alt="QuantLib">
<br>
<h3 class="subtitle">A free/open-source library for quantitative finance</h3>
</div>
<div id="menu">

<h3 class="navbartitle">Version 0.9.0</h3>

<hr>

<h3 class="navbartitle">Getting started</h3>
<ul class="navbarlist">
<li class="navlink"><a href="index.html">Introduction</a></li>
<li class="navlink"><a href="overview.html">Project overview</a></li>
<li class="navlink"><a href="where.html">Where to get QuantLib</a></li>
<li class="navlink"><a href="install.html">Installation</a></li>
<li class="navlink"><a href="config.html">Configuration</a></li>
<li class="navlink"><a href="usage.html">Usage</a></li>
<li class="navlink"><a href="history.html">Version history</a></li>
<li class="navlink"><a href="resources.html">Additional resources</a></li>
<li class="navlink"><a href="group.html">The QuantLib group</a></li>
<li class="navlink"><a href="license.html">Copyright and license</a></li>
</ul>

<hr>

<h3 class="navbartitle">Reference manual</h3>
<ul class="navbarlist">
<li class="navlink"><a href="modules.html">Modules</a></li>
<li class="navlink"><a href="hierarchy.html">Class Hierarchy</a></li>
<li class="navlink"><a href="annotated.html">Compound List</a></li>
<li class="navlink"><a href="files.html">File List</a></li>
<li class="navlink"><a href="functions.html">Compound Members</a></li>
<li class="navlink"><a href="globals.html">File Members</a></li>
<li class="navlink"><a href="bug.html">Known Bugs</a></li>
<li class="navlink"><a href="caveats.html">Caveats</a></li>
<li class="navlink"><a href="test.html">Test Suite</a></li>
<li class="navlink"><a href="examples.html">Examples</a></li>
</ul>
</div>

<div id="content">
<!--Doxygen-generated content-->

<!-- Generated by Doxygen 1.5.4 -->
<div class="nav">
<a class="el" href="namespace_quant_lib.html">QuantLib</a>::<a class="el" href="class_quant_lib_1_1_instrument.html">Instrument</a></div>
<h1>Instrument Class Reference</h1><!-- doxytag: class="QuantLib::Instrument" --><!-- doxytag: inherits="QuantLib::LazyObject" --><code>#include &lt;ql/instrument.hpp&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for Instrument:</div>
<div class="dynsection">
<p><center><img src="class_quant_lib_1_1_instrument__inherit__graph.png" border="0" usemap="#_instrument__inherit__map" alt="Inheritance graph"></center>
<map name="_instrument__inherit__map">
<area shape="rect" href="class_quant_lib_1_1_bond.html" title="Base bond class." alt="" coords="5,161,59,188"><area shape="rect" href="class_quant_lib_1_1_cap_floor.html" title="Base class for cap&#45;like instruments." alt="" coords="83,161,163,188"><area shape="rect" href="class_quant_lib_1_1_composite_instrument.html" title="Composite instrument" alt="" coords="187,161,349,188"><area shape="rect" href="class_quant_lib_1_1_forward.html" title="Abstract base forward class." alt="" coords="373,161,448,188"><area shape="rect" href="class_quant_lib_1_1_inflation_swap.html" title="Abstract base class for inflation swaps." alt="" coords="472,161,581,188"><area shape="rect" href="class_quant_lib_1_1_option.html" title="base option class" alt="" coords="605,161,669,188"><area shape="rect" href="class_quant_lib_1_1_stock.html" title="Simple stock class." alt="" coords="693,161,749,188"><area shape="rect" href="class_quant_lib_1_1_swap.html" title="Interest rate swap." alt="" coords="773,161,829,188"><area shape="rect" href="class_quant_lib_1_1_variance_swap.html" title="Variance swap." alt="" coords="853,161,965,188"><area shape="rect" href="class_quant_lib_1_1_lazy_object.html" title="Framework for calculation on demand and result caching." alt="" coords="480,7,573,33"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="class_quant_lib_1_1_instrument-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
Abstract instrument class. 
<p>
This class is purely abstract and defines the interface of concrete instruments which will be derived from this one.<p>
<dl compact><dt><b><a class="el" href="test.html#_test000004">Tests:</a></b></dt><dd>observability of class instances is checked. </dd></dl>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_quant_lib_1_1_instrument.html#ad6958108bfaef12bc4ccd6b3d7a7231">setupArguments</a> (PricingEngine::arguments *) const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_quant_lib_1_1_instrument.html#a0a3105ddebcff9f233fb76a8a31fafe">fetchResults</a> (const PricingEngine::results *) const </td></tr>

<tr><td colspan="2"><div class="groupHeader">Inspectors</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5a137dafb316bb3644a8f92bbf4c1abb"></a><!-- doxytag: member="QuantLib::Instrument::NPV" ref="5a137dafb316bb3644a8f92bbf4c1abb" args="() const " -->
<a class="el" href="group__types.html#g4bdf4bfe76b9ffa6fa64c47d8bfa0c78">Real</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_quant_lib_1_1_instrument.html#5a137dafb316bb3644a8f92bbf4c1abb">NPV</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">returns the net present value of the instrument. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cc5ad105e834e2360818b4f5046bd1f5"></a><!-- doxytag: member="QuantLib::Instrument::errorEstimate" ref="cc5ad105e834e2360818b4f5046bd1f5" args="() const " -->
<a class="el" href="group__types.html#g4bdf4bfe76b9ffa6fa64c47d8bfa0c78">Real</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_quant_lib_1_1_instrument.html#cc5ad105e834e2360818b4f5046bd1f5">errorEstimate</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">returns the error estimate on the NPV when available. <br></td></tr>
<tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="3eb7f55f55ede26a256f350d6a0540fd"></a><!-- doxytag: member="QuantLib::Instrument::result" ref="3eb7f55f55ede26a256f350d6a0540fd" args="(const std::string &amp;tag) const " -->
template&lt;typename T&gt; </td></tr>
<tr><td class="memTemplItemLeft" nowrap align="right" valign="top">T&nbsp;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_quant_lib_1_1_instrument.html#3eb7f55f55ede26a256f350d6a0540fd">result</a> (const std::string &amp;tag) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">returns any additional result returned by the pricing engine. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cf71758cad703eb3e151e4c9df184866"></a><!-- doxytag: member="QuantLib::Instrument::additionalResults" ref="cf71758cad703eb3e151e4c9df184866" args="() const " -->
const std::map&lt; std::string,<br>
 boost::any &gt; &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_quant_lib_1_1_instrument.html#cf71758cad703eb3e151e4c9df184866">additionalResults</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">returns all additional result returned by the pricing engine. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="672af63d5c16d2597399475923d21ad0"></a><!-- doxytag: member="QuantLib::Instrument::isExpired" ref="672af63d5c16d2597399475923d21ad0" args="() const =0" -->
virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_quant_lib_1_1_instrument.html#672af63d5c16d2597399475923d21ad0">isExpired</a> () const =0</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">returns whether the instrument is still tradable. <br></td></tr>
<tr><td colspan="2"><div class="groupHeader">Modifiers</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_quant_lib_1_1_instrument.html#f259149d11ddda95328d6a41be778078">setPricingEngine</a> (const boost::shared_ptr&lt; <a class="el" href="class_quant_lib_1_1_pricing_engine.html">PricingEngine</a> &gt; &amp;)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">set the pricing engine to be used.  <a href="#f259149d11ddda95328d6a41be778078"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">Calculations</div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_quant_lib_1_1_instrument.html#10873979f635888606e03f9cb2d8a096">calculate</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_quant_lib_1_1_instrument.html#1ea01b653cd3880c3e5d8bc34af412d3">setupExpired</a> () const </td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_quant_lib_1_1_instrument.html#02b90bbfee3ee29627939544fb59ec93">performCalculations</a> () const </td></tr>

<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ec8a3d48bdab47e807560f973bfa1569"></a><!-- doxytag: member="QuantLib::Instrument::engine_" ref="ec8a3d48bdab47e807560f973bfa1569" args="" -->
boost::shared_ptr&lt; <a class="el" href="class_quant_lib_1_1_pricing_engine.html">PricingEngine</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><b>engine_</b></td></tr>

<tr><td colspan="2"><div class="groupHeader">Results</div></td></tr>
<tr><td colspan="2"><div class="groupText">The value of this attribute and any other that derived classes might declare must be set during calculation. <br><br></div></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bb995b099094913d099029f2fd3936b8"></a><!-- doxytag: member="QuantLib::Instrument::NPV_" ref="bb995b099094913d099029f2fd3936b8" args="" -->
<a class="el" href="group__types.html#g4bdf4bfe76b9ffa6fa64c47d8bfa0c78">Real</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>NPV_</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1e9067e3af34538ab0ff6d744ff712ca"></a><!-- doxytag: member="QuantLib::Instrument::errorEstimate_" ref="1e9067e3af34538ab0ff6d744ff712ca" args="" -->
<a class="el" href="group__types.html#g4bdf4bfe76b9ffa6fa64c47d8bfa0c78">Real</a>&nbsp;</td><td class="memItemRight" valign="bottom"><b>errorEstimate_</b></td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="943dca9fb2114bd8a5fa4d5802ac6bba"></a><!-- doxytag: member="QuantLib::Instrument::additionalResults_" ref="943dca9fb2114bd8a5fa4d5802ac6bba" args="" -->
std::map&lt; std::string, boost::any &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><b>additionalResults_</b></td></tr>

</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="f259149d11ddda95328d6a41be778078"></a><!-- doxytag: member="QuantLib::Instrument::setPricingEngine" ref="f259149d11ddda95328d6a41be778078" args="(const boost::shared_ptr&lt; PricingEngine &gt; &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void setPricingEngine           </td>
          <td>(</td>
          <td class="paramtype">const boost::shared_ptr&lt; <a class="el" href="class_quant_lib_1_1_pricing_engine.html">PricingEngine</a> &gt; &amp;&nbsp;</td>
          <td class="paramname"> <em>e</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
set the pricing engine to be used. 
<p>
<dl compact><dt><b><a class="el" href="caveats.html#_caveats000031">Warning:</a></b></dt><dd>calling this method will have no effects in case the <b>performCalculation</b> method was overridden in a derived class. </dd></dl>

</div>
</div><p>
<a class="anchor" name="ad6958108bfaef12bc4ccd6b3d7a7231"></a><!-- doxytag: member="QuantLib::Instrument::setupArguments" ref="ad6958108bfaef12bc4ccd6b3d7a7231" args="(PricingEngine::arguments *) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void setupArguments           </td>
          <td>(</td>
          <td class="paramtype">PricingEngine::arguments *&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
When a derived argument structure is defined for an instrument, this method should be overridden to fill it. This is mandatory in case a pricing engine is used. 
<p>Reimplemented in <a class="el" href="class_quant_lib_1_1_continuous_averaging_asian_option.html#ad6958108bfaef12bc4ccd6b3d7a7231">ContinuousAveragingAsianOption</a>, <a class="el" href="class_quant_lib_1_1_discrete_averaging_asian_option.html#ad6958108bfaef12bc4ccd6b3d7a7231">DiscreteAveragingAsianOption</a>, <a class="el" href="class_quant_lib_1_1_asset_swap.html#769a037255393b166557200edad61038">AssetSwap</a>, <a class="el" href="class_quant_lib_1_1_barrier_option.html#ad6958108bfaef12bc4ccd6b3d7a7231">BarrierOption</a>, <a class="el" href="class_quant_lib_1_1_bond.html#ad6958108bfaef12bc4ccd6b3d7a7231">Bond</a>, <a class="el" href="class_quant_lib_1_1_cap_floor.html#ad6958108bfaef12bc4ccd6b3d7a7231">CapFloor</a>, <a class="el" href="class_quant_lib_1_1_cliquet_option.html#ad6958108bfaef12bc4ccd6b3d7a7231">CliquetOption</a>, <a class="el" href="class_quant_lib_1_1_dividend_vanilla_option.html#ad6958108bfaef12bc4ccd6b3d7a7231">DividendVanillaOption</a>, <a class="el" href="class_quant_lib_1_1_forward_vanilla_option.html#ad6958108bfaef12bc4ccd6b3d7a7231">ForwardVanillaOption</a>, <a class="el" href="class_quant_lib_1_1_continuous_floating_lookback_option.html#ad6958108bfaef12bc4ccd6b3d7a7231">ContinuousFloatingLookbackOption</a>, <a class="el" href="class_quant_lib_1_1_continuous_fixed_lookback_option.html#ad6958108bfaef12bc4ccd6b3d7a7231">ContinuousFixedLookbackOption</a>, <a class="el" href="class_quant_lib_1_1_multi_asset_option.html#ad6958108bfaef12bc4ccd6b3d7a7231">MultiAssetOption</a>, <a class="el" href="class_quant_lib_1_1_swap.html#ad6958108bfaef12bc4ccd6b3d7a7231">Swap</a>, <a class="el" href="class_quant_lib_1_1_swaption.html#ad6958108bfaef12bc4ccd6b3d7a7231">Swaption</a>, <a class="el" href="class_quant_lib_1_1_vanilla_swap.html#769a037255393b166557200edad61038">VanillaSwap</a>, <a class="el" href="class_quant_lib_1_1_variance_swap.html#769a037255393b166557200edad61038">VarianceSwap</a>, and <a class="el" href="class_quant_lib_1_1_option.html#ad6958108bfaef12bc4ccd6b3d7a7231">Option</a>.</p>

</div>
</div><p>
<a class="anchor" name="a0a3105ddebcff9f233fb76a8a31fafe"></a><!-- doxytag: member="QuantLib::Instrument::fetchResults" ref="a0a3105ddebcff9f233fb76a8a31fafe" args="(const PricingEngine::results *) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void fetchResults           </td>
          <td>(</td>
          <td class="paramtype">const PricingEngine::results *&nbsp;</td>
          <td class="paramname"> <em>r</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
When a derived result structure is defined for an instrument, this method should be overridden to read from it. This is mandatory in case a pricing engine is used. 
<p>Reimplemented in <a class="el" href="class_quant_lib_1_1_asset_swap.html#a0a3105ddebcff9f233fb76a8a31fafe">AssetSwap</a>, <a class="el" href="class_quant_lib_1_1_forward_vanilla_option.html#a0a3105ddebcff9f233fb76a8a31fafe">ForwardVanillaOption</a>, <a class="el" href="class_quant_lib_1_1_multi_asset_option.html#a0a3105ddebcff9f233fb76a8a31fafe">MultiAssetOption</a>, <a class="el" href="class_quant_lib_1_1_one_asset_option.html#a0a3105ddebcff9f233fb76a8a31fafe">OneAssetOption</a>, <a class="el" href="class_quant_lib_1_1_quanto_forward_vanilla_option.html#a0a3105ddebcff9f233fb76a8a31fafe">QuantoForwardVanillaOption</a>, <a class="el" href="class_quant_lib_1_1_quanto_vanilla_option.html#a0a3105ddebcff9f233fb76a8a31fafe">QuantoVanillaOption</a>, <a class="el" href="class_quant_lib_1_1_swap.html#a0a3105ddebcff9f233fb76a8a31fafe">Swap</a>, <a class="el" href="class_quant_lib_1_1_vanilla_swap.html#a0a3105ddebcff9f233fb76a8a31fafe">VanillaSwap</a>, and <a class="el" href="class_quant_lib_1_1_variance_swap.html#a0a3105ddebcff9f233fb76a8a31fafe">VarianceSwap</a>.</p>

</div>
</div><p>
<a class="anchor" name="10873979f635888606e03f9cb2d8a096"></a><!-- doxytag: member="QuantLib::Instrument::calculate" ref="10873979f635888606e03f9cb2d8a096" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void calculate           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This method performs all needed calculations by calling the <em><b>performCalculations</b></em> method.<p>
<dl compact><dt><b><a class="el" href="caveats.html#_caveats000069">Warning:</a></b></dt><dd>Objects cache the results of the previous calculation. Such results will be returned upon later invocations of <em><b>calculate</b></em>. When the results depend on arguments which could change between invocations, the lazy object must register itself as observer of such objects for the calculations to be performed again when they change.</dd></dl>
<dl compact><dt><b><a class="el" href="caveats.html#_caveats000069">Warning:</a></b></dt><dd>Should this method be redefined in derived classes, <a class="el" href="class_quant_lib_1_1_lazy_object.html#10873979f635888606e03f9cb2d8a096">LazyObject::calculate()</a> should be called in the overriding method. </dd></dl>

<p>Reimplemented from <a class="el" href="class_quant_lib_1_1_lazy_object.html#10873979f635888606e03f9cb2d8a096">LazyObject</a>.</p>

</div>
</div><p>
<a class="anchor" name="1ea01b653cd3880c3e5d8bc34af412d3"></a><!-- doxytag: member="QuantLib::Instrument::setupExpired" ref="1ea01b653cd3880c3e5d8bc34af412d3" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void setupExpired           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This method must leave the instrument in a consistent state when the expiration condition is met. 
<p>Reimplemented in <a class="el" href="class_quant_lib_1_1_multi_asset_option.html#1ea01b653cd3880c3e5d8bc34af412d3">MultiAssetOption</a>, <a class="el" href="class_quant_lib_1_1_one_asset_option.html#1ea01b653cd3880c3e5d8bc34af412d3">OneAssetOption</a>, <a class="el" href="class_quant_lib_1_1_swap.html#1ea01b653cd3880c3e5d8bc34af412d3">Swap</a>, <a class="el" href="class_quant_lib_1_1_variance_swap.html#1ea01b653cd3880c3e5d8bc34af412d3">VarianceSwap</a>, and <a class="el" href="class_quant_lib_1_1_year_on_year_inflation_swap.html#1ea01b653cd3880c3e5d8bc34af412d3">YearOnYearInflationSwap</a>.</p>

</div>
</div><p>
<a class="anchor" name="02b90bbfee3ee29627939544fb59ec93"></a><!-- doxytag: member="QuantLib::Instrument::performCalculations" ref="02b90bbfee3ee29627939544fb59ec93" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void performCalculations           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
In case a pricing engine is <b>not</b> 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. 
<p>Implements <a class="el" href="class_quant_lib_1_1_lazy_object.html#572dbe926524786c64db01e31dba7ab8">LazyObject</a>.</p>

<p>Reimplemented in <a class="el" href="class_quant_lib_1_1_convertible_bond.html#02b90bbfee3ee29627939544fb59ec93">ConvertibleBond</a>, <a class="el" href="class_quant_lib_1_1_composite_instrument.html#02b90bbfee3ee29627939544fb59ec93">CompositeInstrument</a>, <a class="el" href="class_quant_lib_1_1_fixed_rate_bond_forward.html#02b90bbfee3ee29627939544fb59ec93">FixedRateBondForward</a>, <a class="el" href="class_quant_lib_1_1_forward.html#02b90bbfee3ee29627939544fb59ec93">Forward</a>, <a class="el" href="class_quant_lib_1_1_stock.html#02b90bbfee3ee29627939544fb59ec93">Stock</a>, <a class="el" href="class_quant_lib_1_1_variance_swap.html#02b90bbfee3ee29627939544fb59ec93">VarianceSwap</a>, <a class="el" href="class_quant_lib_1_1_year_on_year_inflation_swap.html#02b90bbfee3ee29627939544fb59ec93">YearOnYearInflationSwap</a>, and <a class="el" href="class_quant_lib_1_1_zero_coupon_inflation_swap.html#02b90bbfee3ee29627939544fb59ec93">ZeroCouponInflationSwap</a>.</p>

</div>
</div><p>

</div>

<div class="footer">
<div class="endmatter">
Documentation generated by
<a href="http://www.doxygen.org">Doxygen</a> 1.5.4
</div>
</div>

</div>

</body>
</html>