NAMD
Public Member Functions | List of all members
GenericAtom Class Reference

#include <GromacsTopFile.h>

Public Member Functions

 GenericAtom (const char *theType, int theTypeNum, int theResNum, const char *theResType, const char *theAtomName, Real theCharge, Real theMass)
 
const char * getType () const
 
int getTypeNum () const
 
int getResNum () const
 
const char * getResType () const
 
const char * getAtomName () const
 
Real getCharge () const
 
Real getMass () const
 

Detailed Description

Definition at line 80 of file GromacsTopFile.h.

Constructor & Destructor Documentation

GenericAtom::GenericAtom ( const char *  theType,
int  theTypeNum,
int  theResNum,
const char *  theResType,
const char *  theAtomName,
Real  theCharge,
Real  theMass 
)

Definition at line 850 of file GromacsTopFile.C.

References NAMESIZE.

852  {
853  strncpy(type,theType,NAMESIZE+1);
854  typeNum = theTypeNum;
855  resNum = theResNum;
856  strncpy(resType,theResType,NAMESIZE+1);
857  strncpy(atomName,theAtomName,NAMESIZE+1);
858  charge = theCharge;
859  mass = theMass;
860 }
#define NAMESIZE
Definition: GromacsTopFile.h:6

Member Function Documentation

const char* GenericAtom::getAtomName ( ) const
inline

Definition at line 104 of file GromacsTopFile.h.

Referenced by GromacsTopFile::getAtom().

104 {return atomName;}
Real GenericAtom::getCharge ( ) const
inline

Definition at line 105 of file GromacsTopFile.h.

Referenced by GromacsTopFile::getAtom().

105 {return charge;}
Real GenericAtom::getMass ( ) const
inline

Definition at line 106 of file GromacsTopFile.h.

Referenced by GromacsTopFile::getAtom().

106 {return mass;}
int GenericAtom::getResNum ( ) const
inline

Definition at line 102 of file GromacsTopFile.h.

Referenced by GromacsTopFile::getAtom().

102 {return resNum;}
const char* GenericAtom::getResType ( ) const
inline

Definition at line 103 of file GromacsTopFile.h.

Referenced by GromacsTopFile::getAtom().

103 {return resType;}
const char* GenericAtom::getType ( ) const
inline

Definition at line 100 of file GromacsTopFile.h.

Referenced by GromacsTopFile::getAtom().

100 { return type; }
int GenericAtom::getTypeNum ( ) const
inline

Definition at line 101 of file GromacsTopFile.h.

Referenced by GromacsTopFile::getAtom().

101 { return typeNum; }

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