Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Namespaces | Functions
indexparser.hpp File Reference

Map text representations to QuantLib/QuantExt types. More...

#include <ql/index.hpp>
#include <ql/indexes/iborindex.hpp>
#include <ql/indexes/inflationindex.hpp>
#include <ql/indexes/swapindex.hpp>
#include <qle/indexes/bmaindexwrapper.hpp>
#include <qle/indexes/bondindex.hpp>
#include <qle/indexes/commodityindex.hpp>
#include <qle/indexes/equityindex.hpp>
#include <qle/indexes/fxindex.hpp>

Go to the source code of this file.

Namespaces

namespace  ore
 Serializable Credit Default Swap.
 
namespace  ore::data
 

Functions

QuantLib::ext::shared_ptr< FxIndexparseFxIndex (const string &s, const Handle< Quote > &fxSpot=Handle< Quote >(), const Handle< YieldTermStructure > &sourceYts=Handle< YieldTermStructure >(), const Handle< YieldTermStructure > &targetYts=Handle< YieldTermStructure >(), const bool useConventions=false)
 Convert std::string to QuantExt::FxIndex. More...
 
QuantLib::ext::shared_ptr< IborIndexparseIborIndex (const string &s, const Handle< YieldTermStructure > &h=Handle< YieldTermStructure >())
 Convert std::string to QuantLib::IborIndex. More...
 
QuantLib::ext::shared_ptr< IborIndexparseIborIndex (const std::string &strIndex, std::string &outTenor, const QuantLib::Handle< QuantLib::YieldTermStructure > &h=QuantLib::Handle< QuantLib::YieldTermStructure >())
 Convert std::string to QuantLib::IborIndex and return the tenor string component of the index. More...
 
bool tryParseIborIndex (const string &s, QuantLib::ext::shared_ptr< IborIndex > &index)
 Try to convert std::string to QuantLib::IborIndex. More...
 
bool isGenericIborIndex (const string &indexName)
 Return true if the indexName is that of a generic ibor index, otherwise false. More...
 
pair< bool, QuantLib::ext::shared_ptr< ZeroInflationIndex > > isInflationIndex (const string &indexName)
 
bool isEquityIndex (const std::string &indexName)
 Return true if the indexName is that of an EquityIndex, otherwise false. More...
 
bool isCommodityIndex (const std::string &indexName)
 Return true if the indexName is that of an CommodityIndex, otherwise false. More...
 
bool isGenericIndex (const string &indexName)
 
QuantLib::ext::shared_ptr< QuantExt::EquityIndex2parseEquityIndex (const string &s)
 Convert std::string (e.g SP5) to QuantExt::EquityIndex. More...
 
QuantLib::ext::shared_ptr< SwapIndex > parseSwapIndex (const string &s, const Handle< YieldTermStructure > &forwarding=Handle< YieldTermStructure >(), const Handle< YieldTermStructure > &discounting=Handle< YieldTermStructure >())
 Convert std::string to QuantLib::SwapIndex. More...
 
QuantLib::ext::shared_ptr< ZeroInflationIndex > parseZeroInflationIndex (const string &s, const Handle< ZeroInflationTermStructure > &h=Handle< ZeroInflationTermStructure >())
 Convert std::string to QuantLib::ZeroInflationIndex. More...
 
QuantLib::ext::shared_ptr< ZeroInflationIndex > parseZeroInflationIndex (const string &s, bool isInterpolated, const Handle< ZeroInflationTermStructure > &h)
 
QuantLib::ext::shared_ptr< BondIndexparseBondIndex (const string &s)
 Convert std::string to QuantExt::BondIndex. More...
 
QuantLib::ext::shared_ptr< ConstantMaturityBondIndexparseConstantMaturityBondIndex (const string &s)
 Convert std::string to QuantExt::ConstantMaturityBondIndex. More...
 
QuantLib::ext::shared_ptr< QuantExt::CommodityIndexparseCommodityIndex (const std::string &name, bool hasPrefix=true, const QuantLib::Handle< QuantExt::PriceTermStructure > &ts=QuantLib::Handle< QuantExt::PriceTermStructure >(), const QuantLib::Calendar &cal=QuantLib::NullCalendar(), const bool enforceFutureIndex=true)
 
QuantLib::ext::shared_ptr< QuantLib::Index > parseGenericIndex (const string &s)
 Convert std::string (GENERIC-...) to QuantExt::Index. More...
 
QuantLib::ext::shared_ptr< Index > parseIndex (const string &s)
 Convert std::string to QuantLib::Index. More...
 
bool isOvernightIndex (const std::string &indexName)
 Return true if the indexName is that of an overnight index, otherwise false. More...
 
bool isBmaIndex (const std::string &indexName)
 Return true if the indexName is that of an bma/sifma index, otherwise false. More...
 
string internalIndexName (const string &indexName)
 
bool isFxIndex (const std::string &indexName)
 
std::string inverseFxIndex (const std::string &indexName)
 

Detailed Description

Map text representations to QuantLib/QuantExt types.

Definition in file indexparser.hpp.