All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
flashmatch::TimeRange Class Reference

#include <TimeRange.h>

Public Member Functions

 TimeRange (double start=0, double end=0)
 Default constructor. More...
 
 ~TimeRange ()
 Default destructor. More...
 
void SetRange (double start, double end)
 
double Start () const
 
double End () const
 
bool operator< (const TimeRange &rhs) const
 
bool operator< (const double &rhs) const
 

Private Attributes

double _start
 
double _end
 

Detailed Description

User defined class TimeRange ... these comments are used to generate doxygen documentation!

Definition at line 30 of file TimeRange.h.

Constructor & Destructor Documentation

flashmatch::TimeRange::TimeRange ( double  start = 0,
double  end = 0 
)
inline

Default constructor.

Definition at line 35 of file TimeRange.h.

36  { SetRange(start,end); }
void SetRange(double start, double end)
Definition: TimeRange.h:41
auto end(FixedBins< T, C > const &) noexcept
Definition: FixedBins.h:585
flashmatch::TimeRange::~TimeRange ( )
inline

Default destructor.

Definition at line 39 of file TimeRange.h.

39 {}

Member Function Documentation

double flashmatch::TimeRange::End ( void  ) const
inline

Definition at line 50 of file TimeRange.h.

50 { return _end; }
bool flashmatch::TimeRange::operator< ( const TimeRange rhs) const
inline

Definition at line 52 of file TimeRange.h.

52  {
53  if(_end < rhs.Start()) return true;
54  if(rhs.End() < _start) return false;
55  return false;
56  }
bool flashmatch::TimeRange::operator< ( const double &  rhs) const
inline

Definition at line 58 of file TimeRange.h.

58  {
59  if(_end < rhs) return true;
60  if(rhs < _start ) return false;
61  return false;
62  }
void flashmatch::TimeRange::SetRange ( double  start,
double  end 
)
inline

Definition at line 41 of file TimeRange.h.

42  {
43  if(start >= end) throw std::exception();
44  _start=start;
45  _end=end;
46  }
auto end(FixedBins< T, C > const &) noexcept
Definition: FixedBins.h:585
double flashmatch::TimeRange::Start ( void  ) const
inline

Definition at line 48 of file TimeRange.h.

48 { return _start; }

Member Data Documentation

double flashmatch::TimeRange::_end
private

Definition at line 67 of file TimeRange.h.

double flashmatch::TimeRange::_start
private

Definition at line 66 of file TimeRange.h.


The documentation for this class was generated from the following file: