[cig-commits] r9286 - cs/benchmark/cigma/trunk/src

luis at geodynamics.org luis at geodynamics.org
Wed Feb 13 01:51:03 PST 2008


Author: luis
Date: 2008-02-13 01:51:02 -0800 (Wed, 13 Feb 2008)
New Revision: 9286

Modified:
   cs/benchmark/cigma/trunk/src/Points.cpp
   cs/benchmark/cigma/trunk/src/Points.h
Log:
Added locator to Points class

Modified: cs/benchmark/cigma/trunk/src/Points.cpp
===================================================================
--- cs/benchmark/cigma/trunk/src/Points.cpp	2008-02-13 09:51:01 UTC (rev 9285)
+++ cs/benchmark/cigma/trunk/src/Points.cpp	2008-02-13 09:51:02 UTC (rev 9286)
@@ -23,4 +23,11 @@
     this->dim = dim;
 }
 
+void cigma::Points::set_locator(Locator *locator)
+{
+    this->locator = locator;
+    locator->initialize(this);
+}
+
+
 // ---------------------------------------------------------------------------

Modified: cs/benchmark/cigma/trunk/src/Points.h
===================================================================
--- cs/benchmark/cigma/trunk/src/Points.h	2008-02-13 09:51:01 UTC (rev 9285)
+++ cs/benchmark/cigma/trunk/src/Points.h	2008-02-13 09:51:02 UTC (rev 9286)
@@ -2,6 +2,7 @@
 #define __POINTS_H__
 
 #include <cassert>
+#include "Locator.h"
 
 namespace cigma
 {
@@ -21,6 +22,7 @@
 
 public:
     void set_data(double *data, int num, int dim);
+    void set_locator(Locator *locator);
 
 public:
     double operator()(int i, int j);
@@ -35,6 +37,9 @@
     int num;
     int dim;
     double *data;
+
+public:
+    Locator *locator;
 };
 
 // ---------------------------------------------------------------------------



More information about the cig-commits mailing list