void SwaptionVolatilityStructure::checkSwapTenor(const Period& swapTenor, bool extrapolate) const { QL_REQUIRE(swapTenor.length() > 0, "non-positive swap tenor (" << swapTenor << ") given"); QL_REQUIRE(extrapolate || allowsExtrapolation() || swapTenor <= maxSwapTenor(), "swap tenor (" << swapTenor << ") is past max tenor (" << maxSwapTenor() << ")"); }
inline Time SwaptionVolatilityStructure::maxSwapLength() const { return swapLength(maxSwapTenor()); }