prism::time Struct Reference

#include <wipal/phy/prism_header.hh>

Inheritance diagram for prism::time:

phy::time< prism::time > tool::static_base< prism::time >

List of all members.


Detailed Description

Prism headers timing information.

See also:
phy::time

Static hierarchies related types and methods.

typedef prism::time exact_type
typedef WP_TYPE_ (impl_type, exact_type) impl_type
impl_type get_impl () const
exact_typeincrement (tool::microseconds microseconds)

Public Types

Static hierarchies related types
typedef HIDDEN impl_type

Public Member Functions

 time ()
 time (uint32_t mactime, uint32_t hosttime)
uint32_t mactime () const
uint32_t hosttime () const
impl_type get () const
exact_typeoperator+= (tool::microseconds microseconds)
exact_type operator+ (tool::microseconds microseconds) const
Downcast methods
const exact_typeexact () const
exact_typeexact ()
const exact_typeexact_ptr () const
exact_typeexact_ptr ()

Member Typedef Documentation

Exact type for this template instanciation.

See also:
static_base

Reimplemented from phy::time< prism::time >.


Constructor & Destructor Documentation

prism::time::time (  )  [inline]

Default constructor. Initialize all fields to zero.

prism::time::time ( uint32_t  mactime,
uint32_t  hosttime 
) [inline]

Initialize mactime and hosttime according to the given arguments.


Member Function Documentation

uint32_t prism::time::mactime (  )  const [inline]

Retrieve the header's MAC time.

uint32_t prism::time::hosttime (  )  const [inline]

Retrieve the header's host time.

impl_type phy::time< prism::time >::get (  )  const [inherited]

Retrieve the timestamp to use for synchronization.

This method calls get_impl() which must be defined in subclasses. Do not override it. Define get_impl() in subclasses instead.

See also:
phy::time

exact_type& phy::time< prism::time >::operator+= ( tool::microseconds  microseconds  )  [inherited]

Add a microsecond count to the current time value.

This methods calls increment() which must be defined in subclasses. Do not override it. Define increment() in subclasses instead.

increment() must return a reference to itself.

exact_type phy::time< prism::time >::operator+ ( tool::microseconds  microseconds  )  const [inherited]

Add a microsecond count to the current time value.

See also:
operator+=()

const exact_type& tool::static_base< prism::time >::exact (  )  const [inherited]

Safely downcast to the exact type as a const reference.

exact_type& tool::static_base< prism::time >::exact (  )  [inherited]

Safely downcast to the exact type as a non-const reference.

const exact_type* tool::static_base< prism::time >::exact_ptr (  )  const [inherited]

Safely downcast to the exact type as a const pointer.

exact_type* tool::static_base< prism::time >::exact_ptr (  )  [inherited]

Safely downcast to the exact type as a non-const pointer.


The documentation for this struct was generated from the following files:

Generated on Fri Jan 16 11:55:56 2009 for wipal by  doxygen 1.5.6