/** takes the given x- and y-values and copies them into the resulting pair, whichcontainsx-valuesinthefirstelementandthey-valuesinthesecond one.AlltuplesforwhichaPredisfalsearenotcopied.
class isValid
{ public: booloperator()( double x, double y )
{ return ! ( std::isnan( x ) ||
std::isnan( y ) ||
std::isinf( x ) ||
std::isinf( y ) );
}
};
class isValidAndXPositive
{ public: booloperator()( double x, double y )
{ return ! ( std::isnan( x ) ||
std::isnan( y ) ||
std::isinf( x ) ||
std::isinf( y ) ||
x <= 0.0 );
}
};
class isValidAndYPositive
{ public: booloperator()( double x, double y )
{ return ! ( std::isnan( x ) ||
std::isnan( y ) ||
std::isinf( x ) ||
std::isinf( y ) ||
y <= 0.0 );
}
};
class isValidAndYNegative
{ public: booloperator()( double x, double y )
{ return ! ( std::isnan( x ) ||
std::isnan( y ) ||
std::isinf( x ) ||
std::isinf( y ) ||
y >= 0.0 );
}
};
class isValidAndBothPositive
{ public: booloperator()( double x, double y )
{ return ! ( std::isnan( x ) ||
std::isnan( y ) ||
std::isinf( x ) ||
std::isinf( y ) ||
x <= 0.0 ||
y <= 0.0 );
}
};
class isValidAndXPositiveAndYNegative
{ public: booloperator()( double x, double y )
{ return ! ( std::isnan( x ) ||
std::isnan( y ) ||
std::isinf( x ) ||
std::isinf( y ) ||
x <= 0.0 ||
y >= 0.0 );
}
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.