#include <TrajectoryParser.h>
Public Types | |
| enum class | trajfmt { molfile , xdr_xtc , xdr_trr , xyz , gro , dlp4 , error } |
Public Member Functions | |
| TrajectoryParser () | |
| ~TrajectoryParser () | |
| std::optional< std::string > | init (std::string_view fmt, FILE *fileHandle) |
| std::optional< std::string > | init (std::string_view fmt, std::string_view fname, bool useMolfile=false, int command_line_natoms=-1) |
| int | nOfAtoms () const |
| Return the number of atoms. | |
| std::optional< std::string > | readAtoms (int stride, bool dont_read_pbc, bool debug_pd, int pd_start, int pd_nlocal, long long int &step, double *masses, double *charges, double *coordinates, double *cell) |
| std::optional< std::string > | readAtoms (int stride, bool dont_read_pbc, bool debug_pd, int pd_start, int pd_nlocal, long long int &step, float *masses, float *charges, float *coordinates, float *cell) |
| std::optional< std::string > | readFrame (int stride, bool dont_read_pbc, bool debug_pd, int pd_start, int pd_nlocal, long long int &step, double &timeStep, double *masses, double *charges, double *coordinates, double *cell) |
| std::optional< std::string > | readFrame (int stride, bool dont_read_pbc, bool debug_pd, int pd_start, int pd_nlocal, long long int &step, float &timeStep, float *masses, float *charges, float *coordinates, float *cell) |
| std::optional< std::string > | readHeader (long long int &step, double &timeStep) |
| std::optional< std::string > | readHeader (long long int &step, float &timeStep) |
| std::optional< std::string > | rewind () |
| Return the file pointer to the initial position (use at your own risk) | |
Static Public Member Functions | |
| static trajfmt | FMTfromString (std::string_view fmt) |
| static std::vector< std::string > | getMolfilePluginsnames () |
| static void | registerKeywords (Keywords &keys) |
| static std::string | toString (trajfmt fmt) |
| static std::vector< std::string > | trajectoryOptions () |
Private Attributes | |
| std::unique_ptr< fileParser > | parser |
|
strong |
|
default |
|
default |
|
static |
|
static |
| std::optional< std::string > PLMD::TrajectoryParser::init | ( | std::string_view | fmt, |
| FILE * | fileHandle ) |
| std::optional< std::string > PLMD::TrajectoryParser::init | ( | std::string_view | fmt, |
| std::string_view | fname, | ||
| bool | useMolfile = false, | ||
| int | command_line_natoms = -1 ) |
| int PLMD::TrajectoryParser::nOfAtoms | ( | ) | const |
Return the number of atoms.
| std::optional< std::string > PLMD::TrajectoryParser::readAtoms | ( | int | stride, |
| bool | dont_read_pbc, | ||
| bool | debug_pd, | ||
| int | pd_start, | ||
| int | pd_nlocal, | ||
| long long int & | step, | ||
| double * | masses, | ||
| double * | charges, | ||
| double * | coordinates, | ||
| double * | cell ) |
| std::optional< std::string > PLMD::TrajectoryParser::readAtoms | ( | int | stride, |
| bool | dont_read_pbc, | ||
| bool | debug_pd, | ||
| int | pd_start, | ||
| int | pd_nlocal, | ||
| long long int & | step, | ||
| float * | masses, | ||
| float * | charges, | ||
| float * | coordinates, | ||
| float * | cell ) |
| std::optional< std::string > PLMD::TrajectoryParser::readFrame | ( | int | stride, |
| bool | dont_read_pbc, | ||
| bool | debug_pd, | ||
| int | pd_start, | ||
| int | pd_nlocal, | ||
| long long int & | step, | ||
| double & | timeStep, | ||
| double * | masses, | ||
| double * | charges, | ||
| double * | coordinates, | ||
| double * | cell ) |
| std::optional< std::string > PLMD::TrajectoryParser::readFrame | ( | int | stride, |
| bool | dont_read_pbc, | ||
| bool | debug_pd, | ||
| int | pd_start, | ||
| int | pd_nlocal, | ||
| long long int & | step, | ||
| float & | timeStep, | ||
| float * | masses, | ||
| float * | charges, | ||
| float * | coordinates, | ||
| float * | cell ) |
| std::optional< std::string > PLMD::TrajectoryParser::readHeader | ( | long long int & | step, |
| double & | timeStep ) |
| std::optional< std::string > PLMD::TrajectoryParser::readHeader | ( | long long int & | step, |
| float & | timeStep ) |
|
static |
| std::optional< std::string > PLMD::TrajectoryParser::rewind | ( | ) |
Return the file pointer to the initial position (use at your own risk)
|
static |
|
static |
|
private |
Hosted by GitHub
|
1.13.2
|