Tulip  5.4.0
Large graphs analysis and drawing
tlp::TemplateAlgorithm< Property > Class Template Reference

#include <TemplateAlgorithm.h>

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

Public Member Functions

 TemplateAlgorithm (const tlp::PluginContext *context)
 
- Public Member Functions inherited from tlp::PropertyAlgorithm
 PropertyAlgorithm (const tlp::PluginContext *context)
 
std::string category () const override
 
- Public Member Functions inherited from tlp::Algorithm
 Algorithm (const PluginContext *context)
 
virtual bool check (std::string &)
 
std::string icon () const override
 
virtual bool run ()=0
 
- Public Member Functions inherited from tlp::Plugin
virtual std::string author () const =0
 
virtual std::string date () const =0
 
void declareDeprecatedName (const std::string &oldName)
 
std::string deprecatedName ()
 
virtual std::string group () const =0
 
virtual int id () const
 
virtual std::string info () const =0
 
virtual std::string major () const
 
virtual std::string minor () const
 
virtual std::string name () const =0
 
virtual std::string programmingLanguage () const
 
virtual std::string release () const =0
 
virtual std::string tulipMajor () const
 
virtual std::string tulipMinor () const
 
virtual std::string tulipRelease () const =0
 

Public Attributes

Property * result
 
- Public Attributes inherited from tlp::Algorithm
DataSetdataSet
 
Graphgraph
 
PluginProgresspluginProgress
 

Additional Inherited Members

- Protected Attributes inherited from tlp::Plugin
std::string oldName
 

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 68 of file TemplateAlgorithm.h.