Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dynamic-graph
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Guilhem Saurel
dynamic-graph
Commits
199d741c
Commit
199d741c
authored
13 years ago
by
Florent Lamiraux
Browse files
Options
Downloads
Patches
Plain Diff
Provide const access to entity map in the pool.
parent
0bde3f81
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/dynamic-graph/pool.h
+3
-0
3 additions, 0 deletions
include/dynamic-graph/pool.h
src/dgraph/pool.cpp
+6
-0
6 additions, 0 deletions
src/dgraph/pool.cpp
with
9 additions
and
0 deletions
include/dynamic-graph/pool.h
+
3
−
0
View file @
199d741c
...
...
@@ -87,6 +87,9 @@ namespace dynamicgraph
*/
Entity
&
getEntity
(
const
std
::
string
&
name
);
/// Const access to entity map
const
Entities
&
getEntityMap
()
const
;
/*! \brief Test if the entity exists. */
bool
existEntity
(
const
std
::
string
&
name
);
/*! \brief Test if the entity exists. If it does, return a pointer on it. */
...
...
This diff is collapsed.
Click to expand it.
src/dgraph/pool.cpp
+
6
−
0
View file @
199d741c
...
...
@@ -131,6 +131,12 @@ getEntity( const std::string& name )
else
return
*
entPtr
->
second
;
}
const
PoolStorage
::
Entities
&
PoolStorage
::
getEntityMap
()
const
{
return
entityMap
;
}
bool
PoolStorage
::
existEntity
(
const
std
::
string
&
name
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment