bbstd::VectorToString< T > Class Template Reference

#include <bbstdVectorToString.h>

List of all members.

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 ()


Detailed Description

template<class T>
class bbstd::VectorToString< T >

Definition at line 43 of file bbstdVectorToString.h.


Member Function Documentation

template<class T>
bbstd::VectorToString< T >::BBTK_TEMPLATE_BLACK_BOX_INTERFACE ( VectorToString< T >  ,
bbtk::AtomicBlackBox  ,
 
) [private]

template<class T>
bbstd::VectorToString< T >::BBTK_DECLARE_INPUT ( In  ,
std::vector< T >   
) [private]

template<class T>
bbstd::VectorToString< T >::BBTK_DECLARE_INPUT ( Separator  ,
std::string   
) [private]

template<class T>
bbstd::VectorToString< T >::BBTK_DECLARE_OUTPUT ( Out  ,
std::string   
) [private]

template<class T>
bbstd::VectorToString< T >::BBTK_PROCESS ( DoIt   )  [private]

template<class T>
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   }

template<class T>
void bbstd::VectorToString< T >::bbUserConstructor (  )  [inline, private, virtual]

Definition at line 89 of file bbstdVectorToString.h.

00090   {
00091     bbSetInputSeparator(" ");
00092   }


The documentation for this class was generated from the following file:

Generated on Tue Oct 21 16:06:51 2008 for std by  doxygen 1.5.6