#include <Topology.h>
Public Member Functions | |
Topology (int dim, int norm=0) | |
constructor (dimension, Num::_dimensions_normalized) | |
Topology (const Topology &t) | |
The copy-constructor:. | |
Topology & | operator= (const Topology &t) |
Overwrite the = operator to avoid problems when you forget initialize whit the constructor. | |
~Topology () | |
the destructor | |
size_t | getDimensionality () |
return the dimension of the topology | |
int | getDimNormalized () |
return the number of "dimensions" with no bounds | |
int | getDimensionSize (int dim) |
return the specific size of a dimension | |
void | setDimensionSize (int dim, int dsize) |
change the dimension size | |
bool | getDimensionNormalized (int dim) |
return if a specific dimension has no bounds | |
void | setDimensionNormalized (int dim) |
change the dimension normalization | |
bool | isOutOfBounds (std::vector< int > vect) |
return if a coordinate is out of bounds | |
std::vector< int > | getPos (std::vector< int > vect) |
This class determines who is next to whom, the form in the net, the dimension of the grid, and the normalization of the dimensions.
std::vector<int> Topology::getPos | ( | std::vector< int > | vect | ) | [inline] |
transform all the coordinates in the new ones in base of the topology characteristics is a must!!! to check if they are out of bounds first! with the isOutOfBound method