Tulip  5.7.4
Large graphs analysis and drawing
tlp::StringVectorProperty Class Reference

#include <StringProperty.h>

Inherits tlp::AbstractVectorProperty< vectType, eltType, propType >.

Public Member Functions

 StringVectorProperty (Graph *g, const std::string &n="")
 
PropertyInterfaceclonePrototype (Graph *, const std::string &) const override
 
unsigned int edgeValueSize () const override
 
const std::string & getTypename () const override
 
unsigned int nodeValueSize () const override
 

Public Attributes

 DEFINE_GET_CPP_CLASS_NAME
 

Static Public Attributes

static const std::string propertyTypename
 

Detailed Description

A graph property that maps a std::vector<std::string> value to graph elements.

Definition at line 62 of file StringProperty.h.

Member Function Documentation

◆ clonePrototype()

PropertyInterface* tlp::StringVectorProperty::clonePrototype ( Graph graph,
const std::string &  name 
) const
overridevirtual

Creates a property of the same type (e.g. tlp::DoubleProperty) in the graph. The new property will not contain a copy of this property's values.

Parameters
graphThe Graph in which to create the new property.
nameThe name of the new property.
Returns
The newly created property.

Implements tlp::PropertyInterface.

◆ edgeValueSize()

unsigned int tlp::StringVectorProperty::edgeValueSize ( ) const
inlineoverridevirtual

Returns the size in bytes of an edge's value.

Returns
the size of a node's value (0 means the size is not fixed)

Implements tlp::PropertyInterface.

Definition at line 79 of file StringProperty.h.

◆ getTypename()

const std::string& tlp::StringVectorProperty::getTypename ( ) const
inlineoverridevirtual

Gets a string describing the type of the property value (e.g. "graph", "double", "layout", "string", "integer", "color", "size").

Returns
The name of this property's type.

Implements tlp::PropertyInterface.

Definition at line 71 of file StringProperty.h.

◆ nodeValueSize()

unsigned int tlp::StringVectorProperty::nodeValueSize ( ) const
inlineoverridevirtual

Returns the size in bytes of a node's value.

Returns
the size of a node's value (0 means the size is not fixed)

Implements tlp::PropertyInterface.

Definition at line 76 of file StringProperty.h.