Storage for any double precision value with a flag for validitidy. More...
#include <Value.h>
Public Member Functions | |
bool | isValid () const |
void | operator= (const Value &o) |
void | operator= (const numberType &val) |
void | setValid (bool v) |
void | setValue (const numberType &val) |
Value () | |
Value (const numberType &val) | |
Value (const Value< numberType > &o) | |
const numberType & | value () const |
~Value () |
Storage for any double precision value with a flag for validitidy.
Storage for any double precision value with a flag for validitidy (usefull for modal computation where some modes may not exist
QGpCoreTools::Value< numberType >::Value | ( | ) | [inline] |
{_valid=false;}
QGpCoreTools::Value< numberType >::Value | ( | const numberType & | val | ) | [inline] |
{_valid=true; _value=val;}
QGpCoreTools::Value< numberType >::Value | ( | const Value< numberType > & | o | ) | [inline] |
{_valid=o._valid; _value=o._value;}
QGpCoreTools::Value< numberType >::~Value | ( | ) | [inline] |
{}
bool QGpCoreTools::Value< numberType >::isValid | ( | ) | const [inline] |
Referenced by QGpCoreWave::ModalStorage::curve(), dispersion_curve_love_(), dispersion_curve_rayleigh_(), QGpCoreWave::AutocorrEngine::initHorizontalThickRing(), QGpCoreWave::AutocorrEngine::initHorizontalThinRing(), QGpCoreTools::StatisticalValue< numberType >::misfit(), MonoStation::StationLine::name(), QGpCoreWave::Ellipticity::peakMisfit(), QGpCoreWave::Ellipticity::peaks(), MonoStation::AbstractSummary::setBubbleValues(), QGpCoreWave::ModalStorage::toStream(), QGpCoreWave::AutocorrEngine::verticalThickRing(), QGpCoreWave::AutocorrEngine::verticalThinRing(), and QGpCoreWave::ModalStorage::writeReport().
{return _valid;}
void QGpCoreTools::Value< numberType >::operator= | ( | const Value< numberType > & | o | ) | [inline] |
{_valid=o._valid; _value=o._value;}
void QGpCoreTools::Value< numberType >::operator= | ( | const numberType & | val | ) | [inline] |
{_valid=true; _value=val;}
void QGpCoreTools::Value< numberType >::setValid | ( | bool | v | ) | [inline] |
void QGpCoreTools::Value< numberType >::setValue | ( | const numberType & | val | ) | [inline] |
const numberType& QGpCoreTools::Value< numberType >::value | ( | ) | const [inline] |
Referenced by QGpCoreWave::ModalStorage::curve(), dispersion_curve_love_(), dispersion_curve_rayleigh_(), QGpCoreWave::AutocorrEngine::initHorizontalThickRing(), QGpCoreWave::AutocorrEngine::initHorizontalThinRing(), QGpCoreTools::StatisticalValue< numberType >::misfit(), MonoStation::StationLine::name(), QGpCoreWave::Ellipticity::peaks(), Spac3CForward::radial(), QGpCoreWave::Dispersion::refine(), DinverDCGui::MagnetoTelluricViewer::report2plot(), MonoStation::AbstractSummary::setBubbleValues(), QGpCoreWave::Dispersion::setGroupSlowness(), QGpCoreWave::MagnetoTelluricFactory::toStream(), QGpCoreWave::ModalStorage::toStream(), Spac3CForward::transverse(), QGpCoreWave::ModalStorage::Iterator::value(), Spac3CForward::vertical(), QGpCoreWave::AutocorrEngine::verticalThickRing(), QGpCoreWave::AutocorrEngine::verticalThinRing(), QGpCoreWave::MagnetoTelluricFactory::writeReport(), QGpCoreWave::RefractionFactory::writeReport(), and QGpCoreWave::ModalStorage::writeReport().
{return _value;}