AbstractIO#
#include <AbstractIO.h>
Base class for all input/output streams.
How to reference this class#
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`AbstractIO <class-abstractio>`
[AbstractIO](#class-abstractio)
Detailed description#
Holds information about binary/ascii format, and 32b/64b information. See method must_convert() and file arch.h.in for more explanations on 32/64b. Note that the .sauv files for example are always written in 32b.
Inherited by#
Inheritance graph#
If the image is too small, right-click and open in new tab
List of Public Methods#
List of Protected Methods#
Complete Member Function Documentation#
avoid_conversion#
bool AbstractIO::avoid_conversion()
Detailed description
References
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`bool AbstractIO::avoid_conversion() <abstractio-public-bool-abstractio-avoid-conversion>`
[bool AbstractIO::avoid_conversion()](#abstractio-public-bool-abstractio-avoid-conversion)
is_64b#
bool AbstractIO::is_64b() const
Detailed description
References
Referenced By
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`bool AbstractIO::is_64b() const <abstractio-public-bool-abstractio-is-64b-const>`
[bool AbstractIO::is_64b() const](#abstractio-public-bool-abstractio-is-64b-const)
is_bin#
bool AbstractIO::is_bin()
Detailed description
References
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`bool AbstractIO::is_bin() <abstractio-public-bool-abstractio-is-bin>`
[bool AbstractIO::is_bin()](#abstractio-public-bool-abstractio-is-bin)
set_64b#
virtual void AbstractIO::set_64b(bool is_64b)
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`virtual void AbstractIO::set_64b(bool is_64b) <abstractio-public-virtual-void-abstractio-set-64b-bool-is-64b>`
[virtual void AbstractIO::set_64b(bool is_64b)](#abstractio-public-virtual-void-abstractio-set-64b-bool-is-64b)
set_avoid_conversion#
void AbstractIO::set_avoid_conversion(bool avoid)
Detailed description
References
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`void AbstractIO::set_avoid_conversion(bool avoid) <abstractio-public-void-abstractio-set-avoid-conversion-bool-avoid>`
[void AbstractIO::set_avoid_conversion(bool avoid)](#abstractio-public-void-abstractio-set-avoid-conversion-bool-avoid)
set_bin#
virtual void AbstractIO::set_bin(bool bin)
Detailed description
References
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`virtual void AbstractIO::set_bin(bool bin) <abstractio-public-virtual-void-abstractio-set-bin-bool-bin>`
[virtual void AbstractIO::set_bin(bool bin)](#abstractio-public-virtual-void-abstractio-set-bin-bool-bin)
AbstractIO#
AbstractIO::AbstractIO()
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`AbstractIO::AbstractIO() <abstractio-protected-abstractio-abstractio>`
[AbstractIO::AbstractIO()](#abstractio-protected-abstractio-abstractio)
must_convert#
template bool AbstractIO::must_convert<double>() const
Whether to convert an int into a long when reading/writing out data.
Detailed description
The rules are: Note however that we can force the file to written in 32b even when running the 64b executable, thanks to the is_64b flag. This is what we do in Problem_base, save/restart logic.
References
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`template bool AbstractIO::must_convert<double>() const <abstractio-protected-template-bool-abstractio-must-convert-double-const>`
[template bool AbstractIO::must_convert<double>() const](#abstractio-protected-template-bool-abstractio-must-convert-double-const)
~AbstractIO#
virtual AbstractIO::~AbstractIO()
Detailed description
How to reference this method:
Copy the following pieces of RST/Markdown code to cite this element in other parts of the sphinx documentation (there is a copy button on the top-right when hovering the code block):
:ref:`virtual AbstractIO::~AbstractIO() <abstractio-protected-virtual-abstractio-dtor-abstractio>`
[virtual AbstractIO::~AbstractIO()](#abstractio-protected-virtual-abstractio-dtor-abstractio)
Attributes Documentation#
bool AbstractIO::avoid_conversion_
If true, no hacking on int/long is performed in operator_template() methods of Entree/Sortie This is useful for CommBuffer classes ( = MPI exchanges) where we always want int to be sent as int, and long to be sent as long.
bool AbstractIO::bin_
Is this a binary flux?
bool AbstractIO::is_64b_
Will we be reading/writing in 64b?