votca 2024.2-dev
Loading...
Searching...
No Matches
votca::csg::XYZWriter Class Reference

#include <xyzwriter.h>

Inheritance diagram for votca::csg::XYZWriter:
Collaboration diagram for votca::csg::XYZWriter:

Public Member Functions

void Open (std::string file, bool bAppend=false) override
 
void Close () override
 
void Write (Topology *conf) override
 
template<class T >
void Write (T &container, std::string header)
 
- Public Member Functions inherited from votca::csg::TrajectoryWriter
 TrajectoryWriter ()=default
 
virtual ~TrajectoryWriter ()=default
 

Public Attributes

const tools::DistanceUnit distance_unit = tools::DistanceUnit::angstroms
 

Private Member Functions

template<class T >
Index getSize (T &container)
 
template<class Atom >
std::string getName (Atom &atom)
 
std::string getName (std::unique_ptr< Bead > &bead)
 
template<class Atom >
Eigen::Vector3d getPos (Atom &atom)
 
Eigen::Vector3d getPos (std::unique_ptr< Bead > &bead)
 
template<class T >
T & getIterable (T &container)
 
BeadContainergetIterable (Topology &top)
 

Private Attributes

std::ofstream out_
 

Additional Inherited Members

- Static Public Member Functions inherited from votca::csg::TrajectoryWriter
static void RegisterPlugins (void)
 

Detailed Description

Definition at line 35 of file xyzwriter.h.

Member Function Documentation

◆ Close()

void votca::csg::XYZWriter::Close ( )
overridevirtual

Reimplemented from votca::csg::TrajectoryWriter.

Definition at line 32 of file xyzwriter.cc.

◆ getIterable() [1/2]

template<class T >
T & votca::csg::XYZWriter::getIterable ( T & container)
inlineprivate

Definition at line 70 of file xyzwriter.h.

◆ getIterable() [2/2]

BeadContainer & votca::csg::XYZWriter::getIterable ( Topology & top)
inlineprivate

Definition at line 74 of file xyzwriter.h.

◆ getName() [1/2]

template<class Atom >
std::string votca::csg::XYZWriter::getName ( Atom & atom)
inlineprivate

Definition at line 54 of file xyzwriter.h.

◆ getName() [2/2]

std::string votca::csg::XYZWriter::getName ( std::unique_ptr< Bead > & bead)
inlineprivate

Definition at line 58 of file xyzwriter.h.

◆ getPos() [1/2]

template<class Atom >
Eigen::Vector3d votca::csg::XYZWriter::getPos ( Atom & atom)
inlineprivate

Definition at line 61 of file xyzwriter.h.

◆ getPos() [2/2]

Eigen::Vector3d votca::csg::XYZWriter::getPos ( std::unique_ptr< Bead > & bead)
inlineprivate

Definition at line 65 of file xyzwriter.h.

◆ getSize()

template<class T >
Index votca::csg::XYZWriter::getSize ( T & container)
inlineprivate

Definition at line 49 of file xyzwriter.h.

◆ Open()

void votca::csg::XYZWriter::Open ( std::string file,
bool bAppend = false )
overridevirtual

Reimplemented from votca::csg::TrajectoryWriter.

Definition at line 24 of file xyzwriter.cc.

◆ Write() [1/2]

template<class T >
void votca::csg::XYZWriter::Write ( T & container,
std::string header )
inline

Definition at line 80 of file xyzwriter.h.

◆ Write() [2/2]

void votca::csg::XYZWriter::Write ( Topology * conf)
overridevirtual

Reimplemented from votca::csg::TrajectoryWriter.

Definition at line 34 of file xyzwriter.cc.

Member Data Documentation

◆ distance_unit

const tools::DistanceUnit votca::csg::XYZWriter::distance_unit = tools::DistanceUnit::angstroms

Definition at line 37 of file xyzwriter.h.

◆ out_

std::ofstream votca::csg::XYZWriter::out_
private

Definition at line 76 of file xyzwriter.h.


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