Files | |
| file | calendaradjustmentconfig.hpp |
| Interface for calendar modifications, additional holidays and business days. | |
| file | iborfallbackconfig.hpp |
| ibor fallback configuration | |
| file | blackscholesmodelbuilder.hpp |
| builder for an array of black scholes processes | |
| file | blackscholesmodelbuilderbase.hpp |
| builder for an array of black scholes processes | |
| file | calibrationpointcache.hpp |
| cache for relevant points on curve / vol surfaces | |
| file | localvolmodelbuilder.hpp |
| builder for an array of local vol processes | |
| file | commodityapomodelbuilder.hpp |
| model builder for commodityapos | |
| file | ast.hpp |
| abstract syntax tree for payoff scripting | |
| file | astprinter.hpp |
| ast printer | |
| file | asttoscriptconverter.hpp |
| ast to script converter | |
| file | computationgraphbuilder.hpp |
| computation graph builder | |
| file | context.hpp |
| script engine context holding variable names and values | |
| file | grammar.hpp |
| payoff script grammar | |
| file | amcmodel.hpp |
| additional interface for amc enabled models | |
| file | blackscholes.hpp |
| black scholes model for n underlyings (fx, equity or commodity) | |
| file | blackscholesbase.hpp |
| black scholes model base class for n underlyings (fx, equity or commodity) | |
| file | blackscholescg.hpp |
| black scholes model for n underlyings (fx, equity or commodity) | |
| file | blackscholescgbase.hpp |
| black scholes model base class for n underlyings (fx, equity or commodity) | |
| file | dummymodel.hpp |
| dummy model implementation | |
| file | fdgaussiancam.hpp |
| fd gaussian cross asset model for single underlying ir model | |
| file | gaussiancam.hpp |
| gaussian cross asset model for ir, fx, eq, com | |
| file | gaussiancamcg.hpp |
| Gaussian CAM model. | |
| file | localvol.hpp |
| local vol model for n underlyings (fx, equity or commodity) | |
| file | model.hpp |
| interface for model against which a script can be run | |
| file | modelcg.hpp |
| interface for model against which a script can be run | |
| file | modelcgimpl.hpp |
| basis implementation for a script engine model | |
| file | modelimpl.hpp |
| basis implementation for a script engine model | |
| file | randomastgenerator.hpp |
| random ast generator for testing purposes | |
| file | safestack.hpp |
| stack with safety checks and pop() that returns rvalue reference of top element | |
| file | scriptengine.hpp |
| scriptengine | |
| file | scriptparser.hpp |
| script parser | |
| file | staticanalyser.hpp |
| static script analyser | |
| file | utilities.hpp |
| some utility functions | |
| file | value.hpp |
| value type and operations | |
| file | bondindexbuilder.hpp |
| Interface for building a bond index. | |
| file | calendaradjustmentconfig.hpp |
| Interface for calendar modifications, additional holidays and business days. | |
| file | calendarparser.hpp |
| calendar parser singleton class | |
| file | calendarparser.hpp |
| calendar parser singleton class | |
| file | conventionsbasedfutureexpiry.hpp |
| Base class for classes that perform date calculations for future contracts. | |
| file | correlationmatrix.hpp |
| configuration class for building correlation matrices | |
| file | csvfilereader.hpp |
| utility class to access CSV files | |
| file | calendarparser.hpp |
| calendar parser singleton class | |
| file | currencyparser.hpp |
| currency parser singleton class | |
| file | fileio.hpp |
| Wrapper class for retrying file IO operations. | |
| file | flowanalysis.hpp |
| Extended QuantLib flow analysis. | |
| file | indexnametranslator.hpp |
| translates between QuantLib::Index::name() and ORE names | |
| file | indexparser.cpp |
| file | indexparser.hpp |
| Map text representations to QuantLib/QuantExt types. | |
| file | indexparser.hpp |
| Map text representations to QuantLib/QuantExt types. | |
| file | log.hpp |
| Classes and functions for log message handling. | |
| file | marketdata.hpp |
| market data related utilties | |
| file | osutils.hpp |
| Various OS specific utilities. | |
| file | parsers.cpp |
| file | parsers.hpp |
| Map text representations to QuantLib/QuantExt types. | |
| file | progressbar.hpp |
| Classes for progress reporting. | |
| file | serializationdate.hpp |
| support for QuantLib::Date serialization | |
| file | serializationdaycounter.hpp |
| support for QuantLib::DayCounter serialization | |
| file | serializationperiod.hpp |
| support for QuantLib::Period serialization | |
| file | strike.hpp |
| strike description | |
| file | timeperiod.hpp |
| non-contiguous time period handling | |
| file | to_string.cpp |
| file | to_string.hpp |
| string conversion utilities | |
| file | vectorutils.hpp |
| Utilities for sorting vectors using permutations. | |
| file | wildcard.hpp |
| utilities for wildcard handling | |
| file | wildcard.hpp |
| utilities for wildcard handling | |
| file | xmlutils.cpp |
| file | xmlutils.hpp |
| XML utility functions. | |
Classes | |
| class | CorrelationMatrixBuilder |
| class | Logger |
| The Base Custom Log Handler class. More... | |
| class | StderrLogger |
| Stderr Logger. More... | |
| class | FileLogger |
| FileLogger. More... | |
| class | BufferLogger |
| BufferLogger. More... | |
| class | IndependentLogger |
| Base Log handler class that utilises Boost logging to create log sinks. More... | |
| class | Log |
| Global static Log class. More... | |
| class | ProgressIndicator |
| Abstract Base class for a Progress Indicator. More... | |
| class | ProgressReporter |
| Base class for a Progress Reporter. More... | |
| class | SimpleProgressBar |
| Simple Progress Bar. More... | |
| class | ProgressLog |
| Progress Logger that writes the progress using the LOG macro. More... | |
| class | TimePeriod |
| Handles non-contiguous time period. More... | |
| class | xml_node< Ch > |
| XML Node. More... | |
| class | xml_document< Ch > |
| XML Document. More... | |
| class | XMLDocument |
| Small XML Document wrapper class. More... | |
| class | XMLSerializable |
| Base class for all serializable classes. More... | |
| class | XMLUtils |
| XML Utilities Class. More... | |
Functions | |
| bool | tryParseCdsInformation (string strInfo, CdsReferenceInformation &cdsInfo) |
| vector< vector< string > > | flowAnalysis (const QuantLib::Leg &) |
| Flow Analysis. More... | |
| QuantLib::ext::shared_ptr< FxIndex > | parseFxIndex (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< IborIndex > | parseIborIndex (const string &s, const Handle< YieldTermStructure > &h=Handle< YieldTermStructure >()) |
| Convert std::string to QuantLib::IborIndex. More... | |
| QuantLib::ext::shared_ptr< IborIndex > | parseIborIndex (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::EquityIndex2 > | parseEquityIndex (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< BondIndex > | parseBondIndex (const string &s) |
| Convert std::string to QuantExt::BondIndex. More... | |
| QuantLib::ext::shared_ptr< ConstantMaturityBondIndex > | parseConstantMaturityBondIndex (const string &s) |
| Convert std::string to QuantExt::ConstantMaturityBondIndex. More... | |
| QuantLib::ext::shared_ptr< QuantExt::CommodityIndex > | parseCommodityIndex (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) |
| string | getOsName () |
| Returns the OS Name. More... | |
| string | getOsVersion () |
| Returns the OS Version. More... | |
| string | getCpuName () |
| Returns the CPU name (e.g. "Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz". More... | |
| unsigned int | getNumberCores () |
| Returns the number of Cores available to the OS. More... | |
| string | getMemoryRAM () |
| Returns the total amount of memory available (installed RAM) More... | |
| string | getMemoryUsage () |
| Returns the current process memory usage. More... | |
| string | getPeakMemoryUsage () |
| Returns the current process peak memory usage. More... | |
| unsigned long long | getMemoryUsageBytes () |
| unsigned long long | getPeakMemoryUsageBytes () |
| Returns the current process peak memory usage in bytes. More... | |
| string | getUsername () |
| Returns the current username. More... | |
| string | getHostname () |
| Returns the machine name. More... | |
| string | getSystemDetails () |
| Returns all the above system details in a single string. More... | |
| void | dumpStacktrace () |
| Write the current stacktrace to stderr and LOG() with level = ALERT. More... | |
| void | setAssertHandler () |
| Set an assert handler that logs the stacktrace. More... | |
| Date | parseDate (const string &s) |
| Convert std::string to QuantLib::Date. More... | |
| Real | parseReal (const string &s) |
| Convert text to Real. More... | |
| Real | parseRealOrNull (const string &s) |
| Convert text to Real, empty string to Null<Real>() More... | |
| bool | tryParseReal (const string &s, QuantLib::Real &result) |
| Attempt to convert text to Real. More... | |
| Integer | parseInteger (const string &s) |
| Convert text to QuantLib::Integer. More... | |
| bool | parseBool (const string &s) |
| Convert text to bool. More... | |
| Calendar | parseCalendar (const string &s) |
| Convert text to QuantLib::Calendar. More... | |
| Period | parsePeriod (const string &s) |
| Convert text to QuantLib::Period. More... | |
| BusinessDayConvention | parseBusinessDayConvention (const string &s) |
| Convert text to QuantLib::BusinessDayConvention. More... | |
| DayCounter | parseDayCounter (const string &s) |
| Convert text to QuantLib::DayCounter. More... | |
| Currency | parseCurrency (const string &s) |
| Convert text to QuantLib::Currency. More... | |
| QuantExt::ConfigurableCurrency::Type | parseCurrencyType (const string &s) |
| Convert text to QuantExt::ConfigurableCurrency::Type (Major, Minor, Metal, Crypto) More... | |
| Currency | parseMinorCurrency (const string &s) |
| Convert text to QuantLib::Currency for minor currencies e.g GBp -> GBPCurrency() More... | |
| Currency | parseCurrencyWithMinors (const string &s) |
| Convert text to QuantLib::Currency. More... | |
| pair< Currency, Currency > | parseCurrencyPair (const string &s, const string &delimiters) |
| Convert text to std::pair<QuantLib::Currency, QuantLib::Currency> More... | |
| bool | checkCurrency (const string &code) |
| check for vaid currency code, including minors and pseudo currencies More... | |
| bool | isPseudoCurrency (const string &code) |
| check for pseudo currency = precious metal or crypto currency */ More... | |
| bool | isPreciousMetal (const string &code) |
| check for precious metal */ More... | |
| bool | isCryptoCurrency (const string &code) |
| check for crypto currency */ More... | |
| QuantLib::Real | convertMinorToMajorCurrency (const std::string &s, QuantLib::Real value) |
| Convert a value from a minor ccy to major. More... | |
| DateGeneration::Rule | parseDateGenerationRule (const string &s) |
| Convert text to QuantLib::DateGeneration::Rule. More... | |
| Frequency | parseFrequency (const string &s) |
| Convert text to QuantLib::Frequency. More... | |
| Compounding | parseCompounding (const string &s) |
| Convert text to QuantLib::Compounding;. More... | |
| Position::Type | parsePositionType (const string &s) |
| Convert text to QuantLib::Position::Type. More... | |
| Protection::Side | parseProtectionSide (const string &s) |
| Convert text to QuantLib::Protection::Side. More... | |
| Settlement::Type | parseSettlementType (const string &s) |
| Convert text to QuantLib::Settlement::Type. More... | |
| Settlement::Method | parseSettlementMethod (const string &s) |
| Convert text to QuantLib::Settlement::Method. More... | |
| Exercise::Type | parseExerciseType (const string &s) |
| Convert text to QuantLib::Exercise::Type. More... | |
| Option::Type | parseOptionType (const string &s) |
| Convert text to QuantLib::Option::Type. More... | |
| QuantLib::Bond::Price::Type | parseBondPriceType (const string &s) |
| Convert text to QuantLib::Bond::Price::Type. More... | |
| boost::variant< QuantLib::Date, QuantLib::Period > | parseDateOrPeriod (const string &s) |
| Convert text to QuantLib::Period or QuantLib::Date. More... | |
| void | parseDateOrPeriod (const string &s, QuantLib::Date &d, QuantLib::Period &p, bool &isDate) |
| Convert text to QuantLib::Period or QuantLib::Date (deprecated version) More... | |
| QuantLib::LsmBasisSystem::PolynomialType | parsePolynomType (const std::string &s) |
| Convert text to QuantLib::LsmBasisSystem::PolynomialType. More... | |
| std::ostream & | operator<< (std::ostream &os, QuantLib::LsmBasisSystem::PolynomialType a) |
| Write QuantLib::LsmBasisSystem::PolynomialType to stream. More... | |
| SobolBrownianGenerator::Ordering | parseSobolBrownianGeneratorOrdering (const std::string &s) |
| Convert text to QuantLib::SobolBrownianGenerator::Ordering. More... | |
| SobolRsg::DirectionIntegers | parseSobolRsgDirectionIntegers (const std::string &s) |
| Convert text to QuantLib::SobolRsg::DirectionIntegers. More... | |
| Weekday | parseWeekday (const string &s) |
| Month | parseMonth (const string &s) |
| PaymentLag | parsePaymentLag (const string &s) |
| Convert text to PaymentLag. More... | |
| template<class T > | |
| std::vector< T > | parseListOfValues (string s, std::function< T(string)> parser) |
| Convert comma separated list of values to vector of values. More... | |
| SequenceType | parseSequenceType (const std::string &s) |
| Convert string to sequence type. More... | |
| QuantLib::CPI::InterpolationType | parseObservationInterpolation (const std::string &s) |
| Convert string to observation interpolation. More... | |
| FdmSchemeDesc | parseFdmSchemeDesc (const std::string &s) |
| Convert string to fdm scheme desc. More... | |
| AssetClass | parseAssetClass (const std::string &s) |
| Convert text to ore::data::AssetClass. More... | |
| std::ostream & | operator<< (std::ostream &os, AssetClass a) |
| Write ore::data::AssetClass to stream. More... | |
| DeltaVolQuote::AtmType | parseAtmType (const std::string &s) |
| Convert text to QuantLib::DeltaVolQuote::AtmType. More... | |
| DeltaVolQuote::DeltaType | parseDeltaType (const std::string &s) |
| Convert text to QuantLib::DeltaVolQuote::DeltaType. More... | |
| QuantLib::Rounding::Type | parseRoundingType (const std::string &s) |
| Convert text to QuantLib::Rounding. More... | |
| Barrier::Type | parseBarrierType (const string &s) |
| Convert std::string to QuantLib::BarrierType. More... | |
| DoubleBarrier::Type | parseDoubleBarrierType (const string &s) |
| Convert std::string to QuantLib::DoubleBarrierType. More... | |
| template<class T > | |
| bool | tryParse (const std::string &str, T &obj, std::function< T(const std::string &)> parser) |
| VolatilityType | parseVolatilityQuoteType (const string &s) |
| CapFloor::Type | parseCapFloorType (const string &s) |
| YoYInflationCapFloor::Type | parseYoYInflationCapFloorType (const string &s) |
| QuantExt::CrossAssetModel::AssetType | parseCamAssetType (const string &s) |
| pair< string, string > | parseBoostAny (const boost::any &anyType, Size precision) |
| CdsOption::StrikeType | parseCdsOptionStrikeType (const string &s) |
| Average::Type | parseAverageType (const std::string &s) |
| QuantExt::BondIndex::PriceQuoteMethod | parsePriceQuoteMethod (const std::string &s) |
| string | fxDominance (const string &s1, const string &s2) |
| Convert FX pair to market standard dominance. More... | |
| MomentType | parseMomentType (const std::string &s) |
| Convert text to ore::data::MomentType. More... | |
| QuantLib::Pillar::Choice | parsePillarChoice (const std::string &s) |
| Convert text to QuantLib::Pillar::Choice. More... | |
| QuantExt::McMultiLegBaseEngine::RegressorModel | parseRegressorModel (const std::string &s) |
| Convert text to QuantExt::McMultiLegBaseEngine::RegressorModel. More... | |
| MporCashFlowMode | parseMporCashFlowMode (const std::string &s) |
| Convert text to MporCashFlowMode. More... | |
| std::ostream & | operator<< (std::ostream &os, MporCashFlowMode t) |
| Write MporCashFlowMode to stream. More... | |
| SabrParametricVolatility::ModelVariant | parseSabrParametricVolatilityModelVariant (const std::string &s) |
| Parse SabrParametricVolatility::ModelVariant. More... | |
| std::ostream & | operator<< (std::ostream &out, QuantExt::SabrParametricVolatility::ModelVariant m) |
| Write SabrParametricVolatility::ModelVariant. More... | |
| std::ostream & | operator<< (std::ostream &os, QuantLib::Exercise::Type type) |
| Write QuantLib::Exercise::Type. More... | |
| template<class Archive > | |
| void | serialize (Archive &ar, QuantLib::Date &d, const unsigned int) |
| Allow for serialization of QuantLib::Date without amending its class (non-intrusive) More... | |
| template<class Archive > | |
| void | serialize (Archive &ar, QuantLib::DayCounter &dc, const unsigned int) |
| Allow for serialization of QuantLib::Period without amending its class (non-intrusive) More... | |
| template<class Archive > | |
| void | serialize (Archive &ar, QuantLib::Period &p, const unsigned int) |
| Allow for serialization of QuantLib::Period without amending its class (non-intrusive) More... | |
| Strike | parseStrike (const std::string &s) |
| Convert text to Strike. More... | |
| std::ostream & | operator<< (std::ostream &out, const Strike &s) |
| Convert Strike to text. More... | |
| bool | operator== (const Strike &s1, const Strike &s2) |
| Logical comparison of strikes. More... | |
| QuantLib::Real | computeAbsoluteStrike (const Strike &s, const QuantLib::Real atm, const QuantLib::Real atmf) |
| Convenience function that computes an absolute strike. More... | |
| std::string | to_string (const QuantLib::Date &date) |
| Convert QuantLib::Date to std::string. More... | |
| string | to_string (bool aBool) |
| Convert bool to std::string. More... | |
| std::string | to_string (const QuantLib::Period &period) |
| Convert QuantLib::Period to std::string. More... | |
| template<class T > | |
| std::string | to_string (const std::vector< T > &vec, const std::string &sep=",") |
| Convert vector to std::string. More... | |
| template<class T > | |
| std::string | to_string (const std::set< T > &set, const std::string &sep=",") |
| Convert set to std::string. More... | |
| template<class T > | |
| std::string | to_string (const T &t) |
| Convert type to std::string. More... | |
| template<typename T , typename Compare > | |
| std::vector< std::size_t > | sort_permutation (const std::vector< T > &vec, Compare &compare) |
| template<typename T > | |
| std::vector< T > | apply_permutation (const std::vector< T > &vec, const std::vector< std::size_t > &p) |
| template<typename T > | |
| void | apply_permutation_in_place (std::vector< T > &vec, const std::vector< std::size_t > &p) |
Grouping of all utility related classes, functions and files
| bool tryParseCdsInformation | ( | std::string | strInfo, |
| CdsReferenceInformation & | cdsInfo | ||
| ) |
Attempt to parse string to CdsReferenceInformation
| [in] | strInfo | The string we wish to convert to CdsReferenceInformation |
| [out] | cdsInfo | The resulting CdsReferenceInformation if the parsing was successful. |
true if the parsing was successful and false if not.If the function receives a strInfo of the form ID|TIER|CCY|DOCCLAUSE with CCY being a valid ISO currency code, TIER being a valid CDS debt tier and DOCCLAUSE being a valid CDS documentation clause, the parsing should be successful. Here, DOCCLAUSE is optional.
Definition at line 449 of file creditdefaultswapdata.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::vector< std::vector< std::string > > flowAnalysis | ( | const QuantLib::Leg & | leg | ) |
Flow Analysis.
Definition at line 158 of file flowanalysis.cpp.
Here is the call graph for this function:| QuantLib::ext::shared_ptr< QuantExt::FxIndex > parseFxIndex | ( | const string & | s, |
| const Handle< Quote > & | fxSpot, | ||
| const Handle< YieldTermStructure > & | sourceYts, | ||
| const Handle< YieldTermStructure > & | targetYts, | ||
| const bool | useConventions | ||
| ) |
Convert std::string to QuantExt::FxIndex.
Definition at line 208 of file indexparser.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| QuantLib::ext::shared_ptr< IborIndex > parseIborIndex | ( | const string & | s, |
| const Handle< YieldTermStructure > & | h | ||
| ) |
Convert std::string to QuantLib::IborIndex.
Definition at line 254 of file indexparser.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| QuantLib::ext::shared_ptr< IborIndex > parseIborIndex | ( | 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.
In some cases, after parsing the IborIndex, we would like to know the exact tenor string that was part of the strIndex that was parsed. If we ask the resulting index for its tenor via the method Period InterestRateIndex::tenor(), it can be difficult to deduce the original tenor string. A simple example of this is MXN-TIIE-28D where if you call tenor() and then to_string(), you get 4W which is different than the original 28D that is passed in.
strIndex does not have a tenor component, as is the usual case for overnight indices, outTenor will be populated with the empty string.| bool tryParseIborIndex | ( | const string & | s, |
| QuantLib::ext::shared_ptr< IborIndex > & | index | ||
| ) |
Try to convert std::string to QuantLib::IborIndex.
Definition at line 244 of file indexparser.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool isGenericIborIndex | ( | const string & | indexName | ) |
Return true if the indexName is that of a generic ibor index, otherwise false.
Definition at line 442 of file indexparser.cpp.
Here is the caller graph for this function:| std::pair< bool, QuantLib::ext::shared_ptr< QuantLib::ZeroInflationIndex > > isInflationIndex | ( | const std::string & | indexName | ) |
Returns true as the first element in the pair if the indexName is that of an InflationIndex. The second element in the pair is an instance of the inflation index. If indexName is not an inflation index, the first element in the pair is false and the second element is a nullptr.
If inflation indices have been set up via ZeroInflationIndex entries in the Conventions, the conventions should be passed here. If not, the default nullptr parameter will be sufficient.
Definition at line 444 of file indexparser.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool isEquityIndex | ( | const string & | indexName | ) |
Return true if the indexName is that of an EquityIndex, otherwise false.
Definition at line 456 of file indexparser.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool isCommodityIndex | ( | const string & | indexName | ) |
Return true if the indexName is that of an CommodityIndex, otherwise false.
Definition at line 465 of file indexparser.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool isGenericIndex | ( | const std::string & | indexName | ) |
Return true if the indexName is that of an GenericIndex, otherwise false
Definition at line 474 of file indexparser.cpp.
Here is the call graph for this function:| QuantLib::ext::shared_ptr< QuantExt::EquityIndex2 > parseEquityIndex | ( | const string & | s | ) |
Convert std::string (e.g SP5) to QuantExt::EquityIndex.
Definition at line 227 of file indexparser.cpp.
Here is the caller graph for this function:| QuantLib::ext::shared_ptr< SwapIndex > parseSwapIndex | ( | const string & | s, |
| const Handle< YieldTermStructure > & | f, | ||
| const Handle< YieldTermStructure > & | d | ||
| ) |
Convert std::string to QuantLib::SwapIndex.
Definition at line 501 of file indexparser.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| QuantLib::ext::shared_ptr< ZeroInflationIndex > parseZeroInflationIndex | ( | const string & | s, |
| const Handle< ZeroInflationTermStructure > & | h | ||
| ) |
Convert std::string to QuantLib::ZeroInflationIndex.
Definition at line 616 of file indexparser.cpp.
Here is the caller graph for this function:| QuantLib::ext::shared_ptr< QuantExt::BondIndex > parseBondIndex | ( | const string & | name | ) |
Convert std::string to QuantExt::BondIndex.
Definition at line 728 of file indexparser.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| QuantLib::ext::shared_ptr< QuantExt::ConstantMaturityBondIndex > parseConstantMaturityBondIndex | ( | const string & | name | ) |
Convert std::string to QuantExt::ConstantMaturityBondIndex.
Definition at line 771 of file indexparser.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| QuantLib::ext::shared_ptr< QuantExt::CommodityIndex > parseCommodityIndex | ( | 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 |
||
| ) |
Convert std::string to QuantExt::ComodityIndex
This function can be used to parse commodity spot indices or commodity future indices:
name is of the form COMM-EXCHANGE:COMMODITYname is of the form COMM-EXCHANGE:CONTRACT:YYYY-MM or COMM-EXCHANGE:CONTRACT:YYYY-MM-DD | QuantLib::ext::shared_ptr< QuantLib::Index > parseGenericIndex | ( | const string & | s | ) |
Convert std::string (GENERIC-...) to QuantExt::Index.
Definition at line 237 of file indexparser.cpp.
Here is the caller graph for this function:| QuantLib::ext::shared_ptr< Index > parseIndex | ( | const string & | s | ) |
Convert std::string to QuantLib::Index.
Definition at line 909 of file indexparser.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool isOvernightIndex | ( | const string & | indexName | ) |
Return true if the indexName is that of an overnight index, otherwise false.
Definition at line 967 of file indexparser.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool isBmaIndex | ( | const string & | indexName | ) |
Return true if the indexName is that of an bma/sifma index, otherwise false.
Definition at line 979 of file indexparser.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::string internalIndexName | ( | const std::string & | indexName | ) |
In some cases, we allow multiple external ibor index names to represent the same QuantLib index. This function returns the unique index name that we use internally to represent the QuantLib index.
For example, we allow:
USD-FedFunds-1D and USD-FedFunds externally but we use USD-FedFunds internallyCAD-BA-tenor and CAD-CDOR-tenor externally but we use CAD-CDOR-tenor internally Definition at line 988 of file indexparser.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::string getOsName | ( | ) |
Returns the OS Name.
Definition at line 284 of file osutils.cpp.
Here is the caller graph for this function:| std::string getOsVersion | ( | ) |
Returns the OS Version.
Definition at line 296 of file osutils.cpp.
Here is the caller graph for this function:| std::string getCpuName | ( | ) |
Returns the CPU name (e.g. "Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz".
Definition at line 327 of file osutils.cpp.
Here is the caller graph for this function:| unsigned int getNumberCores | ( | ) |
Returns the number of Cores available to the OS.
Definition at line 329 of file osutils.cpp.
Here is the caller graph for this function:| std::string getMemoryRAM | ( | ) |
Returns the total amount of memory available (installed RAM)
Definition at line 350 of file osutils.cpp.
Here is the caller graph for this function:| std::string getMemoryUsage | ( | ) |
Returns the current process memory usage.
Definition at line 99 of file osutils.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::string getPeakMemoryUsage | ( | ) |
Returns the current process peak memory usage.
Definition at line 101 of file osutils.cpp.
Here is the call graph for this function:| unsigned long long getMemoryUsageBytes | ( | ) |
Returns the current process memory usage in bytes Parts of code taken from: http://nadeausoftware.com/articles/2012/07/c_c_tip_how_get_process_resident_set_size_physical_memory_use
Definition at line 337 of file osutils.cpp.
Here is the caller graph for this function:| unsigned long long getPeakMemoryUsageBytes | ( | ) |
Returns the current process peak memory usage in bytes.
Definition at line 207 of file osutils.cpp.
Here is the caller graph for this function:| std::string getUsername | ( | ) |
Returns the current username.
Definition at line 217 of file osutils.cpp.
Here is the caller graph for this function:| std::string getHostname | ( | ) |
Returns the machine name.
Definition at line 226 of file osutils.cpp.
Here is the caller graph for this function:| std::string getSystemDetails | ( | ) |
Returns all the above system details in a single string.
Definition at line 82 of file osutils.cpp.
Here is the call graph for this function:| void dumpStacktrace | ( | ) |
Write the current stacktrace to stderr and LOG() with level = ALERT.
Definition at line 361 of file osutils.cpp.
| void setAssertHandler | ( | ) |
Set an assert handler that logs the stacktrace.
Definition at line 405 of file osutils.cpp.
| QuantLib::Date parseDate | ( | const string & | s | ) |
Convert std::string to QuantLib::Date.
Definition at line 51 of file parsers.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| QuantLib::Real parseReal | ( | const string & | s | ) |
Convert text to Real.
Definition at line 112 of file parsers.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| Real parseRealOrNull | ( | const string & | s | ) |
Convert text to Real, empty string to Null<Real>()
Definition at line 120 of file parsers.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool tryParseReal | ( | const string & | s, |
| QuantLib::Real & | result | ||
| ) |
Attempt to convert text to Real.
Attempts to convert text to Real
| [in] | s | The string we wish to convert to a Real |
| [out] | result | The result of the conversion if it is valid. Null<Real>() if conversion fails |
Definition at line 126 of file parsers.cpp.
Here is the caller graph for this function:| QuantLib::Integer parseInteger | ( | const string & | s | ) |
Convert text to QuantLib::Integer.
Definition at line 136 of file parsers.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool parseBool | ( | const string & | s | ) |
Convert text to bool.
Definition at line 144 of file parsers.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| QuantLib::Calendar parseCalendar | ( | const string & | s | ) |
Convert text to QuantLib::Calendar.
For a joint calendar, the separate calendar names should be comma-delimited.
Definition at line 157 of file parsers.cpp.
Here is the caller graph for this function:| QuantLib::Period parsePeriod | ( | const string & | s | ) |
Convert text to QuantLib::Period.
Definition at line 171 of file parsers.cpp.
Here is the caller graph for this function:| QuantLib::BusinessDayConvention parseBusinessDayConvention | ( | const string & | s | ) |
Convert text to QuantLib::BusinessDayConvention.
Definition at line 173 of file parsers.cpp.
Here is the caller graph for this function:| QuantLib::DayCounter parseDayCounter | ( | const string & | s | ) |
Convert text to QuantLib::DayCounter.
Definition at line 209 of file parsers.cpp.
Here is the caller graph for this function:| QuantLib::Currency parseCurrency | ( | const string & | s | ) |
Convert text to QuantLib::Currency.
Definition at line 290 of file parsers.cpp.
Here is the caller graph for this function:| QuantExt::ConfigurableCurrency::Type parseCurrencyType | ( | const string & | s | ) |
Convert text to QuantExt::ConfigurableCurrency::Type (Major, Minor, Metal, Crypto)
Definition at line 292 of file parsers.cpp.
Here is the caller graph for this function:| QuantLib::Currency parseMinorCurrency | ( | const string & | s | ) |
Convert text to QuantLib::Currency for minor currencies e.g GBp -> GBPCurrency()
Definition at line 308 of file parsers.cpp.
| QuantLib::Currency parseCurrencyWithMinors | ( | const string & | s | ) |
Convert text to QuantLib::Currency.
Definition at line 310 of file parsers.cpp.
Here is the caller graph for this function:| std::pair< QuantLib::Currency, QuantLib::Currency > parseCurrencyPair | ( | const string & | s, |
| const string & | delimiters | ||
| ) |
Convert text to std::pair<QuantLib::Currency, QuantLib::Currency>
Definition at line 312 of file parsers.cpp.
| bool checkCurrency | ( | const string & | code | ) |
check for vaid currency code, including minors and pseudo currencies
Definition at line 316 of file parsers.cpp.
| bool isPseudoCurrency | ( | const string & | code | ) |
check for pseudo currency = precious metal or crypto currency */
Definition at line 318 of file parsers.cpp.
Here is the caller graph for this function:| bool isPreciousMetal | ( | const string & | code | ) |
check for precious metal */
Definition at line 320 of file parsers.cpp.
| bool isCryptoCurrency | ( | const string & | code | ) |
check for crypto currency */
Definition at line 322 of file parsers.cpp.
| QuantLib::Real convertMinorToMajorCurrency | ( | const std::string & | s, |
| QuantLib::Real | value | ||
| ) |
Convert a value from a minor ccy to major.
.i.e 100 GBp to 1 GBP
Definition at line 324 of file parsers.cpp.
Here is the caller graph for this function:| QuantLib::DateGeneration::Rule parseDateGenerationRule | ( | const string & | s | ) |
Convert text to QuantLib::DateGeneration::Rule.
Definition at line 328 of file parsers.cpp.
Here is the caller graph for this function:| QuantLib::Frequency parseFrequency | ( | const string & | s | ) |
Convert text to QuantLib::Frequency.
Definition at line 348 of file parsers.cpp.
Here is the caller graph for this function:| QuantLib::Compounding parseCompounding | ( | const string & | s | ) |
Convert text to QuantLib::Compounding;.
Definition at line 376 of file parsers.cpp.
Here is the caller graph for this function:| QuantLib::Position::Type parsePositionType | ( | const std::string & | s | ) |
Convert text to QuantLib::Position::Type.
Definition at line 404 of file parsers.cpp.
Here is the caller graph for this function:| QuantLib::Protection::Side parseProtectionSide | ( | const std::string & | s | ) |
Convert text to QuantLib::Protection::Side.
Definition at line 420 of file parsers.cpp.
| QuantLib::Settlement::Type parseSettlementType | ( | const std::string & | s | ) |
Convert text to QuantLib::Settlement::Type.
Definition at line 434 of file parsers.cpp.
Here is the caller graph for this function:| QuantLib::Settlement::Method parseSettlementMethod | ( | const std::string & | s | ) |
Convert text to QuantLib::Settlement::Method.
Definition at line 450 of file parsers.cpp.
Here is the caller graph for this function:| QuantLib::Exercise::Type parseExerciseType | ( | const std::string & | s | ) |
Convert text to QuantLib::Exercise::Type.
Definition at line 466 of file parsers.cpp.
Here is the caller graph for this function:| QuantLib::Option::Type parseOptionType | ( | const std::string & | s | ) |
Convert text to QuantLib::Option::Type.
Definition at line 481 of file parsers.cpp.
Here is the caller graph for this function:| QuantLib::Bond::Price::Type parseBondPriceType | ( | const string & | s | ) |
Convert text to QuantLib::Bond::Price::Type.
Definition at line 392 of file parsers.cpp.
Here is the caller graph for this function:| boost::variant< QuantLib::Date, QuantLib::Period > parseDateOrPeriod | ( | const string & | s | ) |
Convert text to QuantLib::Period or QuantLib::Date.
Definition at line 493 of file parsers.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void parseDateOrPeriod | ( | const string & | s, |
| QuantLib::Date & | d, | ||
| QuantLib::Period & | p, | ||
| bool & | isDate | ||
| ) |
Convert text to QuantLib::Period or QuantLib::Date (deprecated version)
| QuantLib::LsmBasisSystem::PolynomialType parsePolynomType | ( | const std::string & | s | ) |
Convert text to QuantLib::LsmBasisSystem::PolynomialType.
Definition at line 527 of file parsers.cpp.
Here is the caller graph for this function:| std::ostream & operator<< | ( | std::ostream & | os, |
| QuantLib::LsmBasisSystem::PolynomialType | a | ||
| ) |
Write QuantLib::LsmBasisSystem::PolynomialType to stream.
Definition at line 546 of file parsers.cpp.
| QuantLib::SobolBrownianGenerator::Ordering parseSobolBrownianGeneratorOrdering | ( | const std::string & | s | ) |
Convert text to QuantLib::SobolBrownianGenerator::Ordering.
Definition at line 567 of file parsers.cpp.
Here is the caller graph for this function:| QuantLib::SobolRsg::DirectionIntegers parseSobolRsgDirectionIntegers | ( | const std::string & | s | ) |
Convert text to QuantLib::SobolRsg::DirectionIntegers.
Definition at line 579 of file parsers.cpp.
Here is the caller graph for this function:| QuantLib::Weekday parseWeekday | ( | const std::string & | s | ) |
Convert text to QuantLib::Weekday
Definition at line 599 of file parsers.cpp.
Here is the caller graph for this function:| QuantLib::Month parseMonth | ( | const std::string & | s | ) |
Convert text to QuantLib::Month
Definition at line 613 of file parsers.cpp.
Here is the caller graph for this function:| PaymentLag parsePaymentLag | ( | const string & | s | ) |
Convert text to PaymentLag.
Definition at line 628 of file parsers.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::vector< T > parseListOfValues | ( | string | s, |
| std::function< T(string)> | parser | ||
| ) |
Convert comma separated list of values to vector of values.
Definition at line 323 of file parsers.hpp.
| QuantExt::SequenceType parseSequenceType | ( | const std::string & | s | ) |
Convert string to sequence type.
Definition at line 668 of file parsers.cpp.
Here is the caller graph for this function:| QuantLib::CPI::InterpolationType parseObservationInterpolation | ( | const std::string & | s | ) |
Convert string to observation interpolation.
Definition at line 682 of file parsers.cpp.
Here is the caller graph for this function:| QuantLib::FdmSchemeDesc parseFdmSchemeDesc | ( | const std::string & | s | ) |
Convert string to fdm scheme desc.
Definition at line 692 of file parsers.cpp.
Here is the caller graph for this function:| AssetClass parseAssetClass | ( | const std::string & | s | ) |
Convert text to ore::data::AssetClass.
Definition at line 710 of file parsers.cpp.
| std::ostream & operator<< | ( | std::ostream & | os, |
| AssetClass | a | ||
| ) |
Write ore::data::AssetClass to stream.
Definition at line 723 of file parsers.cpp.
| QuantLib::DeltaVolQuote::AtmType parseAtmType | ( | const std::string & | s | ) |
Convert text to QuantLib::DeltaVolQuote::AtmType.
Definition at line 746 of file parsers.cpp.
Here is the caller graph for this function:| QuantLib::DeltaVolQuote::DeltaType parseDeltaType | ( | const std::string & | s | ) |
Convert text to QuantLib::DeltaVolQuote::DeltaType.
Definition at line 763 of file parsers.cpp.
Here is the caller graph for this function:| QuantLib::Rounding::Type parseRoundingType | ( | const std::string & | s | ) |
Convert text to QuantLib::Rounding.
Definition at line 1027 of file parsers.cpp.
Here is the caller graph for this function:| QuantLib::Barrier::Type parseBarrierType | ( | const std::string & | s | ) |
Convert std::string to QuantLib::BarrierType.
Definition at line 1042 of file parsers.cpp.
Here is the caller graph for this function:| QuantLib::DoubleBarrier::Type parseDoubleBarrierType | ( | const std::string & | s | ) |
Convert std::string to QuantLib::DoubleBarrierType.
Definition at line 1061 of file parsers.cpp.
Here is the caller graph for this function:| bool tryParse | ( | const std::string & | str, |
| T & | obj, | ||
| std::function< T(const std::string &)> | parser | ||
| ) |
Attempt to parse string str to obj of type T using parser
| [in] | str | The string we wish to parse. |
| [out] | obj | The resulting object if the parsing was successful. |
| [in] | parser | The function to use to attempt to parse str. This function may throw. |
true if the parsing was successful and false if not. Definition at line 427 of file parsers.hpp.
Here is the caller graph for this function:| QuantLib::VolatilityType parseVolatilityQuoteType | ( | const std::string & | s | ) |
Convert text to QuantLib::VolatilityType
Definition at line 804 of file parsers.cpp.
| QuantLib::CapFloor::Type parseCapFloorType | ( | const std::string & | s | ) |
Convert text to QuantLib::CapFloor::Type
Definition at line 815 of file parsers.cpp.
Here is the caller graph for this function:| QuantLib::YoYInflationCapFloor::Type parseYoYInflationCapFloorType | ( | const std::string & | s | ) |
Convert text to QuantLib::YoYInflationCapFloor::Type
Definition at line 827 of file parsers.cpp.
Here is the caller graph for this function:| QuantExt::CrossAssetModel::AssetType parseCamAssetType | ( | const std::string & | s | ) |
Convert text to QuantExt::CrossAssetModelTypes::AssetType
Definition at line 839 of file parsers.cpp.
Here is the caller graph for this function:| std::pair< string, string > parseBoostAny | ( | const boost::any & | anyType, |
| Size | precision = 8 |
||
| ) |
Convert boost::any to pair<string,string>, including the valueType and the value
Definition at line 859 of file parsers.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| QuantExt::CdsOption::StrikeType parseCdsOptionStrikeType | ( | const std::string & | s | ) |
Convert text to QuantExt::CdsOption::StrikeType
Definition at line 1240 of file parsers.cpp.
Here is the caller graph for this function:| QuantLib::Average::Type parseAverageType | ( | const std::string & | s | ) |
Convert text to QuantLib::Average::Type
Definition at line 1251 of file parsers.cpp.
| QuantExt::BondIndex::PriceQuoteMethod parsePriceQuoteMethod | ( | const std::string & | s | ) |
Convert text to QuantExt::BondData::PriceQuoteMethod
Definition at line 1261 of file parsers.cpp.
Here is the caller graph for this function:| string fxDominance | ( | const string & | s1, |
| const string & | s2 | ||
| ) |
Convert FX pair to market standard dominance.
Convert FX pair to market standard dominance, e.g. "USD" & "GBP" -> "GBPUSD", "USD" & "JPY" -> "USDJPY"
Definition at line 1296 of file parsers.cpp.
Here is the caller graph for this function:| MomentType parseMomentType | ( | const std::string & | s | ) |
Convert text to ore::data::MomentType.
Definition at line 1361 of file parsers.cpp.
Here is the caller graph for this function:| QuantLib::Pillar::Choice parsePillarChoice | ( | const std::string & | s | ) |
Convert text to QuantLib::Pillar::Choice.
Definition at line 1403 of file parsers.cpp.
Here is the caller graph for this function:| QuantExt::McMultiLegBaseEngine::RegressorModel parseRegressorModel | ( | const std::string & | s | ) |
Convert text to QuantExt::McMultiLegBaseEngine::RegressorModel.
Definition at line 1418 of file parsers.cpp.
Here is the caller graph for this function:| MporCashFlowMode parseMporCashFlowMode | ( | const string & | s | ) |
Convert text to MporCashFlowMode.
Definition at line 1428 of file parsers.cpp.
| std::ostream & operator<< | ( | std::ostream & | out, |
| MporCashFlowMode | t | ||
| ) |
Write MporCashFlowMode to stream.
Definition at line 1441 of file parsers.cpp.
| QuantExt::SabrParametricVolatility::ModelVariant parseSabrParametricVolatilityModelVariant | ( | const std::string & | s | ) |
Parse SabrParametricVolatility::ModelVariant.
Definition at line 1458 of file parsers.cpp.
Here is the caller graph for this function:| std::ostream & operator<< | ( | std::ostream & | out, |
| SabrParametricVolatility::ModelVariant | m | ||
| ) |
Write SabrParametricVolatility::ModelVariant.
Definition at line 1478 of file parsers.cpp.
| std::ostream & operator<< | ( | std::ostream & | os, |
| QuantLib::Exercise::Type | type | ||
| ) |
Write QuantLib::Exercise::Type.
| void serialize | ( | Archive & | ar, |
| QuantLib::Date & | d, | ||
| const unsigned int | |||
| ) |
Allow for serialization of QuantLib::Date without amending its class (non-intrusive)
Definition at line 37 of file serializationdate.hpp.
| void serialize | ( | Archive & | ar, |
| QuantLib::DayCounter & | dc, | ||
| const unsigned int | |||
| ) |
Allow for serialization of QuantLib::Period without amending its class (non-intrusive)
Definition at line 39 of file serializationdaycounter.hpp.
Here is the call graph for this function:| void serialize | ( | Archive & | ar, |
| QuantLib::Period & | p, | ||
| const unsigned int | |||
| ) |
Allow for serialization of QuantLib::Period without amending its class (non-intrusive)
Definition at line 37 of file serializationperiod.hpp.
| Strike parseStrike | ( | const std::string & | s | ) |
Convert text to Strike.
Definition at line 30 of file strike.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| std::ostream & operator<< | ( | std::ostream & | out, |
| const Strike & | s | ||
| ) |
Convert Strike to text.
Definition at line 111 of file strike.cpp.
Logical comparison of strikes.
Definition at line 161 of file strike.cpp.
| QuantLib::Real computeAbsoluteStrike | ( | const Strike & | s, |
| const QuantLib::Real | atm, | ||
| const QuantLib::Real | atmf | ||
| ) |
Convenience function that computes an absolute strike.
Definition at line 167 of file strike.cpp.
| std::string to_string | ( | const QuantLib::Date & | date | ) |
Convert QuantLib::Date to std::string.
Returns date as a string in YYYY-MM-DD format, which matches QuantLib::io::iso_date() However that function can have issues with locale so we have a local snprintf() based version.
If date == Date() returns 1900-01-01 so the above format is preserved.
Here is the call graph for this function:| std::string to_string | ( | bool | aBool | ) |
Convert bool to std::string.
Returns "true" for true and "false" for false
Definition at line 57 of file to_string.cpp.
Here is the call graph for this function:| std::string to_string | ( | const QuantLib::Period & | period | ) |
Convert QuantLib::Period to std::string.
Returns Period as a string as up to QuantLib 1.25, e.g. 13M is written as 1Y1M etc.
Here is the call graph for this function:| std::string to_string | ( | const std::vector< T > & | vec, |
| const std::string & | sep = "," |
||
| ) |
Convert vector to std::string.
Returns a vector into a single string, with elemenst separated by Period as a string as up to QuantLib 1.25, e.g. 13M is written as 1Y1M etc.
Definition at line 66 of file to_string.hpp.
Here is the call graph for this function:| std::string to_string | ( | const std::set< T > & | set, |
| const std::string & | sep = "," |
||
| ) |
Convert set to std::string.
Definition at line 80 of file to_string.hpp.
Here is the call graph for this function:| std::string to_string | ( | const T & | t | ) |
Convert type to std::string.
Utility to give to_string() interface to classes and enums that have ostream<< operators defined.
Definition at line 97 of file to_string.hpp.
Here is the call graph for this function:| std::vector< std::size_t > sort_permutation | ( | const std::vector< T > & | vec, |
| Compare & | compare | ||
| ) |
Definition at line 38 of file vectorutils.hpp.
Here is the caller graph for this function:| std::vector< T > apply_permutation | ( | const std::vector< T > & | vec, |
| const std::vector< std::size_t > & | p | ||
| ) |
Definition at line 45 of file vectorutils.hpp.
| void apply_permutation_in_place | ( | std::vector< T > & | vec, |
| const std::vector< std::size_t > & | p | ||
| ) |
Definition at line 51 of file vectorutils.hpp.
Here is the caller graph for this function: