The Node class contains a Position for a Particle in the MultiQueue.
More...
#include <node.h>
The Node class contains a Position for a Particle in the MultiQueue.
The Node holds a Position for a Particle, and contains pointers to the previous Node and next Node in the MultiQueue, as well as pointers to the prevoius and next Nodes that are instances of the given Particle.
Constructs a Node for the given Particle containing the Position.
This sets the appropriate pointers for the next and previous Nodes in the Queue, and for the next and prevoius Nodes related to the given Particle.
- Parameters
-
Node * Node::getNextForParticle |
( |
| ) |
|
Node * Node::getPrevious |
( |
| ) |
|
Node * Node::getPreviousForParticle |
( |
| ) |
|
void Node::setNext |
( |
Node * |
n | ) |
|
Sets this Node's next pointer to the given Node.
- Parameters
-
n | the node we are setting to be next after this Node. |
void Node::setNextForParticle |
( |
Node * |
n | ) |
|
void Node::setPrevious |
( |
Node * |
n | ) |
|
Sets this Node's prevoius pointer to the given Node.
- Parameters
-
n | the Node we are setting to be before this Node. |
void Node::setPreviousForParticle |
( |
Node * |
n | ) |
|
The documentation for this class was generated from the following files: