Skip to content
Snippets Groups Projects
Commit 199d741c authored by Florent Lamiraux's avatar Florent Lamiraux
Browse files

Provide const access to entity map in the pool.

parent 0bde3f81
No related branches found
No related tags found
No related merge requests found
......@@ -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. */
......
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment