GTK+ IOStream  Beta
<< GTK+ >> add C++ IOStream operators to GTK+. Now with extra abilities ... like network serialisation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
Lug< TYPE > Class Template Reference

Defines a lug in a linked list The concept is simple, this Lug points to a next or previous Lug. You can ask for the next or prev. If the constructor is called with the old lug, it is linked as the prvious. More...

#include <LinkList.H>

Collaboration diagram for Lug< TYPE >:
Collaboration graph
[legend]

Public Member Functions

 Lug (void)
 This is for the first element - links to itself. More...
 
 Lug (Lug< TYPE > *oldOne)
 Links to previous element and next element. More...
 
LuggetNext (void)
 Return a pointer to the next element. More...
 
LuggetPrev (void)
 Return a pointer to the previous element. More...
 

Public Attributes

Lug< TYPE > * next
 Links to the next and prev elements in the list. More...
 
Lug< TYPE > * prev
 
TYPE ptr
 

Detailed Description

template<class TYPE>
class Lug< TYPE >

Defines a lug in a linked list The concept is simple, this Lug points to a next or previous Lug. You can ask for the next or prev. If the constructor is called with the old lug, it is linked as the prvious.

Template Parameters
TYPEis the class or vairable type maintained by the linked list.

Definition at line 34 of file LinkList.H.

Constructor & Destructor Documentation

template<class TYPE>
Lug< TYPE >::Lug ( void  )
inline

This is for the first element - links to itself.

Definition at line 46 of file LinkList.H.

template<class TYPE>
Lug< TYPE >::Lug ( Lug< TYPE > *  oldOne)
inline

Links to previous element and next element.

Definition at line 54 of file LinkList.H.

Member Function Documentation

template<class TYPE>
Lug* Lug< TYPE >::getNext ( void  )
inline

Return a pointer to the next element.

Definition at line 68 of file LinkList.H.

template<class TYPE>
Lug* Lug< TYPE >::getPrev ( void  )
inline

Return a pointer to the previous element.

Definition at line 74 of file LinkList.H.

Member Data Documentation

template<class TYPE>
Lug<TYPE>* Lug< TYPE >::next

Links to the next and prev elements in the list.

Definition at line 41 of file LinkList.H.

template<class TYPE>
Lug<TYPE> * Lug< TYPE >::prev

Definition at line 41 of file LinkList.H.

template<class TYPE>
TYPE Lug< TYPE >::ptr

Definition at line 43 of file LinkList.H.


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