ParaMonte MATLAB 3.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation. |
This is the base class for generating objects that contain the contents of a given file.
More...
Public Member Functions | |
function | FileContents (in file, in silent) |
Return a scalar object of class pm.io.FileContents. More... | |
function | warn (in self, in line, in msg) |
Display the input warning message about the line number line of the file whose contents are read and return nothing. More... | |
function | checkpoint (in self, in msg, in advance) |
Display the input final message and return nothing. More... | |
Data Fields | |
Property | silent |
Property | file |
Property | weblinks |
Property | spinner |
Property | timer |
This is the base class for generating objects that contain the contents of a given file.
This class is meant to be primarily internally used by the ParaMonte library routines (e.g., samplers).
handle
superclass of this class is critical for the class functionality.
Final Remarks ⛓
If you believe this algorithm or its documentation can be improved, we appreciate your contribution and help to edit this page's documentation and source file on GitHub.
For details on the naming abbreviations, see this page.
For details on the naming conventions, see this page.
This software is distributed under the MIT license with additional terms outlined below.
This software is available to the public under a highly permissive license.
Help us justify its continued development and maintenance by acknowledging its benefit to society, distributing it, and contributing to it.
Definition at line 26 of file FileContents.m.
function FileContents::FileContents | ( | in | file, |
in | silent | ||
) |
Return a scalar object of class pm.io.FileContents.
This is the constructor of the class pm.io.FileContents.
It merely serves as the blueprint for the IO subclasses accessible to the end users.
[in] | file | : The input scalar MATLAB string containing the path to an external file. |
[in] | silent | : The input scalar MATLAB logical. If true , all descriptive messages will be suppressed.Setting this option to false is particularly useful in MPI-parallel simulations.(optional, default = false ) |
self
: The output scalar object of class pm.io.FileContents.
Possible calling interfaces ⛓
Final Remarks ⛓
If you believe this algorithm or its documentation can be improved, we appreciate your contribution and help to edit this page's documentation and source file on GitHub.
For details on the naming abbreviations, see this page.
For details on the naming conventions, see this page.
This software is distributed under the MIT license with additional terms outlined below.
This software is available to the public under a highly permissive license.
Help us justify its continued development and maintenance by acknowledging its benefit to society, distributing it, and contributing to it.
function FileContents::checkpoint | ( | in | self, |
in | msg, | ||
in | advance | ||
) |
Display the input final message and return nothing.
This is a Hidden
method of the class pm.io.FileContents.
[in,out] | self | : The implicitly-passed input/output argument representing the parent object of the method. |
[in] | msg | : The input scalar MATLAB string containing a message to display on the MATLAB console. (optional, default = "done in " + sprintf("%.6f", string(self.timer.del())) + " seconds." ) |
[in] | advance | : The input scalar MATLAB logical .If true , an end of line character will be added at the end of the printed message.(optional, default = true ) |
Possible calling interfaces ⛓
Final Remarks ⛓
If you believe this algorithm or its documentation can be improved, we appreciate your contribution and help to edit this page's documentation and source file on GitHub.
For details on the naming abbreviations, see this page.
For details on the naming conventions, see this page.
This software is distributed under the MIT license with additional terms outlined below.
This software is available to the public under a highly permissive license.
Help us justify its continued development and maintenance by acknowledging its benefit to society, distributing it, and contributing to it.
function FileContents::warn | ( | in | self, |
in | line, | ||
in | msg | ||
) |
Display the input warning message about the line number line
of the file whose contents are read and return nothing.
This is a Hidden
method of the class pm.io.FileContents.
The messaging within this routine occurs only if the silent
attribute of the parent object is set to false
at the time of constructing the parent object of class pm.io.FileContents.
[in,out] | self | : The implicitly-passed input argument representing the parent object of the method. |
[in] | line | : The input scalar MATLAB string or whole number, representing the line number within the file about which the warning message should be printed. (optional, default = "UNKNOWN" ) |
[in] | msg | : The input scalar MATLAB string containing a message to display on the MATLAB console. (optional, default = "done in " + sprintf("%.6f", string(self.timer.del())) + " seconds." ) |
Possible calling interfaces ⛓
Final Remarks ⛓
If you believe this algorithm or its documentation can be improved, we appreciate your contribution and help to edit this page's documentation and source file on GitHub.
For details on the naming abbreviations, see this page.
For details on the naming conventions, see this page.
This software is distributed under the MIT license with additional terms outlined below.
This software is available to the public under a highly permissive license.
Help us justify its continued development and maintenance by acknowledging its benefit to society, distributing it, and contributing to it.
Property FileContents::file |
file
The scalar MATLAB string containing the path to the file whose contents are read.
Definition at line 45 of file FileContents.m.
Property FileContents::silent |
silent
The scalar MATLAB logical (Boolean) indicator which is false
by default.
If it is set to true
, it will silence all output postprocessing messages.
Definition at line 38 of file FileContents.m.
Property FileContents::spinner |
spinner
The scalar Hidden
MATLAB object of class pm.timing.Spinner used internally for displaying the progress in file contents processing.
Hidden
class attribute that is inaccessible to the end users.Definition at line 72 of file FileContents.m.
Property FileContents::timer |
timer
The scalar Hidden
MATLAB object of class pm.timing.Timer used internally for displaying the timing of the progress in file contents processing.
Hidden
class attribute that is inaccessible to the end users.Definition at line 84 of file FileContents.m.
Property FileContents::weblinks |
weblinks
The scalar Hidden
MATLAB struct
returned by pm.lib.weblinks used internally for displaying the ParaMonte library web links.
Hidden
class attribute that is inaccessible to the end users.Definition at line 60 of file FileContents.m.