Last change
on this file since 2362 was
2019,
checked in by yushan, 4 years ago
|
Graph intermedia commit to a tmp branch
|
-
Property svn:executable set to
*
|
File size:
841 bytes
|
Line | |
---|
1 | #include "grid_elements.hpp" |
---|
2 | #include "grid_local_view.hpp" |
---|
3 | #include "grid_local_connector.hpp" |
---|
4 | |
---|
5 | namespace xios |
---|
6 | { |
---|
7 | |
---|
8 | CGridLocalView* CGridLocalElements::getView(CElementView::type type) |
---|
9 | { |
---|
10 | if (views_[type]==nullptr) views_[type] = new CGridLocalView(this, type) ; |
---|
11 | return views_[type] ; |
---|
12 | } |
---|
13 | |
---|
14 | CGridLocalConnector* CGridLocalElements::getConnector(CElementView::type srcType, CElementView::type dstType, bool withMask) |
---|
15 | { |
---|
16 | auto newPair = pair<CElementView::type,CElementView::type>(srcType,dstType); |
---|
17 | auto it = connectors_.find(newPair) ; |
---|
18 | if (it==connectors_.end()) |
---|
19 | { |
---|
20 | auto insertPair=pair<pair<CElementView::type,CElementView::type>, CGridLocalConnector*>(newPair,new CGridLocalConnector(this, srcType, dstType, withMask)) ; |
---|
21 | it=connectors_.insert(insertPair).first ; |
---|
22 | } |
---|
23 | return it->second ; |
---|
24 | } |
---|
25 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.