24#ifndef _SAMPLEDATUM_HPP_
25#define _SAMPLEDATUM_HPP_
39template<
typename abscissa_type,
typename ordinate_type>
51template<
typename abscissa_type,
typename ordinate_type>
55 return (a.
x==b.
x && a.
y==b.
y);
59namespace SampleDatumConstant
67template<
typename abscissa_type,
typename ordinate_type>
80template<
typename abscissa_type,
typename ordinate_type>
87 std::istringstream iss(buffer);
89 char open, separator, close;
92 iss >> open >>
x >> separator >>
y >> close;
97 throw std::runtime_error(
"[SampleDatum::operator>>] Invalid format.");
KernelTraitsBase< Kernel >::space_type::abscissa_type x
KernelTraitsBase< Kernel >::space_type::ordinate_type y
std::ostream & operator<<(std::ostream &os, const Diff< object_type, config_type > &diff)
stream insertion of Diff results
std::istream & operator>>(std::istream &is, SampleDatum< abscissa_type, ordinate_type > &datum)
bool operator==(const SampleDatum< abscissa_type, ordinate_type > &a, const SampleDatum< abscissa_type, ordinate_type > &b)
SampleDatum(abscissa_type _x=0, ordinate_type _y=0)