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)
 
const TYPEvalue () const
 
 ~TimeValueUnit ()=default
 

Static Public Member Functions

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

Private Attributes

Types::Core::DateAndTime m_time
 
TYPE m_value
 

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 102 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 108 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 120 of file TimeSeriesProperty.h.

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

◆ operator==()

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

Definition at line 116 of file TimeSeriesProperty.h.

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

◆ operator>()

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

Definition at line 112 of file TimeSeriesProperty.h.

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

◆ setTime()

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

◆ time()

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

◆ value()

template<class TYPE >
const 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 130 of file TimeSeriesProperty.h.

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

Friends And Related Symbol Documentation

◆ operator<

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

Definition at line 122 of file TimeSeriesProperty.h.

◆ operator==

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

Definition at line 118 of file TimeSeriesProperty.h.

◆ operator>

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

Definition at line 114 of file TimeSeriesProperty.h.

Member Data Documentation

◆ m_time

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

◆ m_value

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

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