GenericAtom Class Reference

#include <GromacsTopFile.h>

List of all members.

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.

00852                                                        {
00853   strncpy(type,theType,NAMESIZE+1);
00854   typeNum = theTypeNum;
00855   resNum = theResNum;
00856   strncpy(resType,theResType,NAMESIZE+1);
00857   strncpy(atomName,theAtomName,NAMESIZE+1);
00858   charge = theCharge;
00859   mass = theMass;
00860 }


Member Function Documentation

const char* GenericAtom::getAtomName (  )  const [inline]

Definition at line 104 of file GromacsTopFile.h.

Referenced by GromacsTopFile::getAtom().

00104 {return atomName;}

Real GenericAtom::getCharge (  )  const [inline]

Definition at line 105 of file GromacsTopFile.h.

Referenced by GromacsTopFile::getAtom().

00105 {return charge;}

Real GenericAtom::getMass (  )  const [inline]

Definition at line 106 of file GromacsTopFile.h.

Referenced by GromacsTopFile::getAtom().

00106 {return mass;}

int GenericAtom::getResNum (  )  const [inline]

Definition at line 102 of file GromacsTopFile.h.

Referenced by GromacsTopFile::getAtom().

00102 {return resNum;}

const char* GenericAtom::getResType (  )  const [inline]

Definition at line 103 of file GromacsTopFile.h.

Referenced by GromacsTopFile::getAtom().

00103 {return resType;}

const char* GenericAtom::getType (  )  const [inline]

Definition at line 100 of file GromacsTopFile.h.

Referenced by GromacsTopFile::getAtom().

00100 { return type; }

int GenericAtom::getTypeNum (  )  const [inline]

Definition at line 101 of file GromacsTopFile.h.

Referenced by GromacsTopFile::getAtom().

00101 { return typeNum; }


The documentation for this class was generated from the following files:
Generated on Thu Nov 23 01:17:18 2017 for NAMD by  doxygen 1.4.7