VldTimeStamp.h File Reference

#include "TTimeStamp.h"
#include <iosfwd>

Go to the source code of this file.

Classes

class  VldTimeStamp
 Encapsulate the seconds and ns since EPOCH. More...

Functions

std::ostream & operator<< (std::ostream &os, const VldTimeStamp &vldts)
Bool_t operator== (const VldTimeStamp &lhs, const VldTimeStamp &rhs)
Bool_t operator!= (const VldTimeStamp &lhs, const VldTimeStamp &rhs)
Bool_t operator< (const VldTimeStamp &lhs, const VldTimeStamp &rhs)
Bool_t operator<= (const VldTimeStamp &lhs, const VldTimeStamp &rhs)
Bool_t operator> (const VldTimeStamp &lhs, const VldTimeStamp &rhs)
Bool_t operator>= (const VldTimeStamp &lhs, const VldTimeStamp &rhs)
VldTimeStamp operator- (const VldTimeStamp &lhs, const VldTimeStamp &rhs)

Function Documentation

Bool_t operator!= ( const VldTimeStamp lhs,
const VldTimeStamp rhs 
) [inline]

Definition at line 271 of file VldTimeStamp.h.

References VldTimeStamp::fNanoSec, and VldTimeStamp::fSec.

00272    { return lhs.fSec  != rhs.fSec ||
00273             lhs.fNanoSec != rhs.fNanoSec; }

VldTimeStamp operator- ( const VldTimeStamp lhs,
const VldTimeStamp rhs 
) [inline]

Definition at line 295 of file VldTimeStamp.h.

References VldTimeStamp::GetNanoSec(), and VldTimeStamp::GetSec().

00296 {
00297     return VldTimeStamp(lhs.GetSec()     - rhs.GetSec(),
00298                         lhs.GetNanoSec() - rhs.GetNanoSec());
00299 }

Bool_t operator< ( const VldTimeStamp lhs,
const VldTimeStamp rhs 
) [inline]

Definition at line 275 of file VldTimeStamp.h.

References VldTimeStamp::fNanoSec, and VldTimeStamp::fSec.

00276    { return lhs.fSec  < rhs.fSec ||
00277              ( lhs.fSec  == rhs.fSec &&
00278                lhs.fNanoSec <  rhs.fNanoSec   ); }

std::ostream& operator<< ( std::ostream &  os,
const VldTimeStamp vldts 
)

Definition at line 52 of file VldTimeStamp.cxx.

00053 {
00054    if (os.good()) {
00055       if (os.tie()) os.tie()->flush(); // instead of opfx
00056       os << ts.AsString("c");
00057    }
00058    // instead of os.osfx()
00059    if (os.flags() & std::ios::unitbuf) os.flush();
00060    return os;
00061 }

Bool_t operator<= ( const VldTimeStamp lhs,
const VldTimeStamp rhs 
) [inline]

Definition at line 280 of file VldTimeStamp.h.

References VldTimeStamp::fNanoSec, and VldTimeStamp::fSec.

00281    { return lhs.fSec  < rhs.fSec ||
00282              ( lhs.fSec  == rhs.fSec &&
00283                lhs.fNanoSec <= rhs.fNanoSec   ); }

Bool_t operator== ( const VldTimeStamp lhs,
const VldTimeStamp rhs 
) [inline]

Definition at line 267 of file VldTimeStamp.h.

References VldTimeStamp::fNanoSec, and VldTimeStamp::fSec.

00268    { return lhs.fSec  == rhs.fSec && 
00269             lhs.fNanoSec == rhs.fNanoSec; }

Bool_t operator> ( const VldTimeStamp lhs,
const VldTimeStamp rhs 
) [inline]

Definition at line 285 of file VldTimeStamp.h.

References VldTimeStamp::fNanoSec, and VldTimeStamp::fSec.

00286    { return lhs.fSec  > rhs.fSec ||
00287              ( lhs.fSec  == rhs.fSec &&
00288                lhs.fNanoSec >  rhs.fNanoSec   ); }

Bool_t operator>= ( const VldTimeStamp lhs,
const VldTimeStamp rhs 
) [inline]

Definition at line 290 of file VldTimeStamp.h.

References VldTimeStamp::fNanoSec, and VldTimeStamp::fSec.

00291    { return lhs.fSec  > rhs.fSec ||
00292              ( lhs.fSec  == rhs.fSec &&
00293                lhs.fNanoSec >= rhs.fNanoSec   ); }


Generated on 8 Jul 2019 for loon by  doxygen 1.6.1