|
Tulip
5.6.0
Large graphs analysis and drawing
|
20 #ifndef TULIP_STRING_H
21 #define TULIP_STRING_H
23 #include <tulip/PropertyTypes.h>
24 #include <tulip/AbstractProperty.h>
28 class PropertyContext;
30 typedef AbstractProperty<tlp::StringType, tlp::StringType> AbstractStringProperty;
42 static const std::string propertyTypename;
44 return propertyTypename;
46 DEFINE_GET_CPP_CLASS_NAME;
54 int compare(
const node n1,
const node n2)
const override;
55 int compare(
const edge e1,
const edge e2)
const override;
63 :
public AbstractVectorProperty<tlp::StringVectorType, tlp::StringType> {
66 : AbstractVectorProperty<StringVectorType, tlp::StringType>(g, n) {}
70 static const std::string propertyTypename;
72 return propertyTypename;
74 DEFINE_GET_CPP_CLASS_NAME;
unsigned int edgeValueSize() const override
Returns the size in bytes of an edge's value.
unsigned int nodeValueSize() const override
Returns the size in bytes of a node's value.
A graph property that maps a std::string value to graph elements.
unsigned int edgeValueSize() const override
Returns the size in bytes of an edge's value.
A graph property that maps a std::vector<std::string> value to graph elements.
unsigned int nodeValueSize() const override
Returns the size in bytes of a node's value.
PropertyInterface describes the interface of a graph property.
This class extends upon PropertyInterface, and adds type-safe methods to get and set the node and edg...
const std::string & getTypename() const override
Gets a string describing the type of the property value (e.g. "graph", "double", "layout",...
The edge struct represents an edge in a Graph object.
The node struct represents a node in a Graph object.
const std::string & getTypename() const override
Gets a string describing the type of the property value (e.g. "graph", "double", "layout",...