Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | List of all members
MarketRiskConfiguration Class Reference

#include <orea/engine/riskfilter.hpp>

+ Collaboration diagram for MarketRiskConfiguration:

Public Types

enum class  RiskClass {
  All , InterestRate , Inflation , Credit ,
  Equity , FX , Commodity
}
 
enum class  RiskType { All , DeltaGamma , Vega , BaseCorrelation }
 

Public Member Functions

virtual ~MarketRiskConfiguration ()
 

Static Public Member Functions

static std::set< RiskClassriskClasses (bool includeAll=false)
 Give back a set containing the RiskClass values optionally excluding 'All'. More...
 
static std::set< RiskTyperiskTypes (bool includeAll=false)
 Give back a set containing the RiskType values optionally excluding 'All'. More...
 

Detailed Description

Definition at line 37 of file riskfilter.hpp.

Member Enumeration Documentation

◆ RiskClass

enum class RiskClass
strong

Risk class types in VaR plus an All type for convenience

Warning:
The ordering here matters. It is used in indexing in to correlation matrices for the correlation between risk classes.
Warning:
Internal methods rely on the first element being 'All'
Enumerator
All 
InterestRate 
Inflation 
Credit 
Equity 
FX 
Commodity 

Definition at line 48 of file riskfilter.hpp.

◆ RiskType

enum class RiskType
strong

Risk Type types in VaR plus an All type for convenience

Warning:
Internal methods rely on the first element being 'All'
Enumerator
All 
DeltaGamma 
Vega 
BaseCorrelation 

Definition at line 53 of file riskfilter.hpp.

Constructor & Destructor Documentation

◆ ~MarketRiskConfiguration()

virtual ~MarketRiskConfiguration ( )
virtual

Definition at line 39 of file riskfilter.hpp.

39{}

Member Function Documentation

◆ riskClasses()

std::set< MarketRiskConfiguration::RiskClass > riskClasses ( bool  includeAll = false)
static

Give back a set containing the RiskClass values optionally excluding 'All'.

Definition at line 83 of file riskfilter.cpp.

83 {
84 Size numberOfRiskClasses = riskClassMap.size();
85
86 // Return the set of values
87 set<RiskClass> result;
88 for (Size i = includeAll ? 0 : 1; i < numberOfRiskClasses; ++i)
89 result.insert(RiskClass(i));
90
91 return result;
92}
const bm< MarketRiskConfiguration::RiskClass > riskClassMap
Definition: riskfilter.cpp:45
+ Here is the caller graph for this function:

◆ riskTypes()

std::set< MarketRiskConfiguration::RiskType > riskTypes ( bool  includeAll = false)
static

Give back a set containing the RiskType values optionally excluding 'All'.

Definition at line 95 of file riskfilter.cpp.

95 {
96 Size numberOfRiskTypes = riskTypeMap.size();
97
98 // Return the set of values
99 set<RiskType> result;
100 for (Size i = includeAll ? 0 : 1; i < numberOfRiskTypes; ++i)
101 result.insert(RiskType(i));
102
103 return result;
104}
const bm< MarketRiskConfiguration::RiskType > riskTypeMap
Definition: riskfilter.cpp:53
+ Here is the caller graph for this function: