]> Creatis software - bbtk.git/blobdiff - packages/std/src/bbstdSetElementVector.h
#3485 New box AddStringToVector
[bbtk.git] / packages / std / src / bbstdSetElementVector.h
index 48c215c4d9519288cff59bbed6a90cd96f44177b..d348ddfd6700c17281b653b599654d6443f5b7e3 100644 (file)
@@ -52,7 +52,8 @@ namespace bbstd
     BBTK_DECLARE_INPUT(I,int);
     BBTK_DECLARE_INPUT(Value,T);
     BBTK_DECLARE_OUTPUT(Vec,std::vector<T>);
-   BBTK_PROCESS(DoIt);
+    BBTK_DECLARE_OUTPUT(PVec,std::vector<T>*);
+    BBTK_PROCESS(DoIt);
     void DoIt();
   };
   //=================================================================
@@ -69,6 +70,7 @@ namespace bbstd
   BBTK_TEMPLATE_INPUT(SetElementVector, I, "id-element (default 0)",int);  
   BBTK_TEMPLATE_INPUT(SetElementVector, Value, "Input Value",T);  
   BBTK_TEMPLATE_OUTPUT(SetElementVector,Vec,"Output Vector",std::vector<T>);
+  BBTK_TEMPLATE_OUTPUT(SetElementVector,PVec,"Pointer to Vector (the same as the input)",pTvector);
   BBTK_END_DESCRIBE_TEMPLATE_BLACK_BOX(SetElementVector);
   //=================================================================
 
@@ -80,8 +82,9 @@ namespace bbstd
        {
                (*( bbGetInputPVec() ))[ bbGetInputI() ] = bbGetInputValue();
        }
-       bbSetOutputVec( *( bbGetInputPVec() ) );
-//     bbSignalOutputModification(std::string("Vec")); 
+    bbSetOutputVec( *( bbGetInputPVec() ) );
+    bbSetOutputPVec( bbGetInputPVec() );
+//     bbSignalOutputModification(std::string("Vec"));
   }
   //=================================================================