Kicking it Olde Sküül! Burgerlib on Github Follow Olde Sküül on Twitter Burgerbecky on LinkedIn Burgerbecky on LinkedIn
Loading...
Searching...
No Matches
Burger::Queue< T >::Element Struct Reference

A single data chunk in the queue. More...

Collaboration diagram for Burger::Queue< T >::Element:

Public Member Functions

 Element (const T &rData)
 Constructor.
 

Public Attributes

m_Data
 Copy of the data attached to this entry.
 
Elementm_pNext
 Pointer to the next element in the singly linked list.
 

Detailed Description

template<class T>
struct Burger::Queue< T >::Element

A single data chunk in the queue.


This private data chunk is the representation of each element in the Queue

See also
Queue

Constructor & Destructor Documentation

◆ Element()

template<class T >
Burger::Queue< T >::Element::Element ( const T & rData)
inline

Constructor.


Make a copy of the data passed in by reference and clear the forward link.

Parameters
rDataReference to a data chunk to copy into the queue
See also
Queue::push(const T&) or Queue

Member Data Documentation

◆ m_Data

template<class T >
T Burger::Queue< T >::Element::m_Data

Copy of the data attached to this entry.

◆ m_pNext

template<class T >
Element* Burger::Queue< T >::Element::m_pNext

Pointer to the next element in the singly linked list.