Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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 268 of file VldTimeStamp.h.

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

00269    { return lhs.fSec  != rhs.fSec ||
00270             lhs.fNanoSec != rhs.fNanoSec; }

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

Definition at line 292 of file VldTimeStamp.h.

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

00293 {
00294     return VldTimeStamp(lhs.GetSec()     - rhs.GetSec(),
00295                         lhs.GetNanoSec() - rhs.GetNanoSec());
00296 }

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

Definition at line 272 of file VldTimeStamp.h.

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

00273    { return lhs.fSec  < rhs.fSec ||
00274              ( lhs.fSec  == rhs.fSec &&
00275                lhs.fNanoSec <  rhs.fNanoSec   ); }

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

Definition at line 51 of file VldTimeStamp.cxx.

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

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

Definition at line 277 of file VldTimeStamp.h.

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

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

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

Definition at line 264 of file VldTimeStamp.h.

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

00265    { return lhs.fSec  == rhs.fSec && 
00266             lhs.fNanoSec == rhs.fNanoSec; }

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

Definition at line 282 of file VldTimeStamp.h.

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

00283    { return lhs.fSec  > rhs.fSec ||
00284              ( lhs.fSec  == rhs.fSec &&
00285                lhs.fNanoSec >  rhs.fNanoSec   ); }

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

Definition at line 287 of file VldTimeStamp.h.

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

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


Generated on Thu Nov 1 11:56:08 2007 for loon by  doxygen 1.3.9.1