// CrossStat.cpp #include #include "trfutil/trfstream.h" #include "CrossStat.h" using trf::CrossStat; //********************************************************************** // Static variables. //********************************************************************** // precision double CrossStat::_precision = 1.0e-14; // Magnification factor for error ellipsoid. double CrossStat::_nsigma = 5.0; //********************************************************************** // Output stream. void CrossStat::ostr(ostream& stream) const { stream << begin_object; stream << at() << ' '; stream << on(); stream << inside(); stream << outside() << ' '; stream << in_bounds(); stream << out_of_bounds(); stream << end_object; } //********************************************************************** // Constructor from a pure state. CrossStat::CrossStat(PureStat pure) : _pure(pure), _bound(UNDEFINED_BOUNDS) { } //********************************************************************** // Constructor from a bound state. CrossStat::CrossStat(BoundedStat bound) : _pure(AT), _bound(bound) { } //********************************************************************** // Copy constructor. CrossStat::CrossStat(const CrossStat& xstat) : _pure(xstat._pure), _bound(xstat._bound) { } //********************************************************************** // Assignment. CrossStat& CrossStat::operator=(const CrossStat& xstat) { if ( this == &xstat ) return *this; this->_pure = xstat._pure; this->_bound = xstat._bound; return *this; } //********************************************************************** // Destructor. CrossStat::~CrossStat() { } //********************************************************************** // Output stream. ostream& operator<<(ostream& stream, const CrossStat& xstat) { xstat.ostr(stream); return stream; } //**********************************************************************