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

some utility functions More...

#include <ored/portfolio/scriptedtrade.hpp>
#include <ored/scripting/ast.hpp>
#include <ored/scripting/context.hpp>
#include <ored/portfolio/referencedata.hpp>
#include <ored/portfolio/underlying.hpp>
#include <ored/utilities/indexparser.hpp>
#include <qle/time/futureexpirycalculator.hpp>
#include <qle/indexes/fallbackiborindex.hpp>
#include <qle/indexes/fallbackovernightindex.hpp>

Go to the source code of this file.

Classes

class  IndexInfo
 

Namespaces

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

Functions

std::vector< Date > coarsenDateGrid (const std::vector< Date > &dates, const std::string &rule, const Date &referenceDate)
 
std::pair< std::string, ScriptedTradeScriptData > getScript (const ScriptedTrade &scriptedTrade, const ScriptLibraryData &scriptLibrary, const std::string &purpose, const bool fallBackOnEmptyPurpose)
 
ASTNodePtr parseScript (const std::string &code)
 
std::pair< std::string, Period > convertIndexToCamCorrelationEntry (const std::string &i)
 
void checkDuplicateName (const QuantLib::ext::shared_ptr< Context > context, const std::string &name)
 
QuantLib::ext::shared_ptr< Context > makeContext (Size nPaths, const std::string &gridCoarsening, const std::vector< std::string > &schedulesEligibleForCoarsening, const QuantLib::ext::shared_ptr< ReferenceDataManager > &referenceData, const std::vector< ScriptedTradeEventData > &events, const std::vector< ScriptedTradeValueTypeData > &numbers, const std::vector< ScriptedTradeValueTypeData > &indices, const std::vector< ScriptedTradeValueTypeData > &currencies, const std::vector< ScriptedTradeValueTypeData > &daycounters)
 
void addNewSchedulesToContext (QuantLib::ext::shared_ptr< Context > context, const std::vector< ScriptedTradeScriptData::NewScheduleData > &newSchedules)
 
void amendContextVariablesSizes (QuantLib::ext::shared_ptr< Context > context, const Size newSize)
 
std::ostream & operator<< (std::ostream &o, const IndexInfo &i)
 
QuantLib::ext::shared_ptr< QuantExt::CommodityIndexparseScriptedCommodityIndex (const std::string &indexName, const QuantLib::Date &obsDate)
 
QL_DEPRECATED_DISABLE_WARNING std::pair< QuantLib::ext::shared_ptr< QuantLib::ZeroInflationIndex >, std::string > parseScriptedInflationIndex (const std::string &indexName)
 
QL_DEPRECATED_ENABLE_WARNING std::string scriptedIndexName (const QuantLib::ext::shared_ptr< Underlying > &underlying)
 
Size getInflationSimulationLag (const QuantLib::ext::shared_ptr< ZeroInflationIndex > &index)
 
std::map< std::string, std::vector< Real > > getCalibrationStrikes (const std::vector< ScriptedTradeScriptData::CalibrationData > &calibrationSpec, const QuantLib::ext::shared_ptr< Context > &context)
 

Detailed Description

some utility functions

Definition in file utilities.hpp.