vrpn 07.35
Virtual Reality Peripheral Network
|
Timestamp for a single event, produced by a vrpn_LamportClock and hopefully generally usable in place of a struct timeval. More...
#include <vrpn_LamportClock.h>
Public Member Functions | |
vrpn_LamportTimestamp (int vectorLength, vrpn_uint32 *vector) | |
vrpn_LamportTimestamp (const vrpn_LamportTimestamp &) | |
~vrpn_LamportTimestamp (void) | |
vrpn_LamportTimestamp & | operator= (const vrpn_LamportTimestamp &) |
vrpn_bool | operator< (const vrpn_LamportTimestamp &r) const |
Returns vrpn_true if this timestamp precedes r. It'd be nice if we could throw an exception here, since some timestamps are incommesurate. | |
vrpn_uint32 | operator[] (int i) const |
Returns the event count for the i'th host. | |
int | size (void) const |
Returns the number of hosts participating in the timestamp. | |
Timestamp for a single event, produced by a vrpn_LamportClock and hopefully generally usable in place of a struct timeval.
Definition at line 16 of file vrpn_LamportClock.h.
vrpn_LamportTimestamp::vrpn_LamportTimestamp | ( | int | vectorLength, |
vrpn_uint32 * | vector ) |
Definition at line 5 of file vrpn_LamportClock.C.
References vrpn_LamportTimestamp().
Referenced by vrpn_LamportTimestamp(), and vrpn_LamportTimestamp().
vrpn_LamportTimestamp::vrpn_LamportTimestamp | ( | const vrpn_LamportTimestamp & | r | ) |
Definition at line 14 of file vrpn_LamportClock.C.
References vrpn_LamportTimestamp().
vrpn_LamportTimestamp::~vrpn_LamportTimestamp | ( | void | ) |
Definition at line 25 of file vrpn_LamportClock.C.
vrpn_bool vrpn_LamportTimestamp::operator< | ( | const vrpn_LamportTimestamp & | r | ) | const |
Returns vrpn_true if this timestamp precedes r. It'd be nice if we could throw an exception here, since some timestamps are incommesurate.
Definition at line 63 of file vrpn_LamportClock.C.
vrpn_LamportTimestamp & vrpn_LamportTimestamp::operator= | ( | const vrpn_LamportTimestamp & | r | ) |
Definition at line 36 of file vrpn_LamportClock.C.
vrpn_uint32 vrpn_LamportTimestamp::operator[] | ( | int | i | ) | const |
Returns the event count for the i'th host.
Definition at line 91 of file vrpn_LamportClock.C.
int vrpn_LamportTimestamp::size | ( | void | ) | const |
Returns the number of hosts participating in the timestamp.
Definition at line 98 of file vrpn_LamportClock.C.
Referenced by vrpn_Shared_int32::encodeLamport(), and vrpn_LamportClock::receive().