source: XIOS/dev/dev_ym/XIOS_COUPLING/src/distribution/grid_local_view.hpp @ 2338

Last change on this file since 2338 was 2267, checked in by ymipsl, 3 years ago

tracking memory leak
Elements, views, and connectors are now managed with shared pointer.
YM

  • Property svn:executable set to *
File size: 633 bytes
Line 
1#ifndef __GRID_LOCAL_VIEW_HPP__
2#define __GRID_LOCAL_VIEW_HPP__
3
4#include "local_view.hpp"
5#include "element.hpp"
6
7namespace xios
8{
9  class CGridLocalElements;
10
11  class CGridLocalView
12  {
13    private:
14      std::vector<shared_ptr<CLocalView>> views_ ;
15      std::vector<bool>& localMask_ ;
16      int size_ ;
17   
18    public:
19      CGridLocalView(shared_ptr<CGridLocalElements> parent, CElementView::type type) ;
20      std::vector<shared_ptr<CLocalView>>& getViews(void) {return views_ ;}
21      shared_ptr<CLocalView> getView(int i) {return views_[i] ;}
22      int getSize() { return size_ ;}
23  } ;
24}
25
26
27#endif
Note: See TracBrowser for help on using the repository browser.