X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fstd%2Fsrc%2FbbstdSetElementVector.h;h=d348ddfd6700c17281b653b599654d6443f5b7e3;hb=2129cd54808003c1ff7a3da8d714e02cc3ef1045;hp=5f3286e48b228864b03864c8880716bb43deefdd;hpb=789ecd0eb75c3657333605b45faf47c5c37a29c6;p=bbtk.git diff --git a/packages/std/src/bbstdSetElementVector.h b/packages/std/src/bbstdSetElementVector.h index 5f3286e..d348ddf 100644 --- a/packages/std/src/bbstdSetElementVector.h +++ b/packages/std/src/bbstdSetElementVector.h @@ -52,7 +52,8 @@ namespace bbstd BBTK_DECLARE_INPUT(I,int); BBTK_DECLARE_INPUT(Value,T); BBTK_DECLARE_OUTPUT(Vec,std::vector); - BBTK_PROCESS(DoIt); + BBTK_DECLARE_OUTPUT(PVec,std::vector*); + BBTK_PROCESS(DoIt); void DoIt(); }; //================================================================= @@ -66,9 +67,10 @@ namespace bbstd BBTK_DESCRIPTION("Sets the value of the i-element ("+bbtk::TypeName >()); typedef std::vector* pTvector; BBTK_TEMPLATE_INPUT(SetElementVector, PVec,"Pointer to Vector",pTvector); - BBTK_TEMPLATE_INPUT(SetElementVector, I, "id-element",int); + 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); + 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")); } //================================================================= @@ -89,7 +92,7 @@ namespace bbstd template void SetElementVector::bbUserSetDefaultValues() { - + bbSetInputI(0); } //================================================================= //=================================================================