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;
39 using AbstractStringProperty::operator=;
42 static const std::string propertyTypename;
44 return propertyTypename;
46 DEFINE_GET_CPP_CLASS_NAME;
63 :
public AbstractVectorProperty<tlp::StringVectorType, tlp::StringType> {
66 : AbstractVectorProperty<StringVectorType, tlp::StringType>(g, n) {}
67 using AbstractVectorProperty<tlp::StringVectorType, tlp::StringType>::operator=;
70 static const std::string propertyTypename;
72 return propertyTypename;
74 DEFINE_GET_CPP_CLASS_NAME;
This class extends upon PropertyInterface, and adds type-safe methods to get and set the node and edg...
PropertyInterface describes the interface of a graph property.
A graph property that maps a std::string value to graph elements.
PropertyInterface * clonePrototype(Graph *, const std::string &) const override
Creates a property of the same type (e.g. tlp::DoubleProperty) in the graph. The new property will no...
unsigned int edgeValueSize() const override
Returns the size in bytes of an edge's value.
int compare(const edge e1, const edge e2) const override
Compares the value this property holds for the two given edges.
unsigned int nodeValueSize() const override
Returns the size in bytes of a node's value.
int compare(const node n1, const node n2) const override
Compares the value this property holds for the two given nodes.
const std::string & getTypename() const override
Gets a string describing the type of the property value (e.g. "graph", "double", "layout",...
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.
const std::string & getTypename() const override
Gets a string describing the type of the property value (e.g. "graph", "double", "layout",...
unsigned int edgeValueSize() const override
Returns the size in bytes of an edge's value.
PropertyInterface * clonePrototype(Graph *, const std::string &) const override
Creates a property of the same type (e.g. tlp::DoubleProperty) in the graph. The new property will no...
The edge struct represents an edge in a Graph object.
The node struct represents a node in a Graph object.