Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
correlation::readers::ITrajectoryReader Class Referenceabstract

Segregated contract for file format parsers that read multi-frame simulation trajectories. More...

#include <ITrajectoryReader.hpp>

Inheritance diagram for correlation::readers::ITrajectoryReader:

Public Member Functions

 ITrajectoryReader ()=default
virtual ~ITrajectoryReader ()=default
 ITrajectoryReader (const ITrajectoryReader &)=delete
ITrajectoryReader & operator= (const ITrajectoryReader &)=delete
 ITrajectoryReader (ITrajectoryReader &&)=delete
ITrajectoryReader & operator= (ITrajectoryReader &&)=delete
virtual correlation::core::Trajectory readTrajectory (const std::string &filename, ProgressCallback progress_callback=nullptr)=0
 Reads a trajectory from a file.
virtual correlation::core::Trajectory readTrajectory (const std::vector< std::string > &filenames, ProgressCallback progress_callback=nullptr)
 Reads a trajectory concatenated across multiple files.

Detailed Description

Segregated contract for file format parsers that read multi-frame simulation trajectories.

Constructor & Destructor Documentation

◆ ITrajectoryReader() [1/3]

correlation::readers::ITrajectoryReader::ITrajectoryReader ( )
default
Here is the caller graph for this function:

◆ ~ITrajectoryReader()

virtual correlation::readers::ITrajectoryReader::~ITrajectoryReader ( )
virtualdefault

◆ ITrajectoryReader() [2/3]

correlation::readers::ITrajectoryReader::ITrajectoryReader ( const ITrajectoryReader & )
delete
Here is the call graph for this function:

◆ ITrajectoryReader() [3/3]

correlation::readers::ITrajectoryReader::ITrajectoryReader ( ITrajectoryReader && )
delete
Here is the call graph for this function:

Member Function Documentation

◆ operator=() [1/2]

ITrajectoryReader & correlation::readers::ITrajectoryReader::operator= ( const ITrajectoryReader & )
delete
Here is the call graph for this function:

◆ operator=() [2/2]

ITrajectoryReader & correlation::readers::ITrajectoryReader::operator= ( ITrajectoryReader && )
delete
Here is the call graph for this function:

◆ readTrajectory() [1/2]

◆ readTrajectory() [2/2]

virtual correlation::core::Trajectory correlation::readers::ITrajectoryReader::readTrajectory ( const std::vector< std::string > & filenames,
ProgressCallback progress_callback = nullptr )
inlinenodiscardvirtual

Reads a trajectory concatenated across multiple files.

Parameters
[in]filenamesList of paths to files to be read.
[in]progress_callbackOptional callback to report progress [0.0, 1.0].
Returns
A Trajectory object containing all loaded frames.

Reimplemented in correlation::readers::BaseReader, and correlation::readers::LammpsDumpReader.

Here is the call graph for this function:

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