Logo
Reference manual - version ored_version
BaseStrike Class Referenceabstract

#include <ored/marketdata/strike.hpp>

Inheritance diagram for BaseStrike:

Public Member Functions

virtual void fromString (const std::string &strStrike)=0
 Populate the Strike object from strStrike.
virtual std::string toString () const =0
 Write the Strike object to string.

Protected Member Functions

virtual bool equal_to (const BaseStrike &other) const =0
 Override in derived classes to compare specific Strikes.

Friends

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

Detailed Description

Abstract base class to hold information that describes a strike. Need to use Base in class Name to differentiate from existing ore::data::Strike.

Member Function Documentation

◆ fromString()

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

Populate the Strike object from strStrike.

Implemented in AbsoluteStrike, AtmStrike, DeltaStrike, and MoneynessStrike.

◆ toString()

virtual std::string toString ( ) const
pure virtual

Write the Strike object to string.

Implemented in AbsoluteStrike, AtmStrike, DeltaStrike, and MoneynessStrike.

◆ equal_to()

virtual bool equal_to ( const BaseStrike & other) const
protectedpure virtual

Override in derived classes to compare specific Strikes.

Implemented in AbsoluteStrike, AtmStrike, DeltaStrike, and MoneynessStrike.