gtkIOStream  1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
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 >:
[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 33 of file LinkList.H.

Constructor & Destructor Documentation

◆ Lug() [1/2]

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

This is for the first element - links to itself.

Definition at line 45 of file LinkList.H.

◆ Lug() [2/2]

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

Links to previous element and next element.

Definition at line 53 of file LinkList.H.

Member Function Documentation

◆ getNext()

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

Return a pointer to the next element.

Definition at line 67 of file LinkList.H.

Here is the caller graph for this function:

◆ getPrev()

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

Return a pointer to the previous element.

Definition at line 76 of file LinkList.H.

Here is the caller graph for this function:

Member Data Documentation

◆ next

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

Links to the next and prev elements in the list.

Definition at line 40 of file LinkList.H.

◆ prev

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

Definition at line 40 of file LinkList.H.

◆ ptr

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

Definition at line 42 of file LinkList.H.


The documentation for this class was generated from the following file:
gtkIOStream: Lug< TYPE > Class Template Reference
GTK+ IOStream  Beta