NAMD
Public Member Functions | List of all members
CudaPmeAtomStorage Class Reference
Inheritance diagram for CudaPmeAtomStorage:
PmeAtomStorage

Public Member Functions

 CudaPmeAtomStorage (const bool useIndex)
 
 ~CudaPmeAtomStorage ()
 
- Public Member Functions inherited from PmeAtomStorage
 PmeAtomStorage (const bool useIndex)
 
virtual ~PmeAtomStorage ()
 
int addAtoms (const int natom, const CudaAtom *src)
 
int addAtomsWithIndex (const int natom, const CudaAtom *src, const int *index)
 
void finish ()
 
void clear ()
 
CudaAtomgetAtoms ()
 
int * getPatchPos ()
 
int getNumPatches ()
 
int getNumAtoms ()
 
int * getAtomIndex ()
 

Additional Inherited Members

- Protected Attributes inherited from PmeAtomStorage
CudaAtomatom
 
int * atomIndex
 
CudaAtomoverflowAtom
 
int * overflowAtomIndex
 

Detailed Description

Definition at line 40 of file ComputePmeCUDAMgr.C.

Constructor & Destructor Documentation

CudaPmeAtomStorage::CudaPmeAtomStorage ( const bool  useIndex)
inline

Definition at line 42 of file ComputePmeCUDAMgr.C.

42 : PmeAtomStorage(useIndex) {}
PmeAtomStorage(const bool useIndex)
CudaPmeAtomStorage::~CudaPmeAtomStorage ( )
inline

Definition at line 43 of file ComputePmeCUDAMgr.C.

References PmeAtomStorage::atom, PmeAtomStorage::atomIndex, PmeAtomStorage::overflowAtom, and PmeAtomStorage::overflowAtomIndex.

43  {
44  if (atom != NULL) dealloc_((void *)atom);
45  if (atomIndex != NULL) dealloc_((void *)atomIndex);
46  if (overflowAtom != NULL) dealloc_((void *)overflowAtom);
47  if (overflowAtomIndex != NULL) dealloc_((void *)overflowAtomIndex);
48  }
CudaAtom * overflowAtom

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