VirtualNode Class Reference

#include <VirtualNode.h>

Inheritance diagram for VirtualNode:
Object

# 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

- Private Member Functions inherited from Object
void constructor ()
 Class' constructor.
const void * getVTable ()
bool mutateTo (const void *targetClass)
- Static Private Member Functions inherited from Object
static Object getCast (void *object, ClassPointer targetClassGetClassMethod, ClassPointer baseClassGetClassMethod)
- Private Attributes inherited from Object
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
dataPointer 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
nodeNode to swap data with

Definition at line 64 of file VirtualNode.c.

# Member Data Documentation

# data

void* VirtualNode::data
protected

Pointer to the data.

Definition at line 39 of file VirtualNode.h.

# next

VirtualNode VirtualNode::next
protected

Pointer to the next node in the linked list.

Definition at line 33 of file VirtualNode.h.

# previous

VirtualNode VirtualNode::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: