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

#include <gromacs/mdlib/mdatoms.h>

Description

Contains a C-style t_mdatoms while managing some of its memory with C++ vectors with allocators.

The group-scheme kernels need to use a plain C-style t_mdatoms, so this type combines that with the memory management needed for efficient PME on GPU transfers.

Todo:
Refactor this class and rename MDAtoms once the group scheme is removed.

Public Member Functions

t_mdatomsmdatoms ()
 Getter.
 
void resize (int newSize)
 Resizes memory. More...
 
void reserve (int newCapacity)
 Reserves memory. More...
 

Friends

std::unique_ptr< MDAtomsmakeMDAtoms (FILE *fp, const gmx_mtop_t &mtop, const t_inputrec &ir, bool rankHasPmeGpuTask)
 Builder function.
 

Member Function Documentation

void gmx::MDAtoms::reserve ( int  newCapacity)

Reserves memory.

Exceptions
std::bad_allocIf out of memory.
void gmx::MDAtoms::resize ( int  newSize)

Resizes memory.

Exceptions
std::bad_allocIf out of memory.

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