src
dynamic_graph
pool-py.cc
Go to the documentation of this file.
1
// Copyright 2011, 2012, Florent Lamiraux, LAAS-CNRS.
2
3
#include <dynamic-graph/entity.h>
4
#include <dynamic-graph/pool.h>
5
6
#include <vector>
7
8
#include "
dynamic-graph/python/dynamic-graph-py.hh
"
9
10
namespace
dynamicgraph
{
11
namespace
python
{
12
13
namespace
pool {
14
15
void
writeGraph
(
const
char
* filename) {
16
PoolStorage::getInstance
()->
writeGraph
(filename);
17
}
18
19
const
std::map<std::string, Entity*>*
getEntityMap
() {
20
return
&
PoolStorage::getInstance
()->
getEntityMap
();
21
}
22
26
bp::list
getEntityList
() {
27
std::vector<std::string> entityNames;
28
bp::list
res
;
29
const
PoolStorage::Entities
& listOfEntities =
30
PoolStorage::getInstance
()->
getEntityMap
();
31
32
for
(
const
auto
& el : listOfEntities)
res
.append(el.second->getName());
33
return
res
;
34
}
35
36
}
// namespace pool
37
}
// namespace python
38
}
// namespace dynamicgraph
dynamicgraph
dynamicgraph::PoolStorage::writeGraph
void writeGraph(const std::string &aFileName)
dynamic-graph-py.hh
res
res
dynamicgraph::python::pool::getEntityMap
const std::map< std::string, Entity * > * getEntityMap()
Definition:
pool-py.cc:19
python
dynamicgraph::PoolStorage::getEntityMap
const Entities & getEntityMap() const
dynamicgraph::PoolStorage::Entities
std::map< std::string, Entity * > Entities
dynamicgraph::PoolStorage::getInstance
static PoolStorage * getInstance()
dynamicgraph::python::pool::getEntityList
bp::list getEntityList()
Get list of entities.
Definition:
pool-py.cc:26
dynamicgraph::python::pool::writeGraph
void writeGraph(const char *filename)
Definition:
pool-py.cc:15
dynamic-graph-python
Author(s): Nicolas Mansard, Olivier Stasse
autogenerated on Fri Oct 27 2023 02:16:36