Logo
Fully annotated reference manual - version 1.8.12
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
BucketMapping Class Reference

#include <orea/simm/simmbucketmapperbase.hpp>

+ Collaboration diagram for BucketMapping:

Public Member Functions

 BucketMapping (const std::string &bucket, const std::string &validFrom="", const std::string &validTo="", bool fallback=false)
 
const std::string & bucket () const
 
const std::string & validFrom () const
 
const std::string & validTo () const
 
bool fallback () const
 
QuantLib::Date validToDate () const
 
QuantLib::Date validFromDate () const
 
std::string name () const
 

Private Attributes

std::string bucket_
 
std::string validFrom_
 
std::string validTo_
 
bool fallback_
 

Detailed Description

Definition at line 38 of file simmbucketmapperbase.hpp.

Constructor & Destructor Documentation

◆ BucketMapping()

BucketMapping ( const std::string &  bucket,
const std::string &  validFrom = "",
const std::string &  validTo = "",
bool  fallback = false 
)

Member Function Documentation

◆ bucket()

const std::string & bucket ( ) const

Definition at line 42 of file simmbucketmapperbase.hpp.

42{ return bucket_; }

◆ validFrom()

const std::string & validFrom ( ) const

Definition at line 43 of file simmbucketmapperbase.hpp.

43{ return validFrom_; }

◆ validTo()

const std::string & validTo ( ) const

Definition at line 44 of file simmbucketmapperbase.hpp.

44{ return validTo_; }

◆ fallback()

bool fallback ( ) const

Definition at line 45 of file simmbucketmapperbase.hpp.

45{ return fallback_; }

◆ validToDate()

QuantLib::Date validToDate ( ) const

Definition at line 73 of file simmbucketmapperbase.cpp.

73 {
74 if (validTo_.empty())
75 return Date::maxDate();
76 else
78}
Date parseDate(const string &s)
+ Here is the call graph for this function:

◆ validFromDate()

QuantLib::Date validFromDate ( ) const

Definition at line 80 of file simmbucketmapperbase.cpp.

80 {
81 if (validFrom_.empty())
82 return Date::minDate();
83 else
85}
+ Here is the call graph for this function:

◆ name()

std::string name ( ) const

Definition at line 63 of file simmbucketmapperbase.cpp.

63 {
64 std::ostringstream o;
65 o << bucket_ << "-" << validFrom_ << "-" << validTo_ << "-" << fallback_;
66 return o.str();
67}
+ Here is the caller graph for this function:

Member Data Documentation

◆ bucket_

std::string bucket_
private

Definition at line 50 of file simmbucketmapperbase.hpp.

◆ validFrom_

std::string validFrom_
private

Definition at line 51 of file simmbucketmapperbase.hpp.

◆ validTo_

std::string validTo_
private

Definition at line 52 of file simmbucketmapperbase.hpp.

◆ fallback_

bool fallback_
private

Definition at line 53 of file simmbucketmapperbase.hpp.