[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Wed May 28 22:27:37 CEST 2003


CVS commit by staikos: 

add the realloced methods


  M +9 -0      kstdataobject.cpp   1.5
  M +4 -0      kstdataobject.h   1.6
  M +7 -0      kstvector.cpp   1.14
  M +4 -0      kstvector.h   1.15


--- kdeextragear-2/kst/kst/kstdataobject.cpp  #1.4:1.5
@@ -4,4 +4,5 @@
     begin                : May 20, 2003
     copyright            : (C) 2003 by C. Barth Netterfield
+                           (C) 2003 The University of Toronto
     email                :
  ***************************************************************************/
@@ -22,4 +23,12 @@ KstDataObject::KstDataObject() : KstObje
 
 KstDataObject::~KstDataObject() {
+}
+
+double *KstDataObject::vectorRealloced(KSharedPtr<KstVector> v, double *memptr, int newSize) const {
+  if (v.data() == 0L) {
+    return 0L;
+  }
+
+  return v->realloced(memptr, newSize);
 }
 

--- kdeextragear-2/kst/kst/kstdataobject.h  #1.5:1.6
@@ -4,4 +4,5 @@
     begin                : May 20, 2003
     copyright            : (C) 2003 by C. Barth Netterfield
+                           (C) 2003 The University of Toronto
     email                :
  ***************************************************************************/
@@ -46,4 +47,7 @@ public:
 
 protected:
+
+  double *vectorRealloced(KSharedPtr<KstVector> v, double *memptr, int newSize) const;
+
   KstVectorList _inputVectors;
   KstVectorList _outputVectors;

--- kdeextragear-2/kst/kst/kstvector.cpp  #1.13:1.14
@@ -169,2 +169,9 @@ void KstVector::setScalarList(KstScalarL
   ScalarList = s_list;
 }
+
+double* KstVector::realloced(double *memptr, int newSize) {
+  Q_UNUSED(memptr);
+  Q_UNUSED(newSize);
+  return 0L;
+}
+

--- kdeextragear-2/kst/kst/kstvector.h  #1.14:1.15
@@ -147,4 +147,8 @@ protected: // Protected attributes
   static KstScalarList *ScalarList;
 
+protected:
+  friend class KstDataObject;
+  virtual double* realloced(double *memptr, int newSize);
+
 private:
   void deleteScalars();




More information about the Kst mailing list