Quantum 3xplorer (Q3)
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
14
#include "
io/mean_field_export/init.hpp
"
15
16
namespace
q3
{
17
18
class
NullMeanFieldExporter
:
public
MeanFieldExporter
{
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
q3::MeanFieldExporter
Definition
init.hpp:26
q3::NullMeanFieldExporter
Definition
null.hpp:18
q3::NullMeanFieldExporter::name
std::string name() const override
Format name as accepted by the input ("none", "berkeleygw", ...).
Definition
null.hpp:23
q3::NullMeanFieldExporter::export_to_directory
void export_to_directory(const MeanFieldRecord &, const std::string &) const override
Definition
null.hpp:20
init.hpp
q3
Definition
q3_core_api.hpp:33
q3::MeanFieldRecord
Definition
init.hpp:71
src
io
mean_field_export
null.hpp
Generated by
1.9.8