|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef YARP_PROFILER_GRAP_H
10 #define YARP_PROFILER_GRAP_H
36 typedef std::vector<yarp::profiler::graph::Edge>
edge_set;
40 typedef std::vector<yarp::profiler::graph::Vertex*>
pvertex_set;
88 size_t degree()
const {
return ins.size() + outs.size(); }
134 size_t order() {
return mVertices.size(); }
157 graphicItem =
nullptr;
191 property.put(
"name", name);
205 property.put(
"hostname", hostname);
206 property.put(
"pid", pid);
221 property.put(
"hostname", hostname);
222 property.put(
"os", os);
234 #endif // YARP_PROFILER_GRAP_H
const pvertex_iterator find(const Vertex &v1)
yarp::os::Property property
pvertex_set::const_iterator pvertex_const_iterator
bool operator==(const yarp::profiler::graph::Vertex &v1) const override
pvertex_iterator insert(const Vertex &vertex)
const yarp::profiler::graph::Vertex & first() const
bool setOwner(yarp::profiler::graph::Vertex *_owner)
PortVertex(const std::string name)
const pvertex_set & vertices()
GraphicVertex(const yarp::os::Property &prop)
graph_subset::const_iterator graph_subset_const_iterator
const edge_set & inEdges() const
virtual bool operator<(const Vertex &v1) const
The yarp::profiler::graph::Vertex class.
virtual bool operator==(const yarp::profiler::graph::Edge &edge) const
Value & find(const std::string &key) const override
Gets a value corresponding to a given keyword.
The yarp::profiler::graph::Edge class.
Vertex(const yarp::os::Property &prop)
yarp::profiler::graph::Vertex
yarp::profiler::graph::Vertex * getOwner()
yarp::os::Property property
Graph()
yarp::profiler::graph::Graph
Vertex(const yarp::profiler::graph::Vertex &vertex)
bool operator==(const yarp::profiler::graph::Vertex &v1) const override
OwnedVertex(const yarp::os::Property &prop)
ProcessVertex(int pid, const std::string hostname)
virtual std::string asString() const
Get string value.
graph_subset::iterator graph_subset_iterator
std::vector< yarp::profiler::graph::Vertex * > pvertex_set
const edge_set & outEdges() const
virtual std::int32_t asInt32() const
Get 32-bit integer value.
edge_set::const_iterator edge_const_iterator
virtual bool operator==(const yarp::profiler::graph::Vertex &v1) const =0
The main, catch-all namespace for YARP.
edge_set::iterator edge_iterator
The yarp::profiler::graph::Graph class.
bool operator==(const yarp::profiler::graph::Vertex &v1) const override
std::vector< pvertex_set > graph_subset
MachineVertex(std::string os, const std::string hostname)
static bool calcSCC(yarp::profiler::graph::Graph &graph, graph_subset &scc)
calcSCC
void remove(const Vertex &vertex)
std::vector< yarp::profiler::graph::Edge > edge_set
const yarp::profiler::graph::Vertex & second() const
void insertEdge(const Vertex &v1, const Vertex &v2, const yarp::os::Property &property="")
A class for storing options and configuration information.
void setGraphicItem(void *item)
pvertex_set::iterator pvertex_iterator
Edge(const yarp::profiler::graph::Vertex &firstV, const yarp::profiler::graph::Vertex &secondV, yarp::os::Property property="")
yarp::profiler::graph::Edge