Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | Private Attributes | List of all members
LegAdditionalData Class Reference

Serializable Additional Leg Data. More...

#include <ored/portfolio/legdata.hpp>

+ Inheritance diagram for LegAdditionalData:
+ Collaboration diagram for LegAdditionalData:

Public Member Functions

 LegAdditionalData (const string &legType, const string &legNodeName)
 
 LegAdditionalData (const string &legType)
 
const string & legType () const
 
const string & legNodeName () const
 
const std::set< std::string > & indices () const
 
- Public Member Functions inherited from XMLSerializable
virtual ~XMLSerializable ()
 
virtual void fromXML (XMLNode *node)=0
 
virtual XMLNodetoXML (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...
 

Protected Attributes

std::set< std::string > indices_
 

Private Attributes

string legType_
 
string legNodeName_
 

Detailed Description

Serializable Additional Leg Data.

Definition at line 63 of file legdata.hpp.

Constructor & Destructor Documentation

◆ LegAdditionalData() [1/2]

LegAdditionalData ( const string &  legType,
const string &  legNodeName 
)

Definition at line 65 of file legdata.hpp.

◆ LegAdditionalData() [2/2]

LegAdditionalData ( const string &  legType)

Definition at line 67 of file legdata.hpp.

67: legType_(legType), legNodeName_(legType + "LegData") {}

Member Function Documentation

◆ legType()

const string & legType ( ) const

Definition at line 69 of file legdata.hpp.

69{ return legType_; }

◆ legNodeName()

const string & legNodeName ( ) const

Definition at line 70 of file legdata.hpp.

70{ return legNodeName_; }
+ Here is the caller graph for this function:

◆ indices()

const std::set< std::string > & indices ( ) const

Definition at line 71 of file legdata.hpp.

71{ return indices_; }
std::set< std::string > indices_
Definition: legdata.hpp:77

Member Data Documentation

◆ indices_

std::set<std::string> indices_
protected

Store the set of ORE index names that appear on this leg. Should be populated by derived classes.

Definition at line 77 of file legdata.hpp.

◆ legType_

string legType_
private

Definition at line 80 of file legdata.hpp.

◆ legNodeName_

string legNodeName_
private

Definition at line 81 of file legdata.hpp.