Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Member Functions | List of all members
PaymentLagInteger Struct Reference

#include <ored/portfolio/types.hpp>

+ Inheritance diagram for PaymentLagInteger:
+ Collaboration diagram for PaymentLagInteger:

Public Member Functions

QuantLib::Natural operator() (const QuantLib::Natural &n) const
 
QuantLib::Natural operator() (const QuantLib::Period &p) const
 

Detailed Description

Definition at line 40 of file types.hpp.

Member Function Documentation

◆ operator()() [1/2]

QuantLib::Natural operator() ( const QuantLib::Natural &  n) const

Definition at line 42 of file types.hpp.

42{ return n; }

◆ operator()() [2/2]

QuantLib::Natural operator() ( const QuantLib::Period &  p) const

Definition at line 43 of file types.hpp.

43{ return static_cast<QuantLib::Natural>(days(p)); }