31 using namespace pwiz::util;
32 using namespace pwiz::data;
38 template <
typename abscissa_type,
typename ordinate_type>
44 v.push_back(sd_type(1,2));
45 v.push_back(sd_type(3,4));
46 v.push_back(sd_type(5,6));
50 copy(v.begin(), v.end(), ostream_iterator<sd_type>(oss,
"\n"));
51 if (
os_) *
os_ << oss.str();
55 istringstream iss(oss.str());
56 copy(istream_iterator<sd_type>(iss), istream_iterator<sd_type>(), back_inserter(w));
63 int main(
int argc,
char* argv[])
69 if (argc>1 && !strcmp(argv[1],
"-v"))
os_ = &cout;
70 if (
os_) *
os_ <<
"SampleDatumTest\n";
73 test<double,double>();
74 test< double,complex<double> >();
75 test< complex<double>,complex<double> >();