vrpn  07.33
Virtual Reality Peripheral Network
vrpn_LamportTimestamp Class Reference

#include <vrpn_LamportClock.h>

Public Member Functions

 vrpn_LamportTimestamp (int vectorLength, vrpn_uint32 *vector)
 
 vrpn_LamportTimestamp (const vrpn_LamportTimestamp &)
 
 ~vrpn_LamportTimestamp (void)
 
vrpn_LamportTimestampoperator= (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. More...
 
vrpn_uint32 operator[] (int i) const
 Returns the event count for the i'th host. More...
 
int size (void) const
 Returns the number of hosts participating in the timestamp. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ vrpn_LamportTimestamp() [1/2]

vrpn_LamportTimestamp::vrpn_LamportTimestamp ( int  vectorLength,
vrpn_uint32 *  vector 
)

Definition at line 3 of file vrpn_LamportClock.C.

References vrpn_LamportTimestamp().

Referenced by vrpn_LamportTimestamp().

Here is the call graph for this function:

◆ vrpn_LamportTimestamp() [2/2]

vrpn_LamportTimestamp::vrpn_LamportTimestamp ( const vrpn_LamportTimestamp r)

Definition at line 11 of file vrpn_LamportClock.C.

References vrpn_LamportTimestamp().

Here is the call graph for this function:

◆ ~vrpn_LamportTimestamp()

vrpn_LamportTimestamp::~vrpn_LamportTimestamp ( void  )

Definition at line 21 of file vrpn_LamportClock.C.

Member Function Documentation

◆ operator<()

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 44 of file vrpn_LamportClock.C.

◆ operator=()

vrpn_LamportTimestamp & vrpn_LamportTimestamp::operator= ( const vrpn_LamportTimestamp r)

Definition at line 27 of file vrpn_LamportClock.C.

◆ operator[]()

vrpn_uint32 vrpn_LamportTimestamp::operator[] ( int  i) const

Returns the event count for the i'th host.

Definition at line 72 of file vrpn_LamportClock.C.

◆ size()

int vrpn_LamportTimestamp::size ( void  ) const

Returns the number of hosts participating in the timestamp.

Definition at line 79 of file vrpn_LamportClock.C.

Referenced by vrpn_Shared_int32::encodeLamport(), and vrpn_LamportClock::receive().


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