QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
volcube.hpp
Go to the documentation of this file.
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3/*
4 Copyright (C) 2007 Ferdinando Ametrano
5
6 This file is part of QuantLib, a free-software/open-source library
7 for financial quantitative analysts and developers - http://quantlib.org/
8
9 QuantLib is free software: you can redistribute it and/or modify it
10 under the terms of the QuantLib license. You should have received a
11 copy of the license along with this program; if not, please email
12 <quantlib-dev@lists.sf.net>. The license is also available online at
13 <http://quantlib.org/license.shtml>.
14
15 This program is distributed in the hope that it will be useful, but WITHOUT
16 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17 FOR A PARTICULAR PURPOSE. See the license for more details.
18*/
19
20/*! \file volcube.hpp
21 \brief Interest rate (optionlet/swaption) volatility cube
22*/
23
24#ifndef quantlib_volatility_cube_h
25#define quantlib_volatility_cube_h
26
27#include <ql/handle.hpp>
28#include <ql/shared_ptr.hpp>
29#include <vector>
30
31namespace QuantLib {
32
33 class Period;
34 class AbcdAtmVolCurve;
35 class InterestRateVolSurface;
36 class InterestRateIndex;
37
39 public:
41 std::vector<Handle<AbcdAtmVolCurve> >);
42 const Period& minIndexTenor() const;
43 const Period& maxIndexTenor() const;
44 const std::vector<Handle<InterestRateVolSurface> >& surfaces() const;
45 const std::vector<Handle<AbcdAtmVolCurve> >& curves() const;
46 protected:
47 std::vector<Handle<InterestRateVolSurface> > surfaces_;
48 std::vector<Handle<AbcdAtmVolCurve> > curves_;
49 };
50
51 // inline
52
53 inline const std::vector<Handle<InterestRateVolSurface> >&
55 return surfaces_;
56 }
57
58 inline const std::vector<Handle<AbcdAtmVolCurve> >&
60 return curves_;
61 }
62
63}
64
65#endif
Shared handle to an observable.
Definition: handle.hpp:41
const Period & maxIndexTenor() const
const std::vector< Handle< InterestRateVolSurface > > & surfaces() const
Definition: volcube.hpp:54
std::vector< Handle< InterestRateVolSurface > > surfaces_
Definition: volcube.hpp:47
std::vector< Handle< AbcdAtmVolCurve > > curves_
Definition: volcube.hpp:48
const std::vector< Handle< AbcdAtmVolCurve > > & curves() const
Definition: volcube.hpp:59
const Period & minIndexTenor() const
Globally accessible relinkable pointer.
Definition: any.hpp:35
Maps shared_ptr to either the boost or std implementation.