Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

OldAPITimer Class Reference

#include <dr.hh>

Inheritance diagram for OldAPITimer:

Inheritance graph
[legend]
Collaboration diagram for OldAPITimer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OldAPITimer (TimerCallbacks *cb, void *p)
 ~OldAPITimer ()
int expire ()

Public Attributes

TimerCallbackscb_
void * p_

Constructor & Destructor Documentation

OldAPITimer::OldAPITimer TimerCallbacks cb,
void *  p
[inline]
 

Definition at line 97 of file dr.hh.

References cb_, and p_.

00097                                            :
00098     cb_(cb), p_(p) {};
  ~OldAPITimer() {};

OldAPITimer::~OldAPITimer  )  [inline]
 

Definition at line 99 of file dr.hh.

00099 {};


Member Function Documentation

int OldAPITimer::expire  )  [virtual]
 

Implements TimerCallback.

Definition at line 85 of file dr.cc.

References cb_, TimerCallbacks::expire(), and p_.

00086 {
00087   int retval;
00088 
00089   // Call the callback function with the provided API
00090   retval = cb_->expire(0, p_);
00091 
00092   if (retval < 0)
00093     delete this;
00094 
00095   return retval;
00096 }

Here is the call graph for this function:


Member Data Documentation

TimerCallbacks* OldAPITimer::cb_
 

Definition at line 102 of file dr.hh.

Referenced by expire(), and OldAPITimer().

void* OldAPITimer::p_
 

Definition at line 103 of file dr.hh.

Referenced by expire(), and OldAPITimer().


The documentation for this class was generated from the following files:
Generated on Tue Apr 20 13:06:09 2004 for NS2.26SourcesOriginal by doxygen 1.3.3