|
From: <dhu...@us...> - 2007-01-05 16:05:34
|
Revision: 100
http://svn.sourceforge.net/qcell/?rev=100&view=rev
Author: dhubleizh
Date: 2007-01-05 08:05:33 -0800 (Fri, 05 Jan 2007)
Log Message:
-----------
- getNeighbours to save file
Modified Paths:
--------------
trunk/qcell/baseheaders/Neighbourhood.h
trunk/qcell/basesources/Neighbourhood.cpp
Modified: trunk/qcell/baseheaders/Neighbourhood.h
===================================================================
--- trunk/qcell/baseheaders/Neighbourhood.h 2007-01-05 16:04:44 UTC (rev 99)
+++ trunk/qcell/baseheaders/Neighbourhood.h 2007-01-05 16:05:33 UTC (rev 100)
@@ -51,6 +51,7 @@
bool fromDomElement(QDomElement *xmlElement);
QString toXmlString();
int getNeighbourNumber(void);
+ QVector<NContainer> getNeighbours();
bool getBoolValueOf(int index);
int getIntValueOf(int index);
double getDoubleValueOf(int index);
Modified: trunk/qcell/basesources/Neighbourhood.cpp
===================================================================
--- trunk/qcell/basesources/Neighbourhood.cpp 2007-01-05 16:04:44 UTC (rev 99)
+++ trunk/qcell/basesources/Neighbourhood.cpp 2007-01-05 16:05:33 UTC (rev 100)
@@ -261,6 +261,11 @@
return neighbourVector.size();
}
+QVector<NContainer> Neighbourhood::getNeighbours()
+{
+ return QVector<NContainer>(neighbourVector);
+}
+
bool Neighbourhood::getBoolValueOf(int index)
{
return neighbourVector[index].value.bValue;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|