timeLength Class Reference

#include <Time.h>

Inheritance diagram for timeLength:
timeParent

Public Member Functions

COMMON_EXPORT timeLength ()
COMMON_EXPORT timeLength (int64_t iTime, const timeUnit &u)
COMMON_EXPORT timeLength (int iTime, const timeUnit &u)
COMMON_EXPORT timeLength (double dTime, const timeUnit &u)
COMMON_EXPORT double getD (const timeUnit &u) const
COMMON_EXPORT int64_t getI (const timeUnit &u) const
COMMON_EXPORT int64_t get_ns () const
COMMON_EXPORT bool isInitialized () const

Static Public Member Functions

static COMMON_EXPORT const
timeLength
Zero ()
static COMMON_EXPORT const
timeLength
ns ()
static COMMON_EXPORT const
timeLength
us ()
static COMMON_EXPORT const
timeLength
ms ()
static COMMON_EXPORT const
timeLength
sec ()
static COMMON_EXPORT const
timeLength
minute ()
static COMMON_EXPORT const
timeLength
hour ()
static COMMON_EXPORT const
timeLength
day ()
static COMMON_EXPORT const
timeLength
year ()
static COMMON_EXPORT const
timeLength
leapYear ()

Protected Member Functions

COMMON_EXPORT void assign (const int64_t v)
COMMON_EXPORT int64_t getRolloverTime (double t)

Private Member Functions

COMMON_EXPORT void initI (int64_t iTime, const timeUnit &u)
COMMON_EXPORT timeLength (int64_t ns_)

Static Private Member Functions

static COMMON_EXPORT const
timeLength
ZeroHelp ()
static COMMON_EXPORT const
timeLength
nsHelp ()
static COMMON_EXPORT const
timeLength
usHelp ()
static COMMON_EXPORT const
timeLength
msHelp ()
static COMMON_EXPORT const
timeLength
secHelp ()
static COMMON_EXPORT const
timeLength
minHelp ()
static COMMON_EXPORT const
timeLength
hourHelp ()
static COMMON_EXPORT const
timeLength
dayHelp ()
static COMMON_EXPORT const
timeLength
yearHelp ()
static COMMON_EXPORT const
timeLength
leapYearHelp ()

Static Private Attributes

static COMMON_EXPORT const
timeLength
_zero = NULL
static COMMON_EXPORT const
timeLength
_ns = NULL
static COMMON_EXPORT const
timeLength
_us = NULL
static COMMON_EXPORT const
timeLength
_ms = NULL
static COMMON_EXPORT const
timeLength
_sec = NULL
static COMMON_EXPORT const
timeLength
_minute = NULL
static COMMON_EXPORT const
timeLength
_hour = NULL
static COMMON_EXPORT const
timeLength
_day = NULL
static COMMON_EXPORT const
timeLength
_year = NULL
static COMMON_EXPORT const
timeLength
_leapYear = NULL

Friends

COMMON_EXPORT const timeLength operator+= (timeLength &t, timeLength tl)
COMMON_EXPORT const timeLength operator-= (timeLength &t, timeLength tl)
COMMON_EXPORT const timeLength operator*= (timeLength &t, double d)
COMMON_EXPORT const timeLength operator/= (timeLength &t, double d)
COMMON_EXPORT const timeLength operator- (const timeLength &t)
COMMON_EXPORT const timeLength operator- (const timeStamp &a, const timeStamp &b)
COMMON_EXPORT const timeLength operator- (const relTimeStamp &a, const relTimeStamp &b)
COMMON_EXPORT const timeStamp operator+ (const timeStamp &a, const timeLength &b)
COMMON_EXPORT const timeStamp operator- (const timeStamp &a, const timeLength &b)
COMMON_EXPORT const timeStamp operator+ (const timeLength &a, const timeStamp &b)
COMMON_EXPORT const timeLength operator+ (const timeLength &a, const timeLength &b)
COMMON_EXPORT const timeLength operator- (const timeLength &a, const timeLength &b)
COMMON_EXPORT const timeLength operator* (const timeLength &a, double b)
COMMON_EXPORT const timeLength operator/ (const timeLength &a, double b)
COMMON_EXPORT const timeLength operator* (double a, const timeLength &b)
COMMON_EXPORT const timeLength operator/ (double a, const timeLength &b)
COMMON_EXPORT double operator/ (const timeLength &a, const timeLength &b)

Detailed Description

Definition at line 316 of file Time.h.


Constructor & Destructor Documentation

COMMON_EXPORT timeLength::timeLength (  ) 
COMMON_EXPORT timeLength::timeLength ( int64_t  iTime,
const timeUnit u 
)

Definition at line 473 of file Time.C.

References initI().

COMMON_EXPORT timeLength::timeLength ( int  iTime,
const timeUnit u 
)

Definition at line 479 of file Time.C.

References initI().

timeLength::timeLength ( double  dTime,
const timeUnit u 
)
timeLength::timeLength ( int64_t  ns_  )  [private]

Definition at line 963 of file Time.C.


Member Function Documentation

void timeParent::assign ( const int64_t  v  )  [protected, inherited]
const timeLength & timeLength::day (  )  [static]

Definition at line 518 of file Time.C.

References _day, and dayHelp().

const timeLength * timeLength::dayHelp (  )  [static, private]

Definition at line 275 of file Time.C.

References timeUnit::day(), and timeLength().

Referenced by day().

int64_t timeParent::get_ns (  )  const [inherited]
double timeLength::getD ( const timeUnit u  )  const

Definition at line 953 of file Time.C.

References timeUnit::cvtFrom_nsD(), and timeParent::get_ns().

int64_t timeLength::getI ( const timeUnit u  )  const
int64_t timeParent::getRolloverTime ( double  t  )  [protected, inherited]

Definition at line 134 of file Time.C.

References I64_MAX.

Referenced by relTimeStamp::relTimeStamp(), timeLength(), and timeStamp::timeStamp().

const timeLength & timeLength::hour (  )  [static]

Definition at line 514 of file Time.C.

References _hour, and hourHelp().

const timeLength * timeLength::hourHelp (  )  [static, private]

Definition at line 271 of file Time.C.

References timeUnit::hour(), and timeLength().

Referenced by hour().

void timeLength::initI ( int64_t  iTime,
const timeUnit u 
) [private]

Definition at line 191 of file Time.C.

References timeParent::assign(), and timeUnit::cvtTo_ns().

Referenced by timeLength().

bool timeParent::isInitialized (  )  const [inherited]
const timeLength & timeLength::leapYear (  )  [static]

Definition at line 526 of file Time.C.

References _leapYear, and leapYearHelp().

Referenced by timeStamp::ts1800Help(), and timeStamp::ts2200Help().

const timeLength * timeLength::leapYearHelp (  )  [static, private]

Definition at line 283 of file Time.C.

References timeUnit::leapYear(), and timeLength().

Referenced by leapYear().

const timeLength * timeLength::minHelp (  )  [static, private]

Definition at line 267 of file Time.C.

References timeUnit::minute(), and timeLength().

Referenced by minute().

const timeLength & timeLength::minute (  )  [static]

Definition at line 510 of file Time.C.

References _minute, and minHelp().

const timeLength & timeLength::ms (  )  [static]

Definition at line 502 of file Time.C.

References _ms, and msHelp().

const timeLength * timeLength::msHelp (  )  [static, private]

Definition at line 259 of file Time.C.

References timeUnit::ms(), and timeLength().

Referenced by ms().

const timeLength & timeLength::ns (  )  [static]

Definition at line 494 of file Time.C.

References _ns, and nsHelp().

const timeLength * timeLength::nsHelp (  )  [static, private]

Definition at line 251 of file Time.C.

References timeUnit::ns(), and timeLength().

Referenced by ns().

const timeLength & timeLength::sec (  )  [static]

Definition at line 506 of file Time.C.

References _sec, and secHelp().

const timeLength * timeLength::secHelp (  )  [static, private]

Definition at line 263 of file Time.C.

References timeUnit::sec(), and timeLength().

Referenced by sec().

const timeLength & timeLength::us (  )  [static]

Definition at line 498 of file Time.C.

References _us, and usHelp().

const timeLength * timeLength::usHelp (  )  [static, private]

Definition at line 255 of file Time.C.

References timeLength(), and timeUnit::us().

Referenced by us().

const timeLength & timeLength::year (  )  [static]

Definition at line 522 of file Time.C.

References _year, and yearHelp().

Referenced by timeStamp::ts1800Help(), and timeStamp::ts2200Help().

const timeLength * timeLength::yearHelp (  )  [static, private]

Definition at line 279 of file Time.C.

References timeLength(), and timeUnit::year().

Referenced by year().

const timeLength & timeLength::Zero (  )  [static]

Definition at line 490 of file Time.C.

References _zero, and ZeroHelp().

const timeLength * timeLength::ZeroHelp (  )  [static, private]

Definition at line 233 of file Time.C.

References timeUnit::sec(), and timeLength().

Referenced by Zero().


Friends And Related Function Documentation

COMMON_EXPORT const timeLength operator* ( double  a,
const timeLength b 
) [friend]
COMMON_EXPORT const timeLength operator* ( const timeLength a,
double  b 
) [friend]
COMMON_EXPORT const timeLength operator*= ( timeLength t,
double  d 
) [friend]
COMMON_EXPORT const timeLength operator+ ( const timeLength a,
const timeLength b 
) [friend]
COMMON_EXPORT const timeStamp operator+ ( const timeLength a,
const timeStamp b 
) [friend]
COMMON_EXPORT const timeStamp operator+ ( const timeStamp a,
const timeLength b 
) [friend]
COMMON_EXPORT const timeLength operator+= ( timeLength t,
timeLength  tl 
) [friend]
COMMON_EXPORT const timeLength operator- ( const timeLength a,
const timeLength b 
) [friend]
COMMON_EXPORT const timeStamp operator- ( const timeStamp a,
const timeLength b 
) [friend]
COMMON_EXPORT const timeLength operator- ( const relTimeStamp a,
const relTimeStamp b 
) [friend]

Definition at line 731 of file Time.C.

COMMON_EXPORT const timeLength operator- ( const timeStamp a,
const timeStamp b 
) [friend]

Definition at line 574 of file Time.C.

COMMON_EXPORT const timeLength operator- ( const timeLength t  )  [friend]
COMMON_EXPORT const timeLength operator-= ( timeLength t,
timeLength  tl 
) [friend]
COMMON_EXPORT double operator/ ( const timeLength a,
const timeLength b 
) [friend]
COMMON_EXPORT const timeLength operator/ ( double  a,
const timeLength b 
) [friend]
COMMON_EXPORT const timeLength operator/ ( const timeLength a,
double  b 
) [friend]
COMMON_EXPORT const timeLength operator/= ( timeLength t,
double  d 
) [friend]

Field Documentation

const timeLength * timeLength::_day = NULL [static, private]

Definition at line 326 of file Time.h.

Referenced by day().

const timeLength * timeLength::_hour = NULL [static, private]

Definition at line 325 of file Time.h.

Referenced by hour().

const timeLength * timeLength::_leapYear = NULL [static, private]

Definition at line 328 of file Time.h.

Referenced by leapYear().

const timeLength * timeLength::_minute = NULL [static, private]

Definition at line 324 of file Time.h.

Referenced by minute().

const timeLength * timeLength::_ms = NULL [static, private]

Definition at line 322 of file Time.h.

Referenced by ms().

const timeLength * timeLength::_ns = NULL [static, private]

Definition at line 320 of file Time.h.

Referenced by ns().

const timeLength * timeLength::_sec = NULL [static, private]

Definition at line 323 of file Time.h.

Referenced by sec().

const timeLength * timeLength::_us = NULL [static, private]

Definition at line 321 of file Time.h.

Referenced by us().

const timeLength * timeLength::_year = NULL [static, private]

Definition at line 327 of file Time.h.

Referenced by year().

const timeLength * timeLength::_zero = NULL [static, private]

Definition at line 319 of file Time.h.

Referenced by Zero().


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 12 Jul 2013 for SymtabAPI by  doxygen 1.6.1