Topology Class Reference

This class represent the possible form of the graph. More...

#include <Topology.h>

List of all members.

Public Member Functions

 Topology (int dim, int norm=0)
 constructor (dimension, Num::_dimensions_normalized)
 Topology (const Topology &t)
 The copy-constructor:.
Topologyoperator= (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)


Detailed Description

This class represent the possible form of the graph.

This class determines who is next to whom, the form in the net, the dimension of the grid, and the normalization of the dimensions.


Member Function Documentation

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


The documentation for this class was generated from the following file:
Generated on Thu Aug 17 00:04:37 2006 for Cagecpp by  doxygen 1.4.7