QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
ExchangeContract Class Reference

#include <exchangecontract.hpp>

+ Collaboration diagram for ExchangeContract:

Public Member Functions

 ExchangeContract ()=default
 
 ExchangeContract (std::string code, Date expirationDate, Date underlyingStartDate, Date underlyingEndDate)
 
const std::string & code () const
 
const DateexpirationDate () const
 
const DateunderlyingStartDate () const
 
const DateunderlyingEndDate () const
 

Protected Attributes

std::string code_
 
Date expirationDate_
 
Date underlyingStartDate_
 
Date underlyingEndDate_
 

Detailed Description

Definition at line 33 of file exchangecontract.hpp.

Constructor & Destructor Documentation

◆ ExchangeContract() [1/2]

ExchangeContract ( )
default

◆ ExchangeContract() [2/2]

ExchangeContract ( std::string  code,
Date  expirationDate,
Date  underlyingStartDate,
Date  underlyingEndDate 
)

Definition at line 52 of file exchangecontract.hpp.

Member Function Documentation

◆ code()

const std::string & code ( ) const

Definition at line 59 of file exchangecontract.hpp.

◆ expirationDate()

const Date & expirationDate ( ) const

Definition at line 63 of file exchangecontract.hpp.

◆ underlyingStartDate()

const Date & underlyingStartDate ( ) const

Definition at line 67 of file exchangecontract.hpp.

◆ underlyingEndDate()

const Date & underlyingEndDate ( ) const

Definition at line 71 of file exchangecontract.hpp.

Member Data Documentation

◆ code_

std::string code_
protected

Definition at line 46 of file exchangecontract.hpp.

◆ expirationDate_

Date expirationDate_
protected

Definition at line 47 of file exchangecontract.hpp.

◆ underlyingStartDate_

Date underlyingStartDate_
protected

Definition at line 48 of file exchangecontract.hpp.

◆ underlyingEndDate_

Date underlyingEndDate_
protected

Definition at line 49 of file exchangecontract.hpp.