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
BaseStrike Class Referenceabstract

#include <ored/marketdata/strike.hpp>

+ Inheritance diagram for BaseStrike:
+ Collaboration diagram for BaseStrike:

Public Member Functions

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

Protected Member Functions

virtual bool equal_to (const BaseStrike &other) const =0
 Override in derived classes to compare specific Strikes. 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 BaseStrike &lhs, const BaseStrike &rhs)
 Will be used for Strike comparison. More...
 

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.

Definition at line 43 of file strike.hpp.

Constructor & Destructor Documentation

◆ ~BaseStrike()

virtual ~BaseStrike ( )
virtual

Definition at line 45 of file strike.hpp.

45{}

Member Function Documentation

◆ fromString()

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

Populate the Strike object from strStrike.

Implemented in AbsoluteStrike, DeltaStrike, AtmStrike, and MoneynessStrike.

◆ toString()

virtual std::string toString ( ) const
pure virtual

Write the Strike object to string.

Implemented in AbsoluteStrike, DeltaStrike, AtmStrike, and MoneynessStrike.

+ Here is the caller graph for this function:

◆ equal_to()

virtual bool equal_to ( const BaseStrike other) const
protectedpure virtual

Override in derived classes to compare specific Strikes.

Implemented in AbsoluteStrike, DeltaStrike, AtmStrike, and MoneynessStrike.

◆ serialize()

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

Definition at line 289 of file strike.cpp.

289{}

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Serialization.

Definition at line 62 of file strike.hpp.

◆ operator==

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

Will be used for Strike comparison.

Definition at line 38 of file strike.cpp.

38{ return lhs.equal_to(rhs); }