DLinkable Class Reference

#include <_link.h>

Inheritance diagram for DLinkable:

Source SourceCBR SourceExpon SourcePareto

List of all members.

Public Member Functions

 DLinkable (DLinkable *prev=NULL, DLinkable *next=NULL)
virtual ~DLinkable ()
DLinkableGetNext (void)
DLinkableGetPrev (void)
void InsertAfter (DLinkable *ptr)
void InsertBefore (DLinkable *ptr)
void Insert (DLinkable *prv, DLinkable *nxt)
void Remove (void)

Private Attributes

DLinkablepPrev
DLinkablepNext


Detailed Description

Definition at line 32 of file _link.h.


Constructor & Destructor Documentation

DLinkable::DLinkable ( DLinkable prev = NULL,
DLinkable next = NULL 
) [inline]

Definition at line 41 of file _link.h.

00041 { pPrev = prev; pNext = next; }

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

Definition at line 42 of file _link.h.

00042 {}


Member Function Documentation

DLinkable* DLinkable::GetNext ( void   )  [inline]

Definition at line 44 of file _link.h.

00044 { return pNext; }

DLinkable* DLinkable::GetPrev ( void   )  [inline]

Definition at line 45 of file _link.h.

00045 { return pPrev; }

void DLinkable::Insert ( DLinkable prv,
DLinkable nxt 
) [inline]

Definition at line 49 of file _link.h.

00050     { 
00051         if(( pPrev = prv )) pPrev->pNext = this; 
00052         if(( pNext = nxt )) pNext->pPrev = this; 
00053     }

void DLinkable::InsertAfter ( DLinkable ptr  )  [inline]

Definition at line 46 of file _link.h.

00046 { Insert( ptr, ptr? ptr->pNext : NULL ); }

void DLinkable::InsertBefore ( DLinkable ptr  )  [inline]

Definition at line 47 of file _link.h.

00047 { Insert( ptr? ptr->pNext : NULL, ptr ); }

void DLinkable::Remove ( void   )  [inline]

Definition at line 55 of file _link.h.

00056     { 
00057         if( pPrev ) pPrev->pNext = pNext; 
00058         if( pNext ) pNext->pPrev = pPrev; 
00059     }


Member Data Documentation

Definition at line 36 of file _link.h.

Definition at line 35 of file _link.h.


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

Generated on Thu Nov 28 14:47:22 2013 for red_wireless by  doxygen 1.5.7.1