10 #define COMMUNICATOR_H
29 File(
string,
string,
string,
string);
39 void open(ios_base::openmode);
61 void open(ios_base::openmode,
string);
82 void init(
double,
bool,
string,
string);
86 if (!file_.count(type))
88 return &file_.at(type);
99 ios_base::openmode mode;
111 boost::ptr_map<string,File> file_;
114 void initFile(
string);
File * file(string type)
Get method returning file object.
void init(double, bool, string, string)
Initialize the output files.
static Communicator * getInstance()
This public method gets an instance of the Communicator object, only one can ever exist at a time.
Communicator & operator=(const Communicator &)
Singleton equals.
void updateNames()
Update the data name and rename any existing files.
Communicator(const Communicator &)
Copy constructor.
A basic input/output file class.
void reset()
Reset a file.
void rename()
Rename a file.
bool exists()
did the file exist before opening?
File(string, string, string, string)
Constructor.
void close()
Close the file.
void open(ios_base::openmode)
Open the file.
Global common header with shared dependencies and methods.
ensemble
Each move can operate on only the digaonal ensemble, only the off-diagonal ensemble,...
Communicator * communicate()
Global public access to the communcator singleton.
ConstantParameters class definition.