6#ifndef YARP_PROFILER_GRAP_H
7#define YARP_PROFILER_GRAP_H
29typedef std::vector<yarp::profiler::graph::Edge>
edge_set;
33typedef std::vector<yarp::profiler::graph::Vertex*>
pvertex_set;
81 size_t degree()
const {
return ins.size() + outs.size(); }
127 size_t order() {
return mVertices.size(); }
150 graphicItem =
nullptr;
184 property.put(
"name", name);
198 property.put(
"hostname", hostname);
199 property.put(
"pid", pid);
214 property.put(
"hostname", hostname);
215 property.put(
"os", os);
graph_subset::const_iterator graph_subset_const_iterator
std::vector< pvertex_set > graph_subset
edge_set::iterator edge_iterator
edge_set::const_iterator edge_const_iterator
pvertex_set::const_iterator pvertex_const_iterator
graph_subset::iterator graph_subset_iterator
std::vector< yarp::profiler::graph::Vertex * > pvertex_set
pvertex_set::iterator pvertex_iterator
std::vector< yarp::profiler::graph::Edge > edge_set
A class for storing options and configuration information.
Value & find(const std::string &key) const override
Gets a value corresponding to a given keyword.
virtual std::int32_t asInt32() const
Get 32-bit integer value.
virtual std::string asString() const
Get string value.
static bool calcSCC(yarp::profiler::graph::Graph &graph, graph_subset &scc)
calcSCC
The yarp::profiler::graph::Edge class.
virtual bool operator==(const yarp::profiler::graph::Edge &edge) const
const yarp::profiler::graph::Vertex & second() const
yarp::os::Property property
const yarp::profiler::graph::Vertex & first() const
The yarp::profiler::graph::Graph class.
void insertEdge(const Vertex &v1, const Vertex &v2, const yarp::os::Property &property="")
const pvertex_set & vertices()
const pvertex_iterator find(const Vertex &v1)
void remove(const Vertex &vertex)
Graph()
yarp::profiler::graph::Graph
pvertex_iterator insert(const Vertex &vertex)
GraphicVertex(const yarp::os::Property &prop)
void setGraphicItem(void *item)
MachineVertex(std::string os, const std::string hostname)
bool operator==(const yarp::profiler::graph::Vertex &v1) const override
yarp::profiler::graph::Vertex * getOwner()
OwnedVertex(const yarp::os::Property &prop)
bool setOwner(yarp::profiler::graph::Vertex *_owner)
PortVertex(const std::string name)
bool operator==(const yarp::profiler::graph::Vertex &v1) const override
bool operator==(const yarp::profiler::graph::Vertex &v1) const override
ProcessVertex(int pid, const std::string hostname)
The yarp::profiler::graph::Vertex class.
yarp::os::Property property
virtual bool operator<(const Vertex &v1) const
const edge_set & outEdges() const
virtual bool operator==(const yarp::profiler::graph::Vertex &v1) const =0
Vertex(const yarp::profiler::graph::Vertex &vertex)
const edge_set & inEdges() const
The main, catch-all namespace for YARP.