From: <dhu...@us...> - 2006-11-29 14:30:27
|
Revision: 21 http://svn.sourceforge.net/qcell/?rev=21&view=rev Author: dhubleizh Date: 2006-11-29 06:30:22 -0800 (Wed, 29 Nov 2006) Log Message: ----------- - typos (pluar + int) - set dimensions function (needed by my parsing) Modified Paths: -------------- trunk/qcell/baseheaders/Neighbourhood.h trunk/qcell/basesources/Neighbourhood.cpp Modified: trunk/qcell/baseheaders/Neighbourhood.h =================================================================== --- trunk/qcell/baseheaders/Neighbourhood.h 2006-11-29 13:05:00 UTC (rev 20) +++ trunk/qcell/baseheaders/Neighbourhood.h 2006-11-29 14:30:22 UTC (rev 21) @@ -18,7 +18,7 @@ class Neighbourhood { private: - int dimension; + int dimensions; QVector<NContainer> neighbourVector; protected: @@ -37,14 +37,15 @@ void setNeighbourAt(int index, int x, int y, int z, int t); void clearNeighbourhood(void); - int getDimension(void); + int getDimensions(void); + void setDimensions(int dimensions); bool fromXmlString(QString *xmlString); bool fromDomElement(QDomElement *xmlElement); QString toXmlString(); int getNeighbourNumber(void); bool getBoolValueOf(int index); - int getInValueOf(int index); + int getIntValueOf(int index); double getDoubleValueOf(int index); }; Modified: trunk/qcell/basesources/Neighbourhood.cpp =================================================================== --- trunk/qcell/basesources/Neighbourhood.cpp 2006-11-29 13:05:00 UTC (rev 20) +++ trunk/qcell/basesources/Neighbourhood.cpp 2006-11-29 14:30:22 UTC (rev 21) @@ -92,11 +92,16 @@ neighbourVector.clear(); } -int Neighbourhood::getDimension(void) +int Neighbourhood::getDimensions(void) { - return dimension; + return dimensions; } +void Neighbourhood::setDimensions(int dimensions) +{ + this.dimensions = dimensions; +} + bool Neighbourhood::fromXmlString(QString *xmlString) { QDomDocument doc; @@ -217,7 +222,7 @@ return neighbourVector[index].bValue; } -int Neighbourhood::getInValueOf(int index) +int Neighbourhood::getIntValueOf(int index) { return neighbourVector[index].iValue; } @@ -225,4 +230,4 @@ double Neighbourhood::getDoubleValueOf(int index) { return neighbourVector[index].dValue; -} \ No newline at end of file +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |