TVldTimeStamp.hxx File Reference

#include "TTimeStamp.h"
#include <iosfwd>
Include dependency graph for TVldTimeStamp.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Functions

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

Function Documentation

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

Definition at line 275 of file TVldTimeStamp.hxx.

References TVldTimeStamp::fNanoSec, and TVldTimeStamp::fSec.

00276    { return lhs.fSec  != rhs.fSec ||
00277             lhs.fNanoSec != rhs.fNanoSec; }

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

Definition at line 299 of file TVldTimeStamp.hxx.

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

00300 {
00301     return TVldTimeStamp(lhs.GetSec()     - rhs.GetSec(),
00302                         lhs.GetNanoSec() - rhs.GetNanoSec());
00303 }

Here is the call graph for this function:

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

Definition at line 279 of file TVldTimeStamp.hxx.

References TVldTimeStamp::fNanoSec, and TVldTimeStamp::fSec.

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

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

Definition at line 53 of file TVldTimeStamp.cxx.

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

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

Definition at line 284 of file TVldTimeStamp.hxx.

References TVldTimeStamp::fNanoSec, and TVldTimeStamp::fSec.

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

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

Definition at line 271 of file TVldTimeStamp.hxx.

References TVldTimeStamp::fNanoSec, and TVldTimeStamp::fSec.

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

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

Definition at line 289 of file TVldTimeStamp.hxx.

References TVldTimeStamp::fNanoSec, and TVldTimeStamp::fSec.

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

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

Definition at line 294 of file TVldTimeStamp.hxx.

References TVldTimeStamp::fNanoSec, and TVldTimeStamp::fSec.

00295    { return lhs.fSec  > rhs.fSec ||
00296              ( lhs.fSec  == rhs.fSec &&
00297                lhs.fNanoSec >= rhs.fNanoSec   ); }


Generated on 11 Aug 2013 for SKDatabase by  doxygen 1.6.1