Singly linked list pointer. More...
Public Member Functions | |
ForwardLink () noexcept | |
Constructor with nullptr. | |
ForwardLink (ForwardLink *pNext) noexcept | |
Constructor with a supplied next pointer. | |
void | clear (void) noexcept |
Set the pointer to nullptr. | |
ForwardLink * | get_next (void) const noexcept |
Get the pointer to the next entry in the linked list. | |
void | set_next (ForwardLink *pNext) noexcept |
Set the pointer to pNext. | |
Private Member Functions | |
ForwardLink (const ForwardLink &)=delete | |
ForwardLink & | operator= (const ForwardLink &)=delete |
ForwardLink (ForwardLink &&)=delete | |
ForwardLink & | operator= (ForwardLink &&)=delete |
Private Attributes | |
ForwardLink * | m_pNext |
Pointer to the next object in the singly linked list. | |
Singly linked list pointer.
For classes that maintain singly linked lists, this class holds a single pointer to the next entry in the list or nullptr to denote the end of the list. For classes that work with circular lists, there will be no nullptr to the last entry
|
privatedelete |
|
privatedelete |
|
inlinenoexcept |
Constructor with nullptr.
Default constructor that sets the next pointer to nullptr
|
inlinenoexcept |
Constructor with a supplied next pointer.
Default constructor that sets the next pointer to pNext
pNext | Pointer to the ForwardLink that follows this class instance in the linked list |
|
inlinenoexcept |
|
inlinenoexcept |
Get the pointer to the next entry in the linked list.
|
privatedelete |
|
privatedelete |
|
inlinenoexcept |
Set the pointer to pNext.
pNext | Pointer to the ForwardLink that follows this class instance in the linked list |
|
private |
Pointer to the next object in the singly linked list.