Gymbo
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Public Attributes | List of all members
gymbo::LLNode< T > Class Template Reference

Node for a Doubly Linked List. More...

#include <utils.h>

Collaboration diagram for gymbo::LLNode< T >:
Collaboration graph
[legend]

Public Member Functions

 LLNode (T data)
 Default constructor for LLNode. More...
 

Public Attributes

data
 The data stored in the node. More...
 
LLNodenext
 Pointer to the next node in the linked list. More...
 
LLNodeprev
 Pointer to the previous node in the linked list. More...
 

Detailed Description

template<typename T>
class gymbo::LLNode< T >

Node for a Doubly Linked List.

The LLNode class represents a node in a doubly linked list. It contains data of type T, and pointers to the next and previous nodes in the list.

Template Parameters
TThe type of data to store in the node.

Constructor & Destructor Documentation

◆ LLNode()

template<typename T >
gymbo::LLNode< T >::LLNode ( data)
inline

Default constructor for LLNode.

Parameters
dataThe data to store in the node.

Member Data Documentation

◆ data

template<typename T >
T gymbo::LLNode< T >::data

The data stored in the node.

◆ next

template<typename T >
LLNode* gymbo::LLNode< T >::next

Pointer to the next node in the linked list.

◆ prev

template<typename T >
LLNode* gymbo::LLNode< T >::prev

Pointer to the previous node in the linked list.


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