#include <wipal/phy/prism_header.hh>
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_type & | operator+= (tool::microseconds microseconds) |
exact_type | operator+ (tool::microseconds microseconds) const |
Downcast methods | |
const exact_type & | exact () const |
exact_type & | exact () |
const exact_type * | exact_ptr () const |
exact_type * | exact_ptr () |
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_type & | increment (tool::microseconds microseconds) |
typedef prism::time prism::time::exact_type |
Exact type for this template instanciation.
Reimplemented from phy::time< prism::time >.
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.
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 | ( | ) | const [inherited] |
Safely downcast to the exact type as a const reference.
exact_type* tool::static_base< prism::time >::exact_ptr | ( | ) | [inherited] |
Safely downcast to the exact type as a non-const pointer.
const exact_type* tool::static_base< prism::time >::exact_ptr | ( | ) | const [inherited] |
Safely downcast to the exact type as a const pointer.
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.
uint32_t prism::time::hosttime | ( | ) | const [inline] |
Retrieve the header's host time.
uint32_t prism::time::mactime | ( | ) | const [inline] |
Retrieve the header's MAC time.
exact_type phy::time< prism::time >::operator+ | ( | tool::microseconds | microseconds | ) | const [inherited] |
Add a microsecond count to the current time value.
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.