ValueErr.cxx File Reference

#include "ValueErr.h"
#include <TBuffer.h>
#include <iostream>

Go to the source code of this file.

Functions

template<class T >
std::ifstream & operator>> (std::ifstream &ins, ValueErr< T > &x)
template<class T >
std::ostream & operator<< (std::ostream &outs, const ValueErr< T > &x)
template std::ostream & operator<< < double > (std::ostream &, const ValueErr< double > &)
template std::ostream & operator<< < float > (std::ostream &, const ValueErr< float > &)

Variables

const char kPlusMinus [8]

Function Documentation

template<class T >
std::ostream& operator<< ( std::ostream &  outs,
const ValueErr< T > &  x 
) [inline]

Definition at line 28 of file Calibrator/HEAD/ValueErr.cxx.

00029 {
00030   outs << x.GetValue() << kPlusMinus << x.GetError();
00031   return outs;
00032 }

template std::ostream& operator<< < double > ( std::ostream &  ,
const ValueErr< double > &   
)
template std::ostream& operator<< < float > ( std::ostream &  ,
const ValueErr< float > &   
)
template<class T >
std::ifstream& operator>> ( std::ifstream &  ins,
ValueErr< T > &  x 
) [inline]

Definition at line 17 of file Calibrator/HEAD/ValueErr.cxx.

00018 {
00019   T value;
00020   T error;
00021   ins >> value >> error;
00022   x.Set(value,error);
00023   return ins;
00024 }


Variable Documentation

const char kPlusMinus[8]
Initial value:
 
  { (char)0x1B, '(', '0', (char)0x67, (char)0x1B, '(', 'B', 0 }

Definition at line 9 of file Calibrator/HEAD/ValueErr.cxx.

Referenced by ValueErr< T >::AsString(), operator<<(), and ValueErr< T >::Print().


Generated on 8 Jul 2019 for loon by  doxygen 1.6.1