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;
43 const std::string &getTypename()
const override {
44 return propertyTypename;
47 unsigned int nodeValueSize()
const override {
50 unsigned int edgeValueSize()
const override {
53 int compare(
const node n1,
const node n2)
const override;
54 int compare(
const edge e1,
const edge e2)
const override;
62 :
public AbstractVectorProperty<tlp::StringVectorType, tlp::StringType> {
65 : AbstractVectorProperty<StringVectorType, tlp::StringType>(g, n) {}
69 static const std::string propertyTypename;
70 const std::string &getTypename()
const override {
71 return propertyTypename;
74 unsigned int nodeValueSize()
const override {
77 unsigned int edgeValueSize()
const override {
PropertyInterface describes the interface of a graph property.
A graph property that maps a std::vector<std::string> value to graph elements.
The edge struct represents an edge in a Graph object.
The node struct represents a node in a Graph object.
A graph property that maps a std::string value to graph elements.