source: XIOS/trunk/src/filter/concrete_algo.hpp @ 621

Last change on this file since 621 was 621, checked in by mhnguyen, 9 years ago

Implementing generic transformation algorithm (local commit)

+) Change a little bit to make sure everything work in order

Test
+) test_new_features passe with inverse

File size: 560 bytes
Line 
1#ifndef __XIOS_CONCRETE_ALGORITHM_HPP__
2#define __XIOS_CONCRETE_ALGORITHM_HPP__
3
4#include <map>
5#include <vector>
6
7namespace xios {
8
9class CConcreteAlgo
10{
11public:
12  CConcreteAlgo() : transformationMapping_() {}
13
14  virtual ~CConcreteAlgo() {}
15
16  virtual void computeIndexSourceMapping(const std::map<int, std::vector<int> >&) = 0;
17
18  const std::map<int, std::vector<int> >& getTransformationMapping() const { return transformationMapping_; }
19
20protected:
21  std::map<int, std::vector<int> > transformationMapping_;
22};
23
24}
25#endif // __XIOS_CONCRETE_ALGORITHM_HPP__
Note: See TracBrowser for help on using the repository browser.