Loading...
Searching...
No Matches
null.hpp
Go to the documentation of this file.
1#pragma once
2
3/**
4 * NullMeanFieldExporter — the "no export" format.
5 *
6 * Null Object implementation of MeanFieldExporter: export_to_directory() is a
7 * no-op (no files are created). Selected by
8 * create_mean_field_exporter("none") so the SCF/NSCF flavors can call the
9 * export interface unconditionally instead of branching on the format name.
10 */
11
12#include <string>
13
15
16namespace q3 {
17
19 public:
20 void export_to_directory(const MeanFieldRecord& /*record*/,
21 const std::string& /*directory*/) const override {}
22
23 [[nodiscard]] std::string name() const override {
24 return "none";
25 }
26};
27
28} // namespace q3
std::string name() const override
Format name as accepted by the input ("none", "berkeleygw", ...).
Definition null.hpp:23
void export_to_directory(const MeanFieldRecord &, const std::string &) const override
Definition null.hpp:20