TVldContext.hxx File Reference

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

Go to the source code of this file.

Classes

class  TVldContext
 A tag for identifying the required "context" when interfacing with the DBI. More...

Functions

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

Function Documentation

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

Definition at line 119 of file TVldContext.hxx.

References TVldContext::fDetector, TVldContext::fSimFlag, and TVldContext::fTimeStamp.

00120 { 
00121    // not equal if any component doesn't match
00122    return 
00123      lhs.fDetector  != rhs.fDetector ||
00124      lhs.fSimFlag   != rhs.fSimFlag  ||
00125      lhs.fTimeStamp != rhs.fTimeStamp;
00126 }

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

Definition at line 95 of file TVldContext.hxx.

References TVldContext::fDetector, TVldContext::fSimFlag, and TVldContext::fTimeStamp.

00096 { 
00097    // sorting is a little tricky with three fields
00098    // this sorts first by time then detector then simflag
00099    // *WARNING* be very careful if you change this
00100    if ( lhs.fTimeStamp  < rhs.fTimeStamp ) return true;
00101    if ( lhs.fTimeStamp == rhs.fTimeStamp ) {
00102       if ( lhs.fDetector  < rhs.fDetector ) return true;
00103       if ( lhs.fDetector == rhs.fDetector ) {
00104          if (lhs.fSimFlag  < rhs.fSimFlag ) return true;
00105       }
00106    }
00107    return false;
00108 }

std::ostream& operator<< ( std::ostream &  os,
const TVldContext vldts 
)
Bool_t operator<= ( const TVldContext lhs,
const TVldContext rhs 
) [inline]

Definition at line 128 of file TVldContext.hxx.

00129 {
00130   return (lhs<rhs) || (lhs==rhs);
00131 }

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

Definition at line 110 of file TVldContext.hxx.

References TVldContext::fDetector, TVldContext::fSimFlag, and TVldContext::fTimeStamp.

00111 { 
00112    // equal if all components match
00113    return 
00114      lhs.fDetector  == rhs.fDetector &&
00115      lhs.fSimFlag   == rhs.fSimFlag  &&
00116      lhs.fTimeStamp == rhs.fTimeStamp;
00117 }

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

Definition at line 133 of file TVldContext.hxx.

00134 {
00135   return !(lhs<rhs) && !(lhs==rhs);
00136 }

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

Definition at line 138 of file TVldContext.hxx.

00139 {
00140   return !(lhs<rhs);
00141 }


Generated on 11 Aug 2013 for SKDatabase by  doxygen 1.6.1