Logo Search packages:      
Sourcecode: quantlib version File versions  Download package

bool QuantLib::operator== ( const DefaultType &  lhs,
const DefaultType &  rhs 

Equality is the criteria for indexing the curves. This depends only on the atomic types and not on idiosincracies of derived type as mentioned in the functional documentation (specific event characteristics are relevant to credit event matching but not to the probability meaning). operator== is also used to remove duplicates in some containers. This ensures we do not have two equal events (despite having different characteristics) in those containers. This makes sense, theres no logic in having two FailureToPay in a contract even if they have different characteristics.

Definition at line 35 of file defaulttype.cpp.

References QuantLib::DefaultType::defaultType(), and QuantLib::DefaultType::restructuringType().

        return (lhs.defaultType() == rhs.defaultType()) &&
            (lhs.restructuringType() == rhs.restructuringType());

Generated by  Doxygen 1.6.0   Back to index