MolInst Class Reference

#include <GromacsTopFile.h>

List of all members.

Public Member Functions

 MolInst (const GenericMol *theMol, int theNum)
int getNum () const
int getNumAtoms () const
int getNumRes () const
int getNumBonds () const
int getNumAngles () const
int getNumDihedrals () const
const GenericMolgetMol () const


Detailed Description

Definition at line 175 of file GromacsTopFile.h.


Constructor & Destructor Documentation

MolInst::MolInst ( const GenericMol theMol,
int  theNum 
)

Definition at line 961 of file GromacsTopFile.C.

00961                                                      {
00962   mol = theMol;
00963   num = theNum;
00964 }


Member Function Documentation

const GenericMol* MolInst::getMol (  )  const [inline]

Definition at line 193 of file GromacsTopFile.h.

Referenced by getNumAngles(), getNumAtoms(), getNumBonds(), getNumDihedrals(), and getNumRes().

00193 { return mol; }

int MolInst::getNum (  )  const [inline]

Definition at line 183 of file GromacsTopFile.h.

Referenced by getNumAngles(), getNumAtoms(), getNumBonds(), getNumDihedrals(), and getNumRes().

00183 { return num; }

int MolInst::getNumAngles (  )  const

Definition at line 973 of file GromacsTopFile.C.

References getMol(), getNum(), and GenericMol::getNumAngles().

00973                                 {
00974   return getMol()->getNumAngles() * getNum();
00975 }

int MolInst::getNumAtoms (  )  const

Definition at line 967 of file GromacsTopFile.C.

References getMol(), getNum(), and GenericMol::getNumAtoms().

00967                                {
00968   return getMol()->getNumAtoms() * getNum();
00969 }

int MolInst::getNumBonds (  )  const

Definition at line 970 of file GromacsTopFile.C.

References getMol(), getNum(), and GenericMol::getNumBonds().

00970                                {
00971   return getMol()->getNumBonds() * getNum();
00972 }

int MolInst::getNumDihedrals (  )  const

Definition at line 976 of file GromacsTopFile.C.

References getMol(), getNum(), and GenericMol::getNumDihedrals().

00976                                    {
00977   return getMol()->getNumDihedrals() * getNum();
00978 }

int MolInst::getNumRes (  )  const

Definition at line 979 of file GromacsTopFile.C.

References getMol(), getNum(), and GenericMol::getNumRes().

00979                              {
00980   return getMol()->getNumRes()
00981     * getNum();
00982 }


The documentation for this class was generated from the following files:
Generated on Sat Sep 23 01:17:20 2017 for NAMD by  doxygen 1.4.7