17 #ifndef ABSTRACT_PLUGIN_H    18 #define ABSTRACT_PLUGIN_H    22 #include "attributes.h"    73     inline const QString& 
attrName(
int attrId) 
const;
    79     inline const Value& 
attr(
int attrId) 
const;
    94     inline bool attrExists(
const char* name) 
const;
    96     inline bool attrExists(
const QString& name) 
const;
   125 { 
return m_attrs->
name(attrId); }
   128 { 
return m_attrs->
value(attrId);  }
   131 { 
return m_attrs->
value(name, defaultValue); }
   140 #endif // ABSTRACT_PLUGIN_H A class for variant data types (tagged union). 
Definition: value.h:56
~AbstractPlugin()=default
destructor 
bool contains(const QString &name) const
Checks if the container contains name. 
Definition: attributes.h:187
const QString & name(int id) const
Gets the name of the attribute at id. 
Definition: attributes.h:207
PRG * rand() const
prg() alias 
Definition: abstractplugin.h:118
bool attrExists(const char *name) const
Checks if the plugin's attribute name exists. 
Definition: abstractplugin.h:133
const Attributes * attrs() const
Gets the plugin's attributes. 
Definition: abstractplugin.h:121
const Value & value(int id) const
Gets the value of the attribute at id. 
Definition: attributes.h:213
const Value & attr(int attrId) const
Gets the attribute's value for attrId. 
Definition: abstractplugin.h:127
PRG * prg() const
pseudo-random generator pointer. 
Pseudo-random number generator. 
Definition: prg.h:29
Base class for plugins. 
Definition: abstractplugin.h:34
const QString & attrName(int attrId) const
Gets the attribute's name for attrId. 
Definition: abstractplugin.h:124
Definition: abstractgraph.h:29
A container of labeled values. 
Definition: attributes.h:39
Abstract base class for graph plugins. 
Definition: abstractgraph.h:54
virtual bool init()
Initializes the plugin. 
AbstractPlugin()=default
constructor