Macros used for to enforce preconditions and postconditions. More...
Macros | |
#define | OPENMS_PRECONDITION(condition, message) |
Precondition macro. More... | |
#define | OPENMS_POSTCONDITION(condition, message) |
Postcondition macro. More... | |
Macros used for to enforce preconditions and postconditions.
These macros are enabled if debug info is enabled and optimization is disabled in configure. Otherwise they are replaced by an empty string, so they won't cost any performance.
The macros throw Exception::Precondition or Exception::Postcondition respectively if the condition fails.
#define OPENMS_POSTCONDITION | ( | condition, | |
message | |||
) |
Postcondition macro.
#define OPENMS_PRECONDITION | ( | condition, | |
message | |||
) |
Precondition macro.
Referenced by MSExperiment< SimPointType >::areaBeginConst(), EmgScoring::calcElutionFitScore(), XMLHandler::cvStringToEnum_(), DPosition< DIMENSION >::DPosition(), DRange< 3 >::DRange(), MzXMLHandler< MapType >::endElement(), SpectrumCanvas::getCurrentLayer(), PeakIndex::getFeature(), SpectrumCanvas::getLayer(), SpectrumCanvas::getLayer_(), SpectrumCanvas::getLayerFlag(), ProductModel< 2 >::getModel(), FeaFiModule< PeakType >::getNextMz(), FeaFiModule< PeakType >::getNextRt(), PeakIndex::getPeak(), FeaFiModule< PeakType >::getPeakIntensity(), FeaFiModule< PeakType >::getPeakMz(), FeaFiModule< PeakType >::getPeakRt(), FeaFiModule< PeakType >::getPrevMz(), FeaFiModule< PeakType >::getPrevRt(), PeakIndex::getSpectrum(), DPosition< DIMENSION >::getX(), DPosition< DIMENSION >::getY(), OfflinePrecursorIonSelection::makePrecursorSelectionForKnownLCMSMap(), Matrix< unsigned int >::operator<(), Matrix< unsigned int >::operator==(), DistanceMatrix< Value >::operator==(), DPosition< DIMENSION >::operator[](), MultiGradient::precalculatedColorByIndex(), MultiGradient::precalculatedColorIndex(), SpectrumCanvas::setLabel(), SpectrumCanvas::setLayerFlag(), ProductModel< 2 >::setModel(), DPosition< DIMENSION >::setX(), DPosition< DIMENSION >::setY(), and MzXMLHandler< MapType >::startElement().
OpenMS / TOPP release 2.0.0 | Documentation generated on Wed Mar 30 2016 16:18:43 using doxygen 1.8.5 |