Quantum 3xplorer (Q3)
An AI-native quantum simulation engine
Loading...
Searching...
No Matches
q3::BerkeleyGWChargeDensityFile Class Reference

#include <charge_density.hpp>

Public Member Functions

 BerkeleyGWChargeDensityFile (const MeanFieldRecord &&)=delete
 
 BerkeleyGWChargeDensityFile (const MeanFieldRecord &record)
 
void write_to_file (const std::string &file_path) const
 

Detailed Description

Definition at line 41 of file charge_density.hpp.

Constructor & Destructor Documentation

◆ BerkeleyGWChargeDensityFile() [1/2]

q3::BerkeleyGWChargeDensityFile::BerkeleyGWChargeDensityFile ( const MeanFieldRecord &  record)
inlineexplicit

Definition at line 43 of file charge_density.hpp.

◆ BerkeleyGWChargeDensityFile() [2/2]

q3::BerkeleyGWChargeDensityFile::BerkeleyGWChargeDensityFile ( const MeanFieldRecord &&  )
explicitdelete

These writers keep a reference to the record, so binding one to a temporary would dangle the moment the full expression ends. Deleting the rvalue overload turns that into a compile error instead of a silent read of freed memory – callers must keep the record alive themselves, which every real call site already does.

Member Function Documentation

◆ write_to_file()

void q3::BerkeleyGWChargeDensityFile::write_to_file ( const std::string &  file_path) const
inline

The documentation for this class was generated from the following file: