Gromacs  2016.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
List of all members | Public Member Functions
gmx::TopologyInformation Class Reference

#include <gromacs/trajectoryanalysis/analysissettings.h>


Topology information passed to a trajectory analysis module.

This class is used to pass topology information to trajectory analysis modules and to manage memory for them. Having a single wrapper object instead of passing each item separately makes TrajectoryAnalysisModule interface simpler, and also reduces the need to change existing code if additional information is added.

Methods in this class do not throw if not explicitly stated.


Public Member Functions

bool hasTopology () const
 Returns true if a topology file was loaded.
bool hasFullTopology () const
 Returns true if a full topology file was loaded.
t_topology * topology () const
 Returns the loaded topology, or NULL if not loaded.
int ePBC () const
 Returns the ePBC field from the topology.
void getTopologyConf (rvec **x, matrix box) const
 Gets the configuration from the topology. More...

Member Function Documentation

void gmx::TopologyInformation::getTopologyConf ( rvec **  x,
matrix  box 
) const

Gets the configuration from the topology.

[out]xTopology coordinate pointer to initialize. (can be NULL, in which case it is not used).
[out]boxBox size from the topology file (can be NULL, in which case it is not used).
APIErrorif topology coordinates are not available and x is not NULL.

If TrajectoryAnalysisSettings::efUseTopX has not been specified, x should be NULL.

The pointer returned in *x should not be freed.

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