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();
};
//=================================================================
BBTK_DESCRIPTION("Sets the value of the i-element ("+bbtk::TypeName<std::vector<T> >());
typedef std::vector<T>* 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<T>);
+ BBTK_TEMPLATE_OUTPUT(SetElementVector,PVec,"Pointer to Vector (the same as the input)",pTvector);
BBTK_END_DESCRIBE_TEMPLATE_BLACK_BOX(SetElementVector);
//=================================================================
{
(*( bbGetInputPVec() ))[ bbGetInputI() ] = bbGetInputValue();
}
- bbSetOutputVec( *( bbGetInputPVec() ) );
-// bbSignalOutputModification(std::string("Vec"));
+ bbSetOutputVec( *( bbGetInputPVec() ) );
+ bbSetOutputPVec( bbGetInputPVec() );
+// bbSignalOutputModification(std::string("Vec"));
}
//=================================================================
template <class T>
void SetElementVector<T>::bbUserSetDefaultValues()
{
-
+ bbSetInputI(0);
}
//=================================================================
//=================================================================