11 namespace alps {
namespace alea {
namespace util {
19 void enter(
const std::string &)
override { }
25 void write(
const std::string &,
ndview<
const std::complex<double>>)
override { }
47 inner_ = &null_instance;
55 void enter(
const std::string &group)
override 57 str_ <<
"debug_serializer: entering group '" << group <<
"'\n";
63 str_ <<
"debug_serializer: exitting group.\n";
71 void write(
const std::string &key,
ndview<
const std::complex<double>> value)
override {
91 str_ <<
"debug_serializer: writing data set '" << key
93 for (
size_t i = 0; i != value.
ndim(); ++i)
94 str_ << value.
shape()[i] << (i == 0 ?
"" :
",");
96 inner_->write(key, value);
void write(const std::string &, ndview< const complex_op< double >>) override
void enter(const std::string &group) override
void do_write(const std::string &key, ndview< const T > value)
const size_t * shape() const
void enter(const std::string &) override
void write(const std::string &, ndview< const double >) override
void write(const std::string &, ndview< const std::complex< double >>) override
void write(const std::string &key, ndview< const unsigned long > value) override
null_serializer * clone() override
void write(const std::string &key, ndview< const double > value) override
void write(const std::string &, ndview< const long >) override
debug_serializer(std::ostream &stream)
debug_serializer(std::ostream &stream, serializer &inner)
void write(const std::string &key, ndview< const long > value) override
void write(const std::string &key, ndview< const complex_op< double >> value) override
void write(const std::string &key, ndview< const std::complex< double >> value) override
void write(const std::string &, ndview< const unsigned long >) override