ITK  4.2.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Private Attributes | Friends
itk::RealTimeInterval Class Reference

#include <itkRealTimeInterval.h>

List of all members.

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 Selfoperator-= (const Self &)
const Selfoperator+= (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

Detailed Description

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.

See also:
RealTimeStamp
RealTimeClock

Definition at line 45 of file itkRealTimeInterval.h.


Member Typedef Documentation

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.

Native type used to represent the time in different time units.

Definition at line 65 of file itkRealTimeInterval.h.


Constructor & Destructor Documentation

itk::RealTimeInterval::RealTimeInterval ( )

Constructor

itk::RealTimeInterval::RealTimeInterval ( SecondsDifferenceType  ,
MicroSecondsDifferenceType   
)

Constructor with values. Intentionally made public

itk::RealTimeInterval::~RealTimeInterval ( )

Destructor


Member Function Documentation

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.

Self itk::RealTimeInterval::operator+ ( const Self ) const

Arithmetic operations between RealTimeInterval and RealTimeInterval.

const Self& itk::RealTimeInterval::operator+= ( const Self )

Arithmetic operations between RealTimeInterval and RealTimeInterval.

Self itk::RealTimeInterval::operator- ( const Self ) const

Arithmetic operations between RealTimeInterval and RealTimeInterval.

const Self& itk::RealTimeInterval::operator-= ( const Self )

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.


Friends And Related Function Documentation

ITKCommon_EXPORT std::ostream& operator<< ( std::ostream &  os,
const RealTimeInterval v 
)
friend

Default print out of a RealTimeInterval

friend class RealTimeStamp
friend

Definition at line 101 of file itkRealTimeInterval.h.


Member Data Documentation

MicroSecondsDifferenceType itk::RealTimeInterval::m_MicroSeconds
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.

SecondsDifferenceType itk::RealTimeInterval::m_Seconds
private

Number of Seconds and Microseconds since...

Definition at line 104 of file itkRealTimeInterval.h.


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