N-sim
Emulation and simulation of
Wireless Sensor Networks



   Home


   Project Page


   Download


   CVS



   Installation


   Configuration


   Plug-ins




 Hosted by
SourceForge.net Logo

VT_timestamp Class Reference

#include <virtual_time.h>

List of all members.

Public Member Functions

 VT_timestamp ()
 VT_timestamp (unsigned long s, unsigned long u)
 VT_timestamp (char *string)
char * to_string ()
unsigned long get_sec ()
unsigned long get_usec ()
void operator++ (int)
void operator++ ()
VT_timestampoperator+ (int usec)
VT_timestampoperator+ (VT_timestamp other)
bool operator== (VT_timestamp other)
bool operator< (VT_timestamp other)
bool operator> (VT_timestamp other)
bool operator<= (VT_timestamp other)
bool operator>= (VT_timestamp other)

Static Public Member Functions

static void init (VT_timestamp t)
static void tick (void)
static VT_timestamp local_vt ()
static VT_timestamp global_vt ()
static VT_timestamp max ()
static int string_len ()
static void min_time (VT_timestamp t[], int n, VT_timestamp &min)

Friends

class VT_message


Detailed Description

Definition at line 58 of file virtual_time.h.


Constructor & Destructor Documentation

VT_timestamp::VT_timestamp  ) 
 

Definition at line 73 of file virtual_time.h.

References _sec, and _usec.

Referenced by max(), and tick().

VT_timestamp::VT_timestamp unsigned long  s,
unsigned long  u
 

Definition at line 78 of file virtual_time.h.

VT_timestamp::VT_timestamp char *  string  ) 
 

Definition at line 83 of file virtual_time.h.


Member Function Documentation

unsigned long VT_timestamp::get_sec  ) 
 

Definition at line 89 of file virtual_time.h.

Referenced by operator+(), operator<(), operator<=(), operator==(), operator>(), and operator>=().

unsigned long VT_timestamp::get_usec  ) 
 

Definition at line 90 of file virtual_time.h.

Referenced by operator+(), operator<(), operator<=(), operator==(), operator>(), and operator>=().

static VT_timestamp VT_timestamp::global_vt  )  [static]
 

Definition at line 181 of file virtual_time.h.

Referenced by global_virtual_time().

static void VT_timestamp::init VT_timestamp  t  )  [static]
 

Definition at line 169 of file virtual_time.h.

static VT_timestamp VT_timestamp::local_vt  )  [static]
 

Definition at line 178 of file virtual_time.h.

Referenced by local_virtual_time().

static VT_timestamp VT_timestamp::max  )  [static]
 

Definition at line 184 of file virtual_time.h.

References MAX_ULONG, and VT_timestamp().

Referenced by min_time(), and tick().

static void VT_timestamp::min_time VT_timestamp  t[],
int  n,
VT_timestamp min
[static]
 

Definition at line 188 of file virtual_time.h.

References max(), and min.

VT_timestamp& VT_timestamp::operator+ VT_timestamp  other  ) 
 

Definition at line 121 of file virtual_time.h.

References get_sec(), get_usec(), and MICRO.

VT_timestamp& VT_timestamp::operator+ int  usec  ) 
 

Definition at line 112 of file virtual_time.h.

References MICRO.

void VT_timestamp::operator++  ) 
 

Definition at line 102 of file virtual_time.h.

References MAX_ULONG, and MICRO.

void VT_timestamp::operator++ int   ) 
 

Definition at line 92 of file virtual_time.h.

References MAX_ULONG, and MICRO.

bool VT_timestamp::operator< VT_timestamp  other  ) 
 

Definition at line 137 of file virtual_time.h.

References get_sec(), and get_usec().

bool VT_timestamp::operator<= VT_timestamp  other  ) 
 

Definition at line 153 of file virtual_time.h.

References get_sec(), and get_usec().

bool VT_timestamp::operator== VT_timestamp  other  ) 
 

Definition at line 131 of file virtual_time.h.

References get_sec(), and get_usec().

bool VT_timestamp::operator> VT_timestamp  other  ) 
 

Definition at line 145 of file virtual_time.h.

References get_sec(), and get_usec().

bool VT_timestamp::operator>= VT_timestamp  other  ) 
 

Definition at line 161 of file virtual_time.h.

References get_sec(), and get_usec().

static int VT_timestamp::string_len  )  [static]
 

Definition at line 187 of file virtual_time.h.

Referenced by virtual_time_server().

static void VT_timestamp::tick void   )  [static]
 

Definition at line 172 of file virtual_time.h.

References max(), and VT_timestamp().

Referenced by virtual_time_iterate().

char* VT_timestamp::to_string  ) 
 

Definition at line 88 of file virtual_time.h.

Referenced by VT_message::to_string().


Friends And Related Function Documentation

friend class VT_message [friend]
 

Definition at line 70 of file virtual_time.h.


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


© 2007, Los Alamos National Security, LLC.