Serializable object holding leg data. More...
#include <ored/portfolio/legdata.hpp>
Inheritance diagram for LegData:
Collaboration diagram for LegData:Public Member Functions | |
| LegData () | |
| Default constructor. More... | |
| LegData (const QuantLib::ext::shared_ptr< LegAdditionalData > &innerLegData, bool isPayer, const string ¤cy, const ScheduleData &scheduleData=ScheduleData(), const string &dayCounter="", const std::vector< double > ¬ionals=std::vector< double >(), const std::vector< string > ¬ionalDates=std::vector< string >(), const string &paymentConvention="F", const bool notionalInitialExchange=false, const bool notionalFinalExchange=false, const bool notionalAmortizingExchange=false, const bool isNotResetXCCY=true, const string &foreignCurrency="", const double foreignAmount=0, const string &fxIndex="", const std::vector< AmortizationData > &amortizationData=std::vector< AmortizationData >(), const string &paymentLag="", const string ¬ionalPaymentLag="", const std::string &paymentCalendar="", const std::vector< std::string > &paymentDates=std::vector< std::string >(), const std::vector< Indexing > &indexing={}, const bool indexingFromAssetLeg=false, const string &lastPeriodDayCounter="") | |
| Constructor with concrete leg data. More... | |
Serialisation | |
| virtual void | fromXML (XMLNode *node) override |
| virtual XMLNode * | toXML (XMLDocument &doc) const override |
Inspectors | |
| bool | isPayer () const |
| const string & | currency () const |
| const ScheduleData & | schedule () const |
| const vector< double > & | notionals () const |
| const vector< string > & | notionalDates () const |
| const string & | dayCounter () const |
| const string & | paymentConvention () const |
| bool | notionalInitialExchange () const |
| bool | notionalFinalExchange () const |
| bool | notionalAmortizingExchange () const |
| bool | isNotResetXCCY () const |
| const string & | foreignCurrency () const |
| double | foreignAmount () const |
| const string & | fxIndex () const |
| const string & | paymentLag () const |
| const string & | notionalPaymentLag () const |
| const std::vector< AmortizationData > & | amortizationData () const |
| const std::string & | paymentCalendar () const |
| const string & | legType () const |
| QuantLib::ext::shared_ptr< LegAdditionalData > | concreteLegData () const |
| const std::set< std::string > & | indices () const |
| const std::vector< std::string > & | paymentDates () const |
| const std::vector< Indexing > & | indexing () const |
| const bool | indexingFromAssetLeg () const |
| const string & | lastPeriodDayCounter () const |
| const ScheduleData & | paymentSchedule () const |
| bool | strictNotionalDates () const |
Public Member Functions inherited from XMLSerializable | |
| virtual | ~XMLSerializable () |
| virtual void | fromXML (XMLNode *node)=0 |
| virtual XMLNode * | toXML (XMLDocument &doc) const =0 |
| void | fromFile (const std::string &filename) |
| void | toFile (const std::string &filename) const |
| void | fromXMLString (const std::string &xml) |
| Parse from XML string. More... | |
| std::string | toXMLString () const |
| Parse from XML string. More... | |
Serializable object holding leg data.
Definition at line 844 of file legdata.hpp.
| LegData | ( | ) |
| LegData | ( | const QuantLib::ext::shared_ptr< LegAdditionalData > & | innerLegData, |
| bool | isPayer, | ||
| const string & | currency, | ||
| const ScheduleData & | scheduleData = ScheduleData(), |
||
| const string & | dayCounter = "", |
||
| const std::vector< double > & | notionals = std::vector<double>(), |
||
| const std::vector< string > & | notionalDates = std::vector<string>(), |
||
| const string & | paymentConvention = "F", |
||
| const bool | notionalInitialExchange = false, |
||
| const bool | notionalFinalExchange = false, |
||
| const bool | notionalAmortizingExchange = false, |
||
| const bool | isNotResetXCCY = true, |
||
| const string & | foreignCurrency = "", |
||
| const double | foreignAmount = 0, |
||
| const string & | fxIndex = "", |
||
| const std::vector< AmortizationData > & | amortizationData = std::vector<AmortizationData>(), |
||
| const string & | paymentLag = "", |
||
| const string & | notionalPaymentLag = "", |
||
| const std::string & | paymentCalendar = "", |
||
| const std::vector< std::string > & | paymentDates = std::vector<std::string>(), |
||
| const std::vector< Indexing > & | indexing = {}, |
||
| const bool | indexingFromAssetLeg = false, |
||
| const string & | lastPeriodDayCounter = "" |
||
| ) |
Constructor with concrete leg data.
Definition at line 730 of file legdata.cpp.
Here is the call graph for this function:
|
overridevirtual |
Implements XMLSerializable.
Definition at line 759 of file legdata.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Implements XMLSerializable.
Definition at line 856 of file legdata.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool isPayer | ( | ) | const |
| const string & currency | ( | ) | const |
| const ScheduleData & schedule | ( | ) | const |
| const vector< double > & notionals | ( | ) | const |
| const vector< string > & notionalDates | ( | ) | const |
| const string & dayCounter | ( | ) | const |
| const string & paymentConvention | ( | ) | const |
| bool notionalInitialExchange | ( | ) | const |
Definition at line 879 of file legdata.hpp.
| bool notionalFinalExchange | ( | ) | const |
Definition at line 880 of file legdata.hpp.
| bool notionalAmortizingExchange | ( | ) | const |
Definition at line 881 of file legdata.hpp.
| bool isNotResetXCCY | ( | ) | const |
Definition at line 882 of file legdata.hpp.
| const string & foreignCurrency | ( | ) | const |
Definition at line 883 of file legdata.hpp.
| double foreignAmount | ( | ) | const |
Definition at line 884 of file legdata.hpp.
| const string & fxIndex | ( | ) | const |
Definition at line 885 of file legdata.hpp.
| const string & paymentLag | ( | ) | const |
| const string & notionalPaymentLag | ( | ) | const |
Definition at line 887 of file legdata.hpp.
| const std::vector< AmortizationData > & amortizationData | ( | ) | const |
Definition at line 888 of file legdata.hpp.
| const std::string & paymentCalendar | ( | ) | const |
| const string & legType | ( | ) | const |
| QuantLib::ext::shared_ptr< LegAdditionalData > concreteLegData | ( | ) | const |
| const std::set< std::string > & indices | ( | ) | const |
| const std::vector< std::string > & paymentDates | ( | ) | const |
Definition at line 893 of file legdata.hpp.
| const std::vector< Indexing > & indexing | ( | ) | const |
| const bool indexingFromAssetLeg | ( | ) | const |
Definition at line 895 of file legdata.hpp.
| const string & lastPeriodDayCounter | ( | ) | const |
Definition at line 896 of file legdata.hpp.
| const ScheduleData & paymentSchedule | ( | ) | const |
Definition at line 897 of file legdata.hpp.
| bool strictNotionalDates | ( | ) | const |
Definition at line 898 of file legdata.hpp.
| vector< double > & notionals | ( | ) |
Definition at line 903 of file legdata.hpp.
| ScheduleData & schedule | ( | ) |
Definition at line 904 of file legdata.hpp.
| vector< string > & notionalDates | ( | ) |
Definition at line 905 of file legdata.hpp.
| string & dayCounter | ( | ) |
Definition at line 906 of file legdata.hpp.
| bool & isPayer | ( | ) |
Definition at line 907 of file legdata.hpp.
| QuantLib::ext::shared_ptr< LegAdditionalData > & concreteLegData | ( | ) |
Definition at line 908 of file legdata.hpp.
| std::vector< Indexing > & indexing | ( | ) |
Definition at line 909 of file legdata.hpp.
| bool & indexingFromAssetLeg | ( | ) |
Definition at line 910 of file legdata.hpp.
| string & paymentConvention | ( | ) |
Definition at line 911 of file legdata.hpp.
| std::vector< std::string > & paymentDates | ( | ) |
Definition at line 912 of file legdata.hpp.
| string & lastPeriodDayCounter | ( | ) |
Definition at line 913 of file legdata.hpp.
| bool & strictNotionalDates | ( | ) |
Definition at line 914 of file legdata.hpp.
|
virtual |
Definition at line 850 of file legdata.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Store the set of ORE index names that appear on this leg.
Take the set appearing in LegAdditionalData::indices() and add on any appearing here. Currently, the only possible extra index appearing at LegData level is fxIndex.
Definition at line 926 of file legdata.hpp.
|
private |
Definition at line 929 of file legdata.hpp.
|
private |
Definition at line 930 of file legdata.hpp.
|
private |
Definition at line 931 of file legdata.hpp.
|
private |
Definition at line 932 of file legdata.hpp.
|
private |
Definition at line 933 of file legdata.hpp.
|
private |
Definition at line 934 of file legdata.hpp.
|
private |
Definition at line 935 of file legdata.hpp.
|
private |
Definition at line 936 of file legdata.hpp.
|
private |
Definition at line 937 of file legdata.hpp.
|
private |
Definition at line 938 of file legdata.hpp.
|
private |
Definition at line 939 of file legdata.hpp.
|
private |
Definition at line 940 of file legdata.hpp.
|
private |
Definition at line 941 of file legdata.hpp.
|
private |
Definition at line 942 of file legdata.hpp.
|
private |
Definition at line 943 of file legdata.hpp.
|
private |
Definition at line 944 of file legdata.hpp.
|
private |
Definition at line 945 of file legdata.hpp.
|
private |
Definition at line 946 of file legdata.hpp.
|
private |
Definition at line 946 of file legdata.hpp.
|
private |
Definition at line 947 of file legdata.hpp.
|
private |
Definition at line 948 of file legdata.hpp.
|
private |
Definition at line 949 of file legdata.hpp.
|
private |
Definition at line 950 of file legdata.hpp.
|
private |
Definition at line 951 of file legdata.hpp.
|
private |
Definition at line 952 of file legdata.hpp.
|
private |
Definition at line 953 of file legdata.hpp.