#include <bbstdVectorToString.h>
Private Member Functions | |
BBTK_TEMPLATE_BLACK_BOX_INTERFACE (VectorToString, bbtk::AtomicBlackBox, T) | |
BBTK_DECLARE_INPUT (In, std::vector< T >) | |
BBTK_DECLARE_INPUT (Separator, std::string) | |
BBTK_DECLARE_OUTPUT (Out, std::string) | |
BBTK_PROCESS (DoIt) | |
void | DoIt () |
virtual void | bbUserConstructor () |
Definition at line 43 of file bbstdVectorToString.h.
bbstd::VectorToString< T >::BBTK_TEMPLATE_BLACK_BOX_INTERFACE | ( | VectorToString< T > | , | |
bbtk::AtomicBlackBox | , | |||
T | ||||
) | [private] |
bbstd::VectorToString< T >::BBTK_DECLARE_INPUT | ( | In | , | |
std::vector< T > | ||||
) | [private] |
bbstd::VectorToString< T >::BBTK_DECLARE_INPUT | ( | Separator | , | |
std::string | ||||
) | [private] |
bbstd::VectorToString< T >::BBTK_DECLARE_OUTPUT | ( | Out | , | |
std::string | ||||
) | [private] |
bbstd::VectorToString< T >::BBTK_PROCESS | ( | DoIt | ) | [private] |
void bbstd::VectorToString< T >::DoIt | ( | ) | [inline, private] |
Definition at line 71 of file bbstdVectorToString.h.
00072 { 00073 std::string out; 00074 typename std::vector<T>::const_iterator i; 00075 for (i=bbmInputIn.begin();i!=bbmInputIn.end();++i) 00076 { 00077 if (i!=bbmInputIn.begin()) 00078 out += bbGetInputSeparator(); 00079 std::ostringstream s; 00080 s << *i; 00081 out += s.str(); 00082 } 00083 bbSetOutputOut(out); 00084 }
void bbstd::VectorToString< T >::bbUserConstructor | ( | ) | [inline, private, virtual] |