]> AND Private Git Repository - blast.git/blobdiff - ConnectedInterface.cpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
changed sources to stimulis
[blast.git] / ConnectedInterface.cpp
index 017401a6409d6e56b1d9a0218f452b77424817b0..3724417ce32c5ef4cc1ef32f2e0a0ecb58515e42 100644 (file)
@@ -7,15 +7,17 @@
 ConnectedInterface::ConnectedInterface(AbstractBlock* _owner) : AbstractInterface(_owner) {\r
   connectedFrom = NULL;\r
   outputPattern = NULL;\r
 ConnectedInterface::ConnectedInterface(AbstractBlock* _owner) : AbstractInterface(_owner) {\r
   connectedFrom = NULL;\r
   outputPattern = NULL;\r
+  inputModifier = NULL;\r
       \r
 }\r
 \r
 ConnectedInterface::ConnectedInterface(AbstractBlock* _owner, const QString& _name, int _direction, int _purpose, const QString& _type, const QString& _width) : AbstractInterface(_owner, _name, _direction, _purpose, _type, _width) {\r
       \r
 }\r
 \r
 ConnectedInterface::ConnectedInterface(AbstractBlock* _owner, const QString& _name, int _direction, int _purpose, const QString& _type, const QString& _width) : AbstractInterface(_owner, _name, _direction, _purpose, _type, _width) {\r
-  connectedFrom = NULL;\r
+  connectedFrom = NULL;  \r
   outputPattern = NULL;\r
   outputPattern = NULL;\r
+  inputModifier = NULL;\r
 }\r
 \r
 }\r
 \r
-ConnectedInterface::~ConnectedInterface() {\r
+ConnectedInterface::~ConnectedInterface() {  \r
   if (outputPattern != NULL) delete outputPattern;\r
 }\r
 \r
   if (outputPattern != NULL) delete outputPattern;\r
 }\r
 \r
@@ -39,6 +41,7 @@ void ConnectedInterface::setOutputPattern(QList<char>* pattern) {
   if (outputPattern != NULL) delete outputPattern;\r
   outputPattern = pattern; \r
 }\r
   if (outputPattern != NULL) delete outputPattern;\r
   outputPattern = pattern; \r
 }\r
+\r
 void ConnectedInterface::connectTo(ConnectedInterface *iface) {\r
   \r
   connectedTo.append(iface);\r
 void ConnectedInterface::connectTo(ConnectedInterface *iface) {\r
   \r
   connectedTo.append(iface);\r
@@ -97,3 +100,8 @@ ConnectedInterface *ConnectedInterface::getConnectionFromParentGroup() {
   }\r
   return NULL;\r
 }\r
   }\r
   return NULL;\r
 }\r
+\r
+void ConnectedInterface::clearInputModifier() {\r
+  if (inputModifier != NULL) delete inputModifier;\r
+  inputModifier = NULL;\r
+}\r