|
graph_analysis
|
A vertex inherited to allow storing data of any type. More...
#include <Vertex.hpp>


Public Types | |
| typedef shared_ptr< Vertex > | Ptr |
| typedef shared_ptr< const Vertex > | ConstPtr |
| typedef std::vector< Ptr > | PtrList |
| typedef std::set< Ptr > | PtrSet |
Public Types inherited from graph_analysis::GraphElement | |
| typedef shared_ptr< GraphElement > | Ptr |
| typedef weak_ptr< GraphElement > | WeakPtr |
| typedef std::vector< Ptr > | PtrList |
Public Member Functions | |
| virtual | ~Vertex () |
| Vertex (const std::string &label=std::string()) | |
| Vertex::Ptr | clone () const |
| virtual std::string | getClassName () const |
| virtual std::string | toString () const |
| virtual std::string | toString (uint32_t indentation) const |
| Vertex::Ptr | getSharedPointerFromGraph (const shared_ptr< BaseGraph > &pGraph) const |
| Vertex::Ptr | getPtr () |
| Vertex::ConstPtr | getPtr () const |
| virtual void | registerAttributes (VertexTypeManager *) const |
Public Member Functions inherited from graph_analysis::GraphElement | |
| GraphElement (const std::string &label=std::string()) | |
| Default constructor. More... | |
| virtual | ~GraphElement () |
| virtual void | setLabel (const std::string &label) |
| virtual const std::string & | getLabel () const |
| bool | associated (GraphId graph) const |
| void | associate (GraphId graph, GraphElementId elementId) |
| void | disassociate (GraphId graph) |
| GraphElementId | getId (GraphId graph) const |
| GraphElementUuid | getUid () const |
| GraphElementUuid | getUuid () const |
| GraphIdList | getGraphAssociations () const |
| std::string | toPrefixedString (GraphId graph) const |
Protected Member Functions | |
| virtual Vertex * | getClone () const |
Protected Member Functions inherited from graph_analysis::GraphElement | |
| GraphElement::Ptr | getSharedFromThis () |
| void | disassociateFromAll () |
| void | setUuid (const GraphElementUuid &uuid) |
| void | setUuid (const std::string &uuid) |
Additional Inherited Members | |
Static Public Member Functions inherited from graph_analysis::GraphElement | |
| static GraphElement::Ptr | fromUuid (const GraphElementUuid &uuid) |
Protected Attributes inherited from graph_analysis::GraphElement | |
| GraphElementMap | mGraphElementMap |
| GraphElementUuid | mUuid |
| std::string | mLabel |
Static Protected Attributes inherited from graph_analysis::GraphElement | |
| static boost::uuids::random_generator | msUuidGenerator |
| static std::map< GraphElementUuid, function< GraphElement::Ptr()> > | msGraphElements |
A vertex inherited to allow storing data of any type.
For the purpose of storing data with a vertex, the storage type needs to inherit from this class
| typedef shared_ptr< const Vertex > graph_analysis::Vertex::ConstPtr |
| typedef shared_ptr< Vertex > graph_analysis::Vertex::Ptr |
| typedef std::vector< Ptr > graph_analysis::Vertex::PtrList |
| typedef std::set< Ptr > graph_analysis::Vertex::PtrSet |
|
inlinevirtual |
| graph_analysis::Vertex::Vertex | ( | const std::string & | label = std::string() | ) |
| Vertex::Ptr graph_analysis::Vertex::clone | ( | ) | const |
Clone this vertex – the returned vertex will have no graph association
|
inlinevirtual |
Get class name
Reimplemented from graph_analysis::GraphElement.
Reimplemented in graph_analysis::algorithms::MultiCommodityVertex, graph_analysis::NWeighted< T, Dim, Vertex >, graph_analysis::DirectedHyperEdge, graph_analysis::HyperEdge, and graph_analysis::NWeightedVertex< T, Dim >.
|
inlineprotectedvirtual |
Create a copy of this vertex using a explicit clone of the subclass of Vertex
return new MyVertex(*this);
Reimplemented in graph_analysis::NWeighted< T, Dim, Vertex >, graph_analysis::HyperEdge, graph_analysis::DirectedHyperEdge, and graph_analysis::NWeightedVertex< T, Dim >.
| Vertex::Ptr graph_analysis::Vertex::getPtr | ( | ) |
Get the shared pointer for this object – do not use on stack allocated objects
| Vertex::ConstPtr graph_analysis::Vertex::getPtr | ( | ) | const |
Get the shared pointer for this object – do not use on stack allocated objects
| Vertex::Ptr graph_analysis::Vertex::getSharedPointerFromGraph | ( | const shared_ptr< BaseGraph > & | pGraph | ) | const |
Deprecated function in order for child-classes to iterate the graph, a way to obtain the shared pointer actually respresenting this vertex on a particular graph is needed.
| pGraph | shared pointer to the graph where this vertex is contained |
|
inlinevirtual |
Hook to register attributes of this vertex, in order to properly perform serialization
If serialization is not needed, then registration is optional Otherwise each Vertex implementation has to implement this method, and add a static member
#include "VertexRegistration.hpp"
class DerivedVertex : Vertex
{
static const VertexRegistration<DerivedVertex> __attribute__((used)) msRegistration;
}
in the source file, e.g. DerivedVertex.cpp add
const VertexRegistration<DerivedVertex> DerivedVertex::msRegistration;
Reimplemented in graph_analysis::algorithms::MultiCommodityVertex.
|
virtual |
Convert element to string
Reimplemented from graph_analysis::GraphElement.
Reimplemented in graph_analysis::algorithms::MultiCommodityVertex, graph_analysis::NWeighted< T, Dim, Vertex >, graph_analysis::DirectedHyperEdge, and graph_analysis::HyperEdge.
|
virtual |
Convert element to string and apply a given indentation (in number of spaces)
Reimplemented from graph_analysis::GraphElement.
Reimplemented in graph_analysis::DirectedHyperEdge, and graph_analysis::HyperEdge.
1.8.13