function.h
Go to the documentation of this file.
1 #ifndef DNAI_MODELS_GUI_DATA_FUNCTION_H
2 #define DNAI_MODELS_GUI_DATA_FUNCTION_H
3 
4 #include "entity.h"
5 #include "instruction.h"
9 
10 namespace dnai
11 {
12  namespace models
13  {
14  namespace gui
15  {
16  namespace data
17  {
18  struct Function : Entity
19  {
20  QList<models::Entity*> inputs;
21  QList<models::Entity*> outputs;
22  QList<models::gui::Instruction*> instructions;
23  QList<declarable::Variable*> variables;
24  QList<models::gui::IoLink *> iolinks;
25  QList<models::gui::FlowLink *> flowlinks;
26 
27 
28  Function& operator=(const Function& other) = default;
29 
30  bool operator!=(const Function& other) const
31  {
32  return !(*this == other);
33  }
34 
35  bool operator==(const Function& other) const
36  {
37  return (instructions == other.instructions && variables == other.variables);
38  }
39  };
40  }
41  }
42  }
43 }
44 
45 #endif //DNAI_MODELS_GUI_DATA_FUNCTION_H
Definition: entity.h:15
QList< models::Entity * > outputs
Definition: function.h:21
QList< models::gui::FlowLink * > flowlinks
Definition: function.h:25
QList< declarable::Variable * > variables
Definition: function.h:23
bool operator!=(const Function &other) const
Definition: function.h:30
Function & operator=(const Function &other)=default
Definition: function.h:18
Definition: api.h:13
bool operator==(const Function &other) const
Definition: function.h:35
QList< models::gui::Instruction * > instructions
Definition: function.h:22
QList< models::gui::IoLink * > iolinks
Definition: function.h:24
QList< models::Entity * > inputs
Definition: function.h:20