vul_timestamp Class Reference

#include <vul_timestamp.h>

List of all members.


Detailed Description

class to generate a unique timestamp.

Definition at line 14 of file vul_timestamp.h.


Public Member Functions

 vul_timestamp ()
 Constructor.
virtual ~vul_timestamp ()
 Destructor.
void touch ()
 Get a new timestamp.
unsigned long get_time_stamp () const
 Get a new timestamp (incremented by 1 each time).
bool older (vul_timestamp const &t) const
 Returns true if t is older than the last timestamp.
bool older (vul_timestamp const *t) const
 Returns true if t is older than the last timestamp.

Protected Attributes

unsigned long timestamp_
 last timestamp.

Static Private Member Functions

static unsigned long get_unique_timestamp ()
 get a new timestamp.

Static Private Attributes

static unsigned long mark
 mark is incremented to give a unique timestamp.

Constructor & Destructor Documentation

vul_timestamp::vul_timestamp (  )  [inline]

Constructor.

Definition at line 22 of file vul_timestamp.h.

virtual vul_timestamp::~vul_timestamp (  )  [inline, virtual]

Destructor.

Definition at line 24 of file vul_timestamp.h.


Member Function Documentation

void vul_timestamp::touch (  )  [inline]

Get a new timestamp.

Definition at line 27 of file vul_timestamp.h.

unsigned long vul_timestamp::get_time_stamp (  )  const [inline]

Get a new timestamp (incremented by 1 each time).

Definition at line 29 of file vul_timestamp.h.

bool vul_timestamp::older ( vul_timestamp const &  t  )  const [inline]

Returns true if t is older than the last timestamp.

Definition at line 32 of file vul_timestamp.h.

bool vul_timestamp::older ( vul_timestamp const *  t  )  const [inline]

Returns true if t is older than the last timestamp.

Definition at line 34 of file vul_timestamp.h.

static unsigned long vul_timestamp::get_unique_timestamp (  )  [inline, static, private]

get a new timestamp.

Definition at line 42 of file vul_timestamp.h.


Member Data Documentation

unsigned long vul_timestamp::mark [static, private]

mark is incremented to give a unique timestamp.

Definition at line 17 of file vul_timestamp.h.

unsigned long vul_timestamp::timestamp_ [protected]

last timestamp.

Definition at line 38 of file vul_timestamp.h.


The documentation for this class was generated from the following files:
Generated on Mon Mar 8 05:09:58 2010 for core/vul by  doxygen 1.5.1