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

#include <ored/marketdata/expiry.hpp>

+ Inheritance diagram for Expiry:
+ Collaboration diagram for Expiry:

Public Member Functions

virtual ~Expiry ()
 
virtual void fromString (const std::string &strExpiry)=0
 Populate the Expiry object from strExpiry. More...
 
virtual std::string toString () const =0
 Write the Expiry object to string. More...
 

Protected Member Functions

virtual bool equal_to (const Expiry &other) const =0
 Override in derived classes to compare specific expiries. More...
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Friends

class boost::serialization::access
 Serialization. More...
 
bool operator== (const Expiry &lhs, const Expiry &rhs)
 Will be used for Expiry comparison. More...
 

Detailed Description

Abstract base class to hold information that describes an expiry.

Definition at line 41 of file expiry.hpp.

Constructor & Destructor Documentation

◆ ~Expiry()

virtual ~Expiry ( )
virtual

Definition at line 43 of file expiry.hpp.

43{}

Member Function Documentation

◆ fromString()

virtual void fromString ( const std::string &  strExpiry)
pure virtual

Populate the Expiry object from strExpiry.

Implemented in ExpiryDate, ExpiryPeriod, and FutureContinuationExpiry.

◆ toString()

virtual std::string toString ( ) const
pure virtual

Write the Expiry object to string.

Implemented in ExpiryDate, ExpiryPeriod, and FutureContinuationExpiry.

+ Here is the caller graph for this function:

◆ equal_to()

virtual bool equal_to ( const Expiry other) const
protectedpure virtual

Override in derived classes to compare specific expiries.

Implemented in ExpiryDate, ExpiryPeriod, and FutureContinuationExpiry.

◆ serialize()

template void serialize ( Archive &  ar,
const unsigned int  version 
)
private

Definition at line 35 of file expiry.cpp.

35{}

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Serialization.

Definition at line 60 of file expiry.hpp.

◆ operator==

bool operator== ( const Expiry lhs,
const Expiry rhs 
)
friend

Will be used for Expiry comparison.

Definition at line 33 of file expiry.cpp.

33{ return lhs.equal_to(rhs); }