Quantum 3xplorer (Q3)
Loading...
Searching...
No Matches
null.hpp
Go to the documentation of this file.
1
#pragma once
2
3
/**
4
* NullInterpolationExporter — the "none" format: writes nothing, so a call
5
* site can export unconditionally and never branch on whether an export was
6
* requested.
7
*/
8
9
#include <string>
10
11
#include "
io/interpolation/init.hpp
"
12
13
namespace
q3
{
14
15
class
NullInterpolationExporter
:
public
InterpolationExporter
{
16
public
:
17
void
export_to_directory
(
const
InterpolationRecord
&
/*record*/
,
18
const
std::string&
/*directory*/
,
19
const
std::string&
/*prefix*/
)
const override
{}
20
21
[[nodiscard]] std::string
name
()
const override
{
22
return
"none"
;
23
}
24
};
25
26
}
// namespace q3
q3::InterpolationExporter
Definition
init.hpp:25
q3::NullInterpolationExporter
Definition
null.hpp:15
q3::NullInterpolationExporter::export_to_directory
void export_to_directory(const InterpolationRecord &, const std::string &, const std::string &) const override
Definition
null.hpp:17
q3::NullInterpolationExporter::name
std::string name() const override
Format name as accepted by the input ("none", "wannier90", ...).
Definition
null.hpp:21
init.hpp
q3
Definition
q3_core_api.hpp:33
q3::InterpolationRecord
Definition
record.hpp:29
src
io
interpolation
null.hpp
Generated by
1.9.8