1 #ifndef _theplu_yat_utility_ostream_iterator_ 2 #define _theplu_yat_utility_ostream_iterator_ 26 #include "yat_assert.h" 28 #include <boost/iterator/function_output_iterator.hpp> 50 const std::string& delimiter)
51 : delimiter_(delimiter), ostream_(&os), pristine_(true) {}
60 *ostream_ << delimiter_;
65 std::string delimiter_;
66 std::ostream* ostream_;
98 public boost::function_output_iterator<detail::OstreamIteratorFunc<T> >
122 : boost::function_output_iterator<detail::OstreamIteratorFunc<T> >(detail::OstreamIteratorFunc<T>(os, delimiter)) {}
Definition: OstreamIterator.h:43
OstreamIterator(void)
Default constructor.
Definition: OstreamIterator.h:106
The Department of Theoretical Physics namespace as we define it.
Definition: OstreamIterator.h:97
void operator()(const T &t)
writes to ostream using operator <<
Definition: OstreamIterator.h:54
OstreamIteratorFunc(std::ostream &os, const std::string &delimiter)
constructor
Definition: OstreamIterator.h:49
OstreamIteratorFunc(void)
default constructor
Definition: OstreamIterator.h:47
OstreamIterator(std::ostream &os, const std::string &delimiter="")
Constructor.
Definition: OstreamIterator.h:121