Public Member Functions | Protected Attributes | Static Private Member Functions | Static Private Attributes
vul_timestamp Class Reference

class to generate a unique timestamp. More...

#include <vul_timestamp.h>

List of all members.

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 = 0
 mark is incremented to give a unique timestamp.

Detailed Description

class to generate a unique timestamp.

Definition at line 14 of file vul_timestamp.h.


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

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.

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

get a new timestamp.

Definition at line 42 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.

void vul_timestamp::touch ( ) [inline]

Get a new timestamp.

Definition at line 27 of file vul_timestamp.h.


Member Data Documentation

unsigned long vul_timestamp::mark = 0 [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: