ITK
4.4.0
Insight Segmentation and Registration Toolkit
|
#include <itkRealTimeInterval.h>
A data structure for representing the time span between two RealTimeStamps, with similar high precision and a large dynamic range to what the RealTimeStamps offer.
This class represents the difference between two time points, typically for applications that need to mark the time of acquisition of data with high precision (microseconds) and a large dynamic range (years). This class will be the natural representation for the duration of a video sequence, or for the time that has passed between the acquisition of one images and a subsequent one.
Definition at line 45 of file itkRealTimeInterval.h.
Public Types | |
typedef int64_t | MicroSecondsDifferenceType |
typedef int64_t | SecondsDifferenceType |
typedef RealTimeInterval | Self |
typedef double | TimeRepresentationType |
Public Member Functions | |
RealTimeInterval () | |
RealTimeInterval (SecondsDifferenceType, MicroSecondsDifferenceType) | |
void | Set (SecondsDifferenceType, MicroSecondsDifferenceType) |
~RealTimeInterval () | |
TimeRepresentationType | GetTimeInMicroSeconds () const |
TimeRepresentationType | GetTimeInMilliSeconds () const |
TimeRepresentationType | GetTimeInSeconds () const |
TimeRepresentationType | GetTimeInMinutes () const |
TimeRepresentationType | GetTimeInHours () const |
TimeRepresentationType | GetTimeInDays () const |
Self | operator- (const Self &) const |
Self | operator+ (const Self &) const |
const Self & | operator-= (const Self &) |
const Self & | operator+= (const Self &) |
bool | operator> (const Self &) const |
bool | operator< (const Self &) const |
bool | operator== (const Self &) const |
bool | operator!= (const Self &) const |
bool | operator<= (const Self &) const |
bool | operator>= (const Self &) const |
Private Attributes | |
MicroSecondsDifferenceType | m_MicroSeconds |
SecondsDifferenceType | m_Seconds |
Friends | |
ITKCommon_EXPORT std::ostream & | operator<< (std::ostream &os, const RealTimeInterval &v) |
class | RealTimeStamp |
Definition at line 53 of file itkRealTimeInterval.h.
Internal types used to represent seconds and microseconds.
Definition at line 52 of file itkRealTimeInterval.h.
Definition at line 49 of file itkRealTimeInterval.h.
typedef double itk::RealTimeInterval::TimeRepresentationType |
Native type used to represent the time in different time units.
Definition at line 65 of file itkRealTimeInterval.h.
itk::RealTimeInterval::RealTimeInterval | ( | ) |
Constructor
itk::RealTimeInterval::RealTimeInterval | ( | SecondsDifferenceType | , |
MicroSecondsDifferenceType | |||
) |
Constructor with values. Intentionally made public
itk::RealTimeInterval::~RealTimeInterval | ( | ) |
Destructor
TimeRepresentationType itk::RealTimeInterval::GetTimeInDays | ( | ) | const |
Return time in multiple units.
TimeRepresentationType itk::RealTimeInterval::GetTimeInHours | ( | ) | const |
Return time in multiple units.
TimeRepresentationType itk::RealTimeInterval::GetTimeInMicroSeconds | ( | ) | const |
Return time in multiple units.
TimeRepresentationType itk::RealTimeInterval::GetTimeInMilliSeconds | ( | ) | const |
Return time in multiple units.
TimeRepresentationType itk::RealTimeInterval::GetTimeInMinutes | ( | ) | const |
Return time in multiple units.
TimeRepresentationType itk::RealTimeInterval::GetTimeInSeconds | ( | ) | const |
Return time in multiple units.
bool itk::RealTimeInterval::operator!= | ( | const Self & | ) | const |
Comparison operations.
Arithmetic operations between RealTimeInterval and RealTimeInterval.
Arithmetic operations between RealTimeInterval and RealTimeInterval.
Arithmetic operations between RealTimeInterval and RealTimeInterval.
Arithmetic operations between RealTimeInterval and RealTimeInterval.
bool itk::RealTimeInterval::operator< | ( | const Self & | ) | const |
Comparison operations.
bool itk::RealTimeInterval::operator<= | ( | const Self & | ) | const |
Comparison operations.
bool itk::RealTimeInterval::operator== | ( | const Self & | ) | const |
Comparison operations.
bool itk::RealTimeInterval::operator> | ( | const Self & | ) | const |
Comparison operations.
bool itk::RealTimeInterval::operator>= | ( | const Self & | ) | const |
Comparison operations.
void itk::RealTimeInterval::Set | ( | SecondsDifferenceType | , |
MicroSecondsDifferenceType | |||
) |
Set with values. The units and signs of the seconds and microseconds will be harmonized internally.
|
friend |
Default print out of a RealTimeInterval
|
friend |
Definition at line 101 of file itkRealTimeInterval.h.
|
private |
Number of Microseconds since the second. Should be in the range -999,999 to 999,999 and it must always have the same sign as the m_Seconds member variable.
Definition at line 110 of file itkRealTimeInterval.h.
|
private |
Number of Seconds and Microseconds since...
Definition at line 104 of file itkRealTimeInterval.h.