Mantid
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Attributes | Friends | List of all members
Mantid::Kernel::TimeValueUnit< TYPE > Class Template Reference

Class to hold unit value (DateAndTime, T) More...

#include <TimeSeriesProperty.h>

Public Member Functions

bool operator< (const TimeValueUnit &rhs)
 
bool operator== (const TimeValueUnit &rhs)
 
bool operator> (const TimeValueUnit &rhs)
 
void setTime (Types::Core::DateAndTime newtime)
 
Types::Core::DateAndTime time () const
 
 TimeValueUnit (const Types::Core::DateAndTime &time, const TYPE &value)
 
TYPE value () const
 
 ~TimeValueUnit ()=default
 

Static Public Member Functions

static bool valueCmp (const TimeValueUnit &lhs, const TimeValueUnit &rhs)
 

Private Attributes

Types::Core::DateAndTime mtime
 
TYPE mvalue
 

Friends

bool operator< (const TimeValueUnit &lhs, const TimeValueUnit &rhs)
 
bool operator== (const TimeValueUnit &lhs, const TimeValueUnit &rhs)
 
bool operator> (const TimeValueUnit &lhs, const TimeValueUnit &rhs)
 

Detailed Description

template<class TYPE>
class Mantid::Kernel::TimeValueUnit< TYPE >

Class to hold unit value (DateAndTime, T)

Definition at line 59 of file TimeSeriesProperty.h.

Constructor & Destructor Documentation

◆ TimeValueUnit()

template<class TYPE >
Mantid::Kernel::TimeValueUnit< TYPE >::TimeValueUnit ( const Types::Core::DateAndTime &  time,
const TYPE value 
)
inline

Definition at line 65 of file TimeSeriesProperty.h.

◆ ~TimeValueUnit()

template<class TYPE >
Mantid::Kernel::TimeValueUnit< TYPE >::~TimeValueUnit ( )
default

Member Function Documentation

◆ operator<()

template<class TYPE >
bool Mantid::Kernel::TimeValueUnit< TYPE >::operator< ( const TimeValueUnit< TYPE > &  rhs)
inline

Definition at line 77 of file TimeSeriesProperty.h.

References Mantid::Kernel::TimeValueUnit< TYPE >::mtime, and rhs.

◆ operator==()

template<class TYPE >
bool Mantid::Kernel::TimeValueUnit< TYPE >::operator== ( const TimeValueUnit< TYPE > &  rhs)
inline

Definition at line 73 of file TimeSeriesProperty.h.

References Mantid::Kernel::TimeValueUnit< TYPE >::mtime, and rhs.

◆ operator>()

template<class TYPE >
bool Mantid::Kernel::TimeValueUnit< TYPE >::operator> ( const TimeValueUnit< TYPE > &  rhs)
inline

Definition at line 69 of file TimeSeriesProperty.h.

References Mantid::Kernel::TimeValueUnit< TYPE >::mtime, and rhs.

◆ setTime()

template<class TYPE >
void Mantid::Kernel::TimeValueUnit< TYPE >::setTime ( Types::Core::DateAndTime  newtime)
inline

Definition at line 83 of file TimeSeriesProperty.h.

References Mantid::Kernel::TimeValueUnit< TYPE >::mtime.

◆ time()

template<class TYPE >
Types::Core::DateAndTime Mantid::Kernel::TimeValueUnit< TYPE >::time ( ) const
inline

Definition at line 81 of file TimeSeriesProperty.h.

References Mantid::Kernel::TimeValueUnit< TYPE >::mtime.

◆ value()

template<class TYPE >
TYPE Mantid::Kernel::TimeValueUnit< TYPE >::value ( ) const
inline

◆ valueCmp()

template<class TYPE >
static bool Mantid::Kernel::TimeValueUnit< TYPE >::valueCmp ( const TimeValueUnit< TYPE > &  lhs,
const TimeValueUnit< TYPE > &  rhs 
)
inlinestatic

Definition at line 87 of file TimeSeriesProperty.h.

References Mantid::Kernel::TimeValueUnit< TYPE >::mvalue, and rhs.

Friends And Related Function Documentation

◆ operator<

template<class TYPE >
bool operator< ( const TimeValueUnit< TYPE > &  lhs,
const TimeValueUnit< TYPE > &  rhs 
)
friend

Definition at line 79 of file TimeSeriesProperty.h.

◆ operator==

template<class TYPE >
bool operator== ( const TimeValueUnit< TYPE > &  lhs,
const TimeValueUnit< TYPE > &  rhs 
)
friend

Definition at line 75 of file TimeSeriesProperty.h.

◆ operator>

template<class TYPE >
bool operator> ( const TimeValueUnit< TYPE > &  lhs,
const TimeValueUnit< TYPE > &  rhs 
)
friend

Definition at line 71 of file TimeSeriesProperty.h.

Member Data Documentation

◆ mtime

template<class TYPE >
Types::Core::DateAndTime Mantid::Kernel::TimeValueUnit< TYPE >::mtime
private

◆ mvalue

template<class TYPE >
TYPE Mantid::Kernel::TimeValueUnit< TYPE >::mvalue
private

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