VirtualNode Class Reference
#include <VirtualNode.h>
![](../class_virtual_node.png)
# Public Member Functions | |
void | constructor (const void *const data) |
void * | getData () |
VirtualNode | getNext () |
VirtualNode | getPrevious () |
void | swapData (VirtualNode node) |
# Protected Attributes | |
VirtualNode | next |
Pointer to the next node in the linked list. | |
VirtualNode | previous |
Pointer to the previous node in the linked list. | |
void * | data |
Pointer to the data. |
# Additional Inherited Members | |
![]() | |
void | constructor () |
Class' constructor. | |
const void * | getVTable () |
bool | mutateTo (const void *targetClass) |
![]() | |
static Object | getCast (void *object, ClassPointer targetClassGetClassMethod, ClassPointer baseClassGetClassMethod) |
![]() | |
void * | vTable |
Pointer to the class's virtual table. |
# Detailed Description
Class VirtualNode
Inherits from Object
Implements an element of linked lists.
Definition at line 28 of file VirtualNode.h.
# Member Function Documentation
# constructor()
void VirtualNode::constructor | ( | const void *const | data | ) |
Class' constructor
- Parameters
-
data Pointer to the data hold by this node
Definition at line 22 of file VirtualNode.c.
# getData()
void * VirtualNode::getData | ( | ) |
Retrieve the pointer to the data.
- Returns
- Pointer to the data
Definition at line 43 of file VirtualNode.c.
# getNext()
VirtualNode VirtualNode::getNext | ( | ) |
Retrieve the next node in the linked list.
- Returns
- Next node in the linked list
Definition at line 50 of file VirtualNode.c.
# getPrevious()
VirtualNode VirtualNode::getPrevious | ( | ) |
Retrieve the previous node in the linked list.
- Returns
- Previous node in the linked list
Definition at line 57 of file VirtualNode.c.
# swapData()
void VirtualNode::swapData | ( | VirtualNode | node | ) |
Swap the data with another node
- Parameters
-
node Node to swap data with
Definition at line 64 of file VirtualNode.c.
# Member Data Documentation
# data
|
protected |
Pointer to the data.
Definition at line 39 of file VirtualNode.h.
# next
|
protected |
Pointer to the next node in the linked list.
Definition at line 33 of file VirtualNode.h.
# previous
|
protected |
Pointer to the previous node in the linked list.
Definition at line 36 of file VirtualNode.h.
The documentation for this class was generated from the following files:
- VUEngine-Core/source/Misc/Lists/VirtualNode.h
- VUEngine-Core/source/Misc/Lists/VirtualNode.c