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
|
Rev | Line | |
---|
[1918] | 1 | #ifndef __GRID_LOCAL_VIEW_HPP__ |
---|
| 2 | #define __GRID_LOCAL_VIEW_HPP__ |
---|
| 3 | |
---|
| 4 | #include "local_view.hpp" |
---|
| 5 | #include "element.hpp" |
---|
| 6 | |
---|
| 7 | namespace xios |
---|
| 8 | { |
---|
| 9 | class CGridLocalElements; |
---|
| 10 | |
---|
| 11 | class CGridLocalView |
---|
| 12 | { |
---|
| 13 | private: |
---|
[2267] | 14 | std::vector<shared_ptr<CLocalView>> views_ ; |
---|
[1918] | 15 | std::vector<bool>& localMask_ ; |
---|
[1930] | 16 | int size_ ; |
---|
[1918] | 17 | |
---|
| 18 | public: |
---|
[2267] | 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] ;} |
---|
[1930] | 22 | int getSize() { return size_ ;} |
---|
[1918] | 23 | } ; |
---|
| 24 | } |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.