#include <ql/daycounter.hpp>
Inheritance diagram for DayCounter:
[legend]List of all members.
Detailed Description
day counter class
This class provides methods for determining the length of a time period according to given market convention, both as a number of days and as a year fraction.
The Bridge pattern is used to provide the base behavior of the day counter.
Constructor & Destructor Documentation
|
This default constructor returns a day counter with a null implementation, which is therefore unusable except as a placeholder. |
|
This protected constructor will only be invoked by derived classes which define a given DayCounter implementation |
Member Function Documentation
std::string name |
( |
|
) |
const |
|
|
Returns the name of the day counter.
- Warning:
- This method is used for output and comparison between day counters. It is not meant to be used for writing switch-on-type code.
|
Friends And Related Function Documentation
|
Returns true iff the two day counters belong to the same derived class. |
|