The Gaudi Framework  master (b9786168)
Loading...
Searching...
No Matches
Time.h File Reference
#include <GaudiKernel/GaudiException.h>
#include <GaudiKernel/Kernel.h>
#include <GaudiKernel/StatusCode.h>
#include <GaudiKernel/StreamBuffer.h>
#include <cstdint>
#include <iostream>
#include <limits>
#include <string>
#include <string_view>
#include <utility>
Include dependency graph for Time.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TimeException
 Exception thrown by Gaudi::Time. More...
 
class  Gaudi::TimeSpan
 Based on seal::TimeSpan. More...
 
class  Gaudi::Time
 Based on seal::Time. More...
 
class  backwards_compatibility_hack_time_timespan
 

Namespaces

namespace  Gaudi
 This file provides a Grammar for the type Gaudi::Accumulators::Axis It allows to use that type from python with a format liks : ( nbins, min, max, title ) where title can be ommited.
 

Functions

std::ostream & Gaudi::operator<< (std::ostream &out, const Gaudi::Time &time)
 Output operator.
 
std::ostream & Gaudi::operator<< (std::ostream &out, const Gaudi::TimeSpan &time)
 Output operator.
 
Gaudi::Time operator+ (const Gaudi::Time &t, const Gaudi::TimeSpan &ts)
 
Gaudi::Time operator+ (const Gaudi::TimeSpan &ts, const Gaudi::Time &t)
 
Gaudi::TimeSpan operator- (const Gaudi::Time &t1, const Gaudi::Time &t2)
 
Gaudi::Time operator- (const Gaudi::Time &t, const Gaudi::TimeSpan &ts)
 
bool operator! (const Gaudi::Time &t)
 
Gaudi::TimeSpan operator+ (const Gaudi::TimeSpan &ts)
 
Gaudi::TimeSpan operator- (const Gaudi::TimeSpan &ts)
 
bool operator! (const Gaudi::TimeSpan &ts)
 
StreamBufferoperator<< (StreamBuffer &s, const Gaudi::Time &t)
 
StreamBufferoperator>> (StreamBuffer &s, Gaudi::Time &t)
 
bool operator< (backwards_compatibility_hack_time_timespan, backwards_compatibility_hack_time_timespan)
 

Function Documentation

◆ operator!() [1/2]

bool operator! ( const Gaudi::Time & t)
inline

Definition at line 493 of file Time.h.

493{ return !t.ns(); }

◆ operator!() [2/2]

bool operator! ( const Gaudi::TimeSpan & ts)
inline

Definition at line 499 of file Time.h.

499{ return !ts.ns(); }

◆ operator+() [1/3]

Gaudi::Time operator+ ( const Gaudi::Time & t,
const Gaudi::TimeSpan & ts )
inline

Definition at line 477 of file Time.h.

477 {
478 return Gaudi::Time( t.ns() + ts.ns() );
479}
Based on seal::Time.
Definition Time.h:232

◆ operator+() [2/3]

Gaudi::TimeSpan operator+ ( const Gaudi::TimeSpan & ts)
inline

Definition at line 495 of file Time.h.

495{ return ts; }

◆ operator+() [3/3]

Gaudi::Time operator+ ( const Gaudi::TimeSpan & ts,
const Gaudi::Time & t )
inline

Definition at line 481 of file Time.h.

481 {
482 return Gaudi::Time( t.ns() + ts.ns() );
483}

◆ operator-() [1/3]

Gaudi::Time operator- ( const Gaudi::Time & t,
const Gaudi::TimeSpan & ts )
inline

Definition at line 489 of file Time.h.

489 {
490 return Gaudi::Time( t.ns() - ts.ns() );
491}

◆ operator-() [2/3]

Gaudi::TimeSpan operator- ( const Gaudi::Time & t1,
const Gaudi::Time & t2 )
inline

Definition at line 485 of file Time.h.

485 {
486 return Gaudi::TimeSpan( t1.ns() - t2.ns() );
487}
TemplatedAlg< int, std::vector< std::string > > t1
TemplatedAlg< double, bool > t2
Based on seal::TimeSpan.
Definition Time.h:63

◆ operator-() [3/3]

Gaudi::TimeSpan operator- ( const Gaudi::TimeSpan & ts)
inline

Definition at line 497 of file Time.h.

497{ return Gaudi::TimeSpan( -ts.ns() ); }

◆ operator<()

Definition at line 518 of file Time.h.

518 {
519 return false;
520}

◆ operator<<()

StreamBuffer & operator<< ( StreamBuffer & s,
const Gaudi::Time & t )
inline

Definition at line 504 of file Time.h.

504{ return s << t.ns(); }

◆ operator>>()

StreamBuffer & operator>> ( StreamBuffer & s,
Gaudi::Time & t )
inline

Definition at line 506 of file Time.h.

506 {
508 s >> tmp;
509 t = Gaudi::Time( tmp );
510 return s;
511}
std::int64_t ValueType
Definition Time.h:236