#include <orea/simm/imscheduleresults.hpp>
Public Member Functions | |
IMScheduleResults (const std::string &ccy="") | |
void | add (const CrifRecord::ProductClass &pc, const std::string &calculationCurrency, const QuantLib::Real grossIM, const QuantLib::Real grossRC, const QuantLib::Real netRC, const QuantLib::Real ngr, const QuantLib::Real scheduleIM) |
IMScheduleResult | get (const CrifRecord::ProductClass &pc) const |
Convert Schedule IM amounts to a different currency. More... | |
bool | has (const CrifRecord::ProductClass &pc) const |
bool | empty () const |
Return true if the container is empty, otherwise false. More... | |
void | clear () |
Clear the results from the container. More... | |
const std::map< CrifRecord::ProductClass, IMScheduleResult > & | data () const |
Return the map containing the results. More... | |
const std::string & | currency () const |
std::string & | currency () |
Private Attributes | |
std::map< CrifRecord::ProductClass, IMScheduleResult > | data_ |
std::string | ccy_ |
A container for Schedule IM results broken down by product class, risk class and margin type.
Definition at line 53 of file imscheduleresults.hpp.
IMScheduleResults | ( | const std::string & | ccy = "" | ) |
Definition at line 55 of file imscheduleresults.hpp.
void add | ( | const CrifRecord::ProductClass & | pc, |
const std::string & | calculationCurrency, | ||
const QuantLib::Real | grossIM, | ||
const QuantLib::Real | grossRC, | ||
const QuantLib::Real | netRC, | ||
const QuantLib::Real | ngr, | ||
const QuantLib::Real | scheduleIM | ||
) |
Add initial margin value im
to the results container for the given combination of Schedule product class, risk class and margin type
has
method before adding. Definition at line 33 of file imscheduleresults.cpp.
IMScheduleResult get | ( | const CrifRecord::ProductClass & | pc | ) | const |
Convert Schedule IM amounts to a different currency.
Get the initial margin value from the results container for the given combination of Schedule product class, risk class and margin type
QuantLib::Null<QuantLib::Real>
if there is no initial margin value in the results for the given combination. Can avoid this by first checking the results using the has
method. Definition at line 77 of file imscheduleresults.cpp.
bool has | ( | const CrifRecord::ProductClass & | pc | ) | const |
Check if there is an initial margin value in the results container for the given combination of Schedule product class, risk class and margin type
Definition at line 85 of file imscheduleresults.cpp.
bool empty | ( | ) | const |
Return true if the container is empty, otherwise false.
Definition at line 87 of file imscheduleresults.cpp.
void clear | ( | ) |
Clear the results from the container.
Definition at line 89 of file imscheduleresults.cpp.
const std::map< CrifRecord::ProductClass, IMScheduleResult > & data | ( | ) | const |
Return the map containing the results.
Definition at line 95 of file imscheduleresults.hpp.
const std::string & currency | ( | ) | const |
std::string & currency | ( | ) |
Definition at line 99 of file imscheduleresults.hpp.
|
private |
Definition at line 102 of file imscheduleresults.hpp.
|
private |
Definition at line 103 of file imscheduleresults.hpp.