X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fstd%2Fsrc%2FbbstdSetElementVector.h;h=d348ddfd6700c17281b653b599654d6443f5b7e3;hb=2129cd54808003c1ff7a3da8d714e02cc3ef1045;hp=be232b252047f420e52e572df78ac998414de2d3;hpb=19dda39fbfb4f8e1019c4f0dd37aa3afc8a3d1d6;p=bbtk.git diff --git a/packages/std/src/bbstdSetElementVector.h b/packages/std/src/bbstdSetElementVector.h index be232b2..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); } //================================================================= //=================================================================