Ignore:
Timestamp:
12/07/21 12:07:33 (3 years ago)
Author:
ymipsl
Message:

Tracking memory leak :
Tranformations and algorithms are now managed with shared_ptr.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/filter/transform_filter.hpp

    r2143 r2270  
    1515    public: 
    1616 
    17       CTransformFilter(CGarbageCollector& gc, int slots, CGridAlgorithm* algo, bool detectMissingValues, double defaultValue) ; 
     17      CTransformFilter(CGarbageCollector& gc, int slots, shared_ptr<CGridAlgorithm> algo, bool detectMissingValues, double defaultValue) ; 
    1818 
    1919    protected: 
     
    2222      */ 
    2323      CDataPacketPtr virtual apply(std::vector<CDataPacketPtr> data) ; 
    24       void buildWorkflowGraph(std::vector<CDataPacketPtr> data, CDataPacketPtr packet, CGridAlgorithm* algorithm); 
     24      void buildWorkflowGraph(std::vector<CDataPacketPtr> data, CDataPacketPtr packet, shared_ptr<CGridAlgorithm> algorithm); 
    2525       
    2626//      void apply(const CArray<double, 1>& dataSrc, CArray<double,1>& dataDest); 
    2727      
    28       CGridAlgorithm* algorithm_ ; 
     28      shared_ptr<CGridAlgorithm> algorithm_ ; 
    2929      bool detectMissingValues_ ; 
    3030      bool defaultValue_ ; 
Note: See TracChangeset for help on using the changeset viewer.