jubilant-funicular
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
nta::utils::LinkedNode< T > Struct Template Reference

A generic linked list. More...

#include <LinkedNode.h>

Collaboration diagram for nta::utils::LinkedNode< T >:
Collaboration graph
[legend]

Classes

class  iterator
 Custom iterator for looping over the data in the linked list. More...
 

Public Member Functions

 LinkedNode (T d)
 
 LinkedNode (T d, LinkedNode *nxt)
 
iterator begin ()
 
iterator end ()
 
std::size_t size () const
 

Static Public Member Functions

static void remove (LinkedNode *&head, T d)
 
static void remove (LinkedNode *&node)
 
static bool remove (LinkedNode *&head, std::function< bool(const T &)> pred)
 returns true on success
 

Public Attributes

LinkedNodenext = nullptr
 The next node in the linked list.
 
data
 The (pointer to the) data associated to this node.
 

Detailed Description

template<typename T>
struct nta::utils::LinkedNode< T >

A generic linked list.

Definition at line 13 of file LinkedNode.h.


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