Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jonas Schmitt
waLBerla
Commits
9f82af91
Commit
9f82af91
authored
Apr 28, 2017
by
Felix Winterhalter
Browse files
Change from .at to .find and NULL
parent
57476454
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/domain_decomposition/BlockStorage.h
View file @
9f82af91
...
...
@@ -276,7 +276,13 @@ public:
*/
//*******************************************************************************************************************
virtual
const
IBlock
*
getBlock
(
const
IBlockID
&
id
)
const
=
0
;
inline
const
IBlock
*
getBlock
(
const
IBlockID
::
IDType
&
id
)
const
{
return
iBlocks_
.
at
(
id
);
}
inline
const
IBlock
*
getBlock
(
const
IBlockID
::
IDType
&
id
)
const
{
auto
it
=
iBlocks_
.
find
(
id
);
if
(
it
!=
iBlocks_
.
end
())
return
it
->
second
;
return
NULL
;
}
//*******************************************************************************************************************
/*!
...
...
@@ -291,7 +297,13 @@ public:
*/
//*******************************************************************************************************************
virtual
IBlock
*
getBlock
(
const
IBlockID
&
id
)
=
0
;
inline
IBlock
*
getBlock
(
const
IBlockID
::
IDType
&
id
)
{
return
iBlocks_
.
at
(
id
);
}
inline
IBlock
*
getBlock
(
const
IBlockID
::
IDType
&
id
)
{
auto
it
=
iBlocks_
.
find
(
id
);
if
(
it
!=
iBlocks_
.
end
())
return
it
->
second
;
return
NULL
;
}
//*******************************************************************************************************************
/*!
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment