- Timestamp:
- 12/07/21 12:07:33 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation/grid_algorithm.hpp
r2145 r2270 19 19 class CGarbageCollector ; 20 20 21 class CGridAlgorithm 21 class CGridAlgorithm : public std::enable_shared_from_this<CGridAlgorithm> 22 22 { 23 23 public: 24 CGridAlgorithm( CGenericAlgorithmTransformation*algorithm) : algorithm_(algorithm) {} ;24 CGridAlgorithm(shared_ptr<CGenericAlgorithmTransformation> algorithm) : algorithm_(algorithm) {} ; 25 25 virtual ~CGridAlgorithm() {} ; 26 26 virtual void apply(const CArray<double,1>& dataIn, CArray<double,1>& dataOut) { abort(); } //=0 … … 31 31 32 32 protected: 33 CGenericAlgorithmTransformation*algorithm_=nullptr ;33 shared_ptr<CGenericAlgorithmTransformation> algorithm_=nullptr ; 34 34 }; 35 35
Note: See TracChangeset
for help on using the changeset viewer.