1 #ifndef _theplu_yat_utility_ostream_iterator_ 2 #define _theplu_yat_utility_ostream_iterator_ 25 #include "yat_assert.h" 27 #include <boost/function_output_iterator.hpp> 49 const std::string& delimiter)
50 : delimiter_(delimiter), ostream_(&os), pristine_(true) {}
59 *ostream_ << delimiter_;
64 std::string delimiter_;
65 std::ostream* ostream_;
97 public boost::function_output_iterator<detail::OstreamIteratorFunc<T> >
Definition: OstreamIterator.h:42
OstreamIterator(void)
Default constructor.
Definition: OstreamIterator.h:105
The Department of Theoretical Physics namespace as we define it.
Definition: OstreamIterator.h:96
void operator()(const T &t)
writes to ostream using operator <<
Definition: OstreamIterator.h:53
OstreamIteratorFunc(std::ostream &os, const std::string &delimiter)
constructor
Definition: OstreamIterator.h:48
OstreamIteratorFunc(void)
default constructor
Definition: OstreamIterator.h:46
OstreamIterator(std::ostream &os, const std::string &delimiter="")
Constructor.
Definition: OstreamIterator.h:120