Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
List of all members
DirectYieldCurveSegment Class Reference

Direct yield curve segment. More...

#include <ored/configuration/yieldcurveconfig.hpp>

+ Inheritance diagram for DirectYieldCurveSegment:
+ Collaboration diagram for DirectYieldCurveSegment:

Public Member Functions

Constructors/Destructors
 DirectYieldCurveSegment ()
 Default constructor. More...
 
 DirectYieldCurveSegment (const string &typeID, const string &conventionsID, const vector< string > &quotes)
 Detailed constructor. More...
 
virtual ~DirectYieldCurveSegment ()
 Default destructor. More...
 
Serialisation
virtual void fromXML (XMLNode *node) override
 
virtual XMLNodetoXML (XMLDocument &doc) const override
 
Visitability
virtual void accept (AcyclicVisitor &) override
 
- Public Member Functions inherited from YieldCurveSegment
virtual ~YieldCurveSegment ()
 Default destructor. More...
 
Type type () const
 
const string & typeID () const
 
const string & conventionsID () const
 
const QuantLib::Pillar::Choice pillarChoice () const
 
Size priority () const
 
Size minDistance () const
 
const vector< pair< string, bool > > & quotes () 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...
 

Additional Inherited Members

- Public Types inherited from YieldCurveSegment
enum class  Type {
  Zero , ZeroSpread , Discount , Deposit ,
  FRA , Future , OIS , Swap ,
  AverageOIS , TenorBasis , TenorBasisTwo , BMABasis ,
  FXForward , CrossCcyBasis , CrossCcyFixFloat , DiscountRatio ,
  FittedBond , WeightedAverage , YieldPlusDefault , IborFallback ,
  BondYieldShifted
}
 supported segment types More...
 
- Protected Member Functions inherited from YieldCurveSegment
 YieldCurveSegment ()
 Default constructor. More...
 
 YieldCurveSegment (const string &typeID, const string &conventionsID, const vector< string > &quotes)
 Detailed constructor - assumes all quotes are mandatory. More...
 
pair< string, boolquote (const string &name, bool opt=false)
 Utility to build a quote, optional flag defaults to false. More...
 
- Protected Attributes inherited from YieldCurveSegment
vector< pair< string, bool > > quotes_
 Quote and optional flag pair. More...
 

Detailed Description

Direct yield curve segment.

A direct yield curve segment is used when the segments is entirely defined by a set of quotes that are passed to the constructor.

Definition at line 142 of file yieldcurveconfig.hpp.

Constructor & Destructor Documentation

◆ DirectYieldCurveSegment() [1/2]

Default constructor.

Definition at line 147 of file yieldcurveconfig.hpp.

147{}

◆ DirectYieldCurveSegment() [2/2]

DirectYieldCurveSegment ( const string &  typeID,
const string &  conventionsID,
const vector< string > &  quotes 
)

Detailed constructor.

Definition at line 485 of file yieldcurveconfig.cpp.

const vector< pair< string, bool > > & quotes() const
const string & conventionsID() const
YieldCurveSegment()
Default constructor.
const string & typeID() const

◆ ~DirectYieldCurveSegment()

virtual ~DirectYieldCurveSegment ( )
virtual

Default destructor.

Definition at line 151 of file yieldcurveconfig.hpp.

151{}

Member Function Documentation

◆ fromXML()

void fromXML ( XMLNode node)
overridevirtual

Reimplemented from YieldCurveSegment.

Definition at line 489 of file yieldcurveconfig.cpp.

489 {
490 XMLUtils::checkNode(node, "Direct");
492}
static void checkNode(XMLNode *n, const string &expectedName)
Definition: xmlutils.cpp:175
virtual void fromXML(XMLNode *node) override
+ Here is the call graph for this function:

◆ toXML()

XMLNode * toXML ( XMLDocument doc) const
overridevirtual

Reimplemented from YieldCurveSegment.

Definition at line 494 of file yieldcurveconfig.cpp.

494 {
496 XMLUtils::setNodeName(doc, node, "Direct");
497 return node;
498}
static void setNodeName(XMLDocument &doc, XMLNode *node, const string &name)
Definition: xmlutils.cpp:478
virtual XMLNode * toXML(XMLDocument &doc) const override
rapidxml::xml_node< char > XMLNode
Definition: xmlutils.hpp:60
+ Here is the call graph for this function:

◆ accept()

void accept ( AcyclicVisitor &  v)
overridevirtual

Reimplemented from YieldCurveSegment.

Definition at line 500 of file yieldcurveconfig.cpp.

500 {
501 Visitor<DirectYieldCurveSegment>* v1 = dynamic_cast<Visitor<DirectYieldCurveSegment>*>(&v);
502 if (v1 != 0)
503 v1->visit(*this);
504 else
506}
virtual void accept(AcyclicVisitor &)
+ Here is the call graph for this function: