Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages

PreciseTime Class Reference
[Concept]

#include <OpenMS/CONCEPT/TimeStamp.h>

List of all members.


Detailed Description

Time class.

Used to store a point of time.

Accessors

long getSeconds () const throw ()
long getMicroSeconds () const throw ()
static PreciseTime now () throw ()

Public Member Functions

Constructors and Destructors.
 PreciseTime () throw ()
 PreciseTime (const PreciseTime &time) throw ()
 PreciseTime (long secs, long usecs) throw ()
virtual ~PreciseTime () throw ()
Assignment
void set (long secs, long usecs) throw ()
void set (const PreciseTime &time) throw ()
const PreciseTimeoperator= (const PreciseTime &time) throw ()
virtual void clear () throw ()
Predicates
bool operator< (const PreciseTime &time) const throw ()
bool operator> (const PreciseTime &time) const throw ()
bool operator== (const PreciseTime &time) const throw ()

Static Public Attributes

Constants.
static const PreciseTime ZERO

Protected Attributes

long secs_
long usecs_


Constructor & Destructor Documentation

PreciseTime (  )  throw ()

Default constructor. Initialize with zero.

PreciseTime ( const PreciseTime time  )  throw ()

Copy constructor

PreciseTime ( long  secs,
long  usecs 
) throw () [inline]

Detailed constructor

~PreciseTime (  )  throw () [inline, virtual]

Destructor


Member Function Documentation

void set ( long  secs,
long  usecs 
) throw () [inline]

Assignment method

void set ( const PreciseTime time  )  throw () [inline]

Assignment method

const PreciseTime & operator= ( const PreciseTime time  )  throw () [inline]

Assignment operator

void clear (  )  throw () [inline, virtual]

Clear method

bool operator< ( const PreciseTime time  )  const throw () [inline]

Greater than operator.

bool operator> ( const PreciseTime time  )  const throw () [inline]

Lesser than operator.

bool operator== ( const PreciseTime time  )  const throw () [inline]

Equality operator.

long getSeconds (  )  const throw () [inline]

Return the seconds since Jan. 1, 1970.

long getMicroSeconds (  )  const throw () [inline]

Return the microseconds.

static PreciseTime now (  )  throw () [static]

Return the current time.

Returns:
PreciseTime the current time in seconds since Jan. 1, 1970


Member Data Documentation

const PreciseTime ZERO [static]

Zero object.

long secs_ [protected]

long usecs_ [protected]


The documentation for this class was generated from the following file:
Generated Tue Apr 1 15:36:43 2008 -- using doxygen 1.5.4 OpenMS / TOPP 1.1