Snoke
Change Class Reference

A Support Change class. More...

#include <change.h>

Collaboration diagram for Change:

Public Member Functions

void initQueue ()
 Initializes change array, by resetting it. More...
 
bool addPoint (Point p)
 adds Point to addition array if it fits the criteria More...
 
bool rmPoint (Point p)
 adds Point to removal array if it fits the criteria More...
 
bool inAddQueue (Point p)
 Check if Points is in the addition queue. More...
 
bool inRmQueue (Point p)
 Check if the Point is in the remove queue. More...
 
void getAddQueue (std::deque< Point > *cpChange)
 method to get a copy of addition array More...
 
void getRmQueue (std::deque< Point > *cpChange)
 method to get a copy of removal array More...
 

Private Attributes

std::deque< Pointqueue [2]
 

Detailed Description

A Support Change class.

Parameters
change- 2-dim array containing additions and removals for the labyrinth

Definition at line 21 of file change.h.

Member Function Documentation

bool Change::addPoint ( Point  p)

adds Point to addition array if it fits the criteria

Parameters
p- Point to add
Returns
- mark of succesful addition

Definition at line 28 of file change.cpp.

Here is the caller graph for this function:

void Change::getAddQueue ( std::deque< Point > *  cpChange)

method to get a copy of addition array

Parameters
cpChange- array, where we copy

Definition at line 89 of file change.cpp.

Here is the caller graph for this function:

void Change::getRmQueue ( std::deque< Point > *  cpChange)

method to get a copy of removal array

Parameters
cpChange- array, where we copy

Definition at line 98 of file change.cpp.

Here is the caller graph for this function:

bool Change::inAddQueue ( Point  p)

Check if Points is in the addition queue.

Parameters
p- point to check

Definition at line 57 of file change.cpp.

Here is the caller graph for this function:

void Change::initQueue ( )

Initializes change array, by resetting it.

Definition at line 17 of file change.cpp.

Here is the caller graph for this function:

bool Change::inRmQueue ( Point  p)

Check if the Point is in the remove queue.

Parameters
p- point to check

Definition at line 73 of file change.cpp.

Here is the caller graph for this function:

bool Change::rmPoint ( Point  p)

adds Point to removal array if it fits the criteria

Parameters
p- Point to add
Returns
- mark of succesful addition

Definition at line 43 of file change.cpp.

Here is the caller graph for this function:

Member Data Documentation

std::deque<Point> Change::queue[2]
private

Definition at line 24 of file change.h.


The documentation for this class was generated from the following files: