class traj::TrajectoryUnwrapper#

Overview#

Stateful streaming unwrapper across periodic frames. More…

#include <src/include/internal/trajectory.hpp>
 
class TrajectoryUnwrapper {
public:
    // construction
 
    TrajectoryUnwrapper(std::size_t nParticles = 0);
 
    // methods
 
    void reset(std::size_t nParticles = 0);
    std::size_t numParticles() const;
    std::size_t framesSeen() const;
    bool pushFrame(const double* xyz, std::size_t nParticles, const BoxCell& cell, double* unwrappedOut);
};

Detailed Documentation#

Stateful streaming unwrapper across periodic frames.

Methods#

void reset(std::size_t nParticles = 0)

A count above kMaxTriples leaves the unwrapper empty, and pushFrame refuses such a count.