Last change
on this file since 2546 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:eol-style set to
native
-
Property svn:executable set to
*
|
File size:
398 bytes
|
Line | |
---|
1 | #include "grid_local_view.hpp" |
---|
2 | #include "grid_elements.hpp" |
---|
3 | |
---|
4 | namespace xios |
---|
5 | { |
---|
6 | CGridLocalView::CGridLocalView(shared_ptr<CGridLocalElements> parent, CElementView::type type) : localMask_(parent->getLocalMask()) |
---|
7 | { |
---|
8 | size_ = 1 ; |
---|
9 | for(auto element : parent->getElements()) |
---|
10 | { |
---|
11 | views_.push_back(element->getView(type)) ; |
---|
12 | size_ *= element->getView(type)->getSize() ; |
---|
13 | } |
---|
14 | |
---|
15 | } |
---|
16 | |
---|
17 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.