[Kst] Re: branches/work/kst/portto4-sharedpointer

Peter Kümmel syntheticpp at gmx.net
Tue Jan 4 13:13:39 CET 2011


For the records the patch.

Shared and raw pointers are so intermixed that using an external
reference count for the shared pointer would lead to a huge
change in the APIs when toSharedPtr() should be removed.

At least I've found the implementation for Object::toSharedPtr()
which maybe also helps with the current solution.


On 04.01.2011 13:05, Peter Kümmel wrote:
> SVN commit 1211532 by kuemmel:
> 
> external ref count with QSharedPointer
> 
>  M  +2 -2      cmake/src/datasources/CMakeLists.txt  
>  M  +4 -4      cmake/src/plugins/CMakeLists.txt  
>  M  +1 -1      src/datasources/ascii/asciiplugin.h  
>  M  +8 -6      src/libkst/dataplugin.h  
>  M  +0 -3      src/libkst/datasource.cpp  
>  M  +0 -1      src/libkst/datasource.h  
>  M  +12 -7     src/libkst/datasourcepluginmanager.cpp  
>  M  +15 -1     src/libkst/object.cpp  
>  M  +9 -1      src/libkst/object.h  
>  M  +3 -3      src/libkst/objectstore.cpp  
>  M  +11 -6     src/libkst/objectstore.h  
>  M  +7 -2      src/libkst/sharedptr.h  
>  M  +7 -7      src/libkstapp/commandlineparser.cpp  
>  M  +1 -1      src/libkstapp/commandlineparser.h  
>  M  +5 -5      src/libkstapp/curvedialog.cpp  
>  M  +1 -1      src/libkstapp/curvedialog.h  
>  M  +2 -2      src/libkstapp/datagui.cpp  
>  M  +8 -8      src/libkstapp/datamanager.cpp  
>  M  +3 -1      src/libkstapp/datasourcedialog.cpp  
>  M  +4 -4      src/libkstapp/datawizard.cpp  
>  M  +1 -1      src/libkstapp/equationdialog.cpp  
>  M  +1 -1      src/libkstapp/filterfitdialog.cpp  
>  M  +1 -1      src/libkstapp/histogramdialog.cpp  
>  M  +1 -1      src/libkstapp/histogramdialog.h  
>  M  +2 -2      src/libkstapp/markerstab.cpp  
>  M  +4 -4      src/libkstapp/matrixdialog.cpp  
>  M  +2 -2      src/libkstapp/plotitem.cpp  
>  M  +1 -1      src/libkstapp/plotrenderitem.cpp  
>  M  +1 -1      src/libkstapp/powerspectrumdialog.cpp  
>  M  +1 -1      src/libkstapp/powerspectrumdialog.h  
>  M  +5 -5      src/libkstapp/scalardialog.cpp  
>  M  +9 -9      src/libkstapp/scalarmodel.cpp  
>  M  +6 -6      src/libkstapp/sessionmodel.cpp  
>  M  +3 -3      src/libkstapp/stringdialog.cpp  
>  M  +2 -2      src/libkstapp/stringmodel.cpp  
>  M  +4 -4      src/libkstapp/vectordialog.cpp  
>  M  +1 -1      src/libkstapp/vectordialog.h  
>  M  +1 -1      src/libkstmath/basicplugin.cpp  
>  M  +1 -1      src/libkstmath/csd.cpp  
>  M  +1 -1      src/libkstmath/curve.cpp  
>  M  +16 -15    src/libkstmath/dataobject.cpp  
>  M  +3 -3      src/libkstmath/equation.cpp  
>  M  +1 -1      src/libkstmath/histogram.cpp  
>  M  +2 -2      src/libkstmath/image.cpp  
>  M  +3 -3      src/libkstmath/psd.cpp  
>  M  +1 -1      src/libkstmath/relation.h  
>  M  +2 -2      src/plugins/dataobject/bin/bin.cpp  
>  M  +1 -1      src/plugins/dataobject/chop/chop.cpp  
>  M  +4 -4      src/plugins/dataobject/crossspectrum/crossspectrum.cpp  
>  M  +2 -2      src/plugins/dataobject/differentiation/differentiation.cpp  
>  M  +5 -5      src/plugins/dataobject/effectivebandwidth/effectivebandwidth.cpp  
>  M  +4 -4      src/plugins/dataobject/genericfilter/genericfilter.cpp  
>  M  +2 -2      src/plugins/dataobject/linefit/linefit.cpp  
>  M  +2 -2      src/plugins/dataobject/lockin/lockin.cpp  
>  M  +4 -4      src/plugins/dataobject/phase/phase.cpp  
>  M  +2 -2      src/plugins/dataobject/shift/shift.cpp  
>  M  +1 -1      src/plugins/dataobject/statistics/statistics.cpp  
>  M  +5 -5      src/plugins/dataobject/syncbin/syncbin.cpp  
>  M  +2 -2      src/plugins/filters/cumulativesum/cumulativesum.cpp  
>  M  +1 -1      src/plugins/filters/cumulativesum/cumulativesum.h  
>  M  +3 -3      src/plugins/filters/despike/filterdespike.cpp  
>  M  +2 -2      src/plugins/filters/differentiation/differentiation.cpp  
>  M  +1 -1      src/widgets/curveselector.cpp  
>  M  +2 -2      src/widgets/matrixselector.cpp  
>  M  +5 -5      src/widgets/scalarselector.cpp  
>  M  +2 -2      src/widgets/stringselector.cpp  
>  M  +7 -3      src/widgets/vectorselector.cpp  
> 
> 
> http://websvn.kde.org/?view=rev&revision=1211532
> _______________________________________________
> Kst mailing list
> Kst at kde.org
> https://mail.kde.org/mailman/listinfo/kst
> 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: external_ref_count.patch
Url: http://mail.kde.org/pipermail/kst/attachments/20110104/e4221ff0/attachment-0001.bat 


More information about the Kst mailing list