Tulip  4.6.0
Better Visualization Through Research
tlp::TemplateAlgorithm< Property > Class Template Reference

#include <TemplateAlgorithm.h>

+ Inheritance diagram for tlp::TemplateAlgorithm< Property >:
+ Collaboration diagram for tlp::TemplateAlgorithm< Property >:

List of all members.

Public Member Functions

 TemplateAlgorithm (const tlp::PluginContext *context)

Public Attributes

Property * result

Detailed Description

template<class Property>
class tlp::TemplateAlgorithm< Property >

The TemplateAlgorithm class describes a plugin that can operate on a single graph's property.

Parameters:
PropertyThe property template arguments gives the type of the property the algorithm operates on.

A TemplateAlgorithm takes a graph as input (plus additional parameters defined via tlp::WithParameter) and outputs its results in a tlp::PropertyInterface subclass. The output property is defined as an output parameter named "result" and as a class member called result.

Warning:
Subclassing TemplateAlgorithm is not recommended since template specifications are available for every Tulip property types.
See also:
tlp::BooleanAlgorithm
tlp::StringAlgorithm
tlp::DoubleAlgorithm
tlp::IntegerAlgorithm
tlp::LayoutAlgorithm
tlp::SizeAlgorithm

Definition at line 63 of file TemplateAlgorithm.h.

 All Classes Files Functions Variables Enumerations Enumerator Properties