| 6 |
|
#include "BendStamp.hpp" |
| 7 |
|
#include "TorsionStamp.hpp" |
| 8 |
|
#include "RigidBodyStamp.hpp" |
| 9 |
+ |
#include "CutoffGroupStamp.hpp" |
| 10 |
|
#include "LinkedAssign.hpp" |
| 11 |
|
|
| 12 |
|
class MoleculeStamp{ |
| 22 |
|
|
| 23 |
|
char* addAtom( AtomStamp* the_atom, int atomIndex ); |
| 24 |
|
char* addRigidBody( RigidBodyStamp* the_rigidbody, int rigidBodyIndex ); |
| 25 |
+ |
char* addCutoffGroup( CutoffGroupStamp* the_cutoffgroup, int cutoffGroupIndex ); |
| 26 |
|
char* addBond( BondStamp* the_bond, int bondIndex ); |
| 27 |
|
char* addBend( BendStamp* the_bend, int bendIndex ); |
| 28 |
|
char* addTorsion( TorsionStamp* the_torsion, int torsionIndex ); |
| 29 |
|
|
| 30 |
< |
char* getID( void ) { return name; } |
| 31 |
< |
int getNAtoms( void ) { return n_atoms; } |
| 32 |
< |
int getNBonds( void ) { return n_bonds; } |
| 33 |
< |
int getNBends( void ) { return n_bends; } |
| 34 |
< |
int getNTorsions( void ) { return n_torsions; } |
| 35 |
< |
int getNRigidBodies(void){ return n_rigidbodies; } |
| 36 |
< |
int getNIntegrable(void) { return n_integrable; } |
| 30 |
> |
char* getID( void ) { return name; } |
| 31 |
> |
int getNAtoms( void ) { return n_atoms; } |
| 32 |
> |
int getNBonds( void ) { return n_bonds; } |
| 33 |
> |
int getNBends( void ) { return n_bends; } |
| 34 |
> |
int getNTorsions( void ) { return n_torsions; } |
| 35 |
> |
int getNRigidBodies(void) { return n_rigidbodies; } |
| 36 |
> |
int getNCutoffGroups(void){ return n_cutoffgroups; } |
| 37 |
> |
int getNIntegrable(void) { return n_integrable; } |
| 38 |
|
|
| 39 |
|
AtomStamp* getAtom( int index ) { return atoms[index]; } |
| 40 |
|
BondStamp* getBond( int index ) { return bonds[index]; } |
| 41 |
|
BendStamp* getBend( int index ) { return bends[index]; } |
| 42 |
|
TorsionStamp* getTorsion( int index ) { return torsions[index]; } |
| 43 |
|
RigidBodyStamp* getRigidBody( int index ) { return rigidBodies[index]; } |
| 44 |
< |
|
| 44 |
> |
CutoffGroupStamp* getCutoffGroup( int index ) { return cutoffGroups[index]; } |
| 45 |
> |
|
| 46 |
|
int haveExtras( void ) { return have_extras; } |
| 47 |
|
LinkedAssign* getUnhandled( void ) { return unhandled; } |
| 48 |
< |
|
| 48 |
> |
|
| 49 |
|
static char errMsg[500]; |
| 50 |
|
private: |
| 51 |
< |
|
| 52 |
< |
|
| 51 |
> |
|
| 52 |
> |
|
| 53 |
|
char name[100]; |
| 54 |
|
int n_atoms; |
| 55 |
|
int n_bonds; |
| 56 |
|
int n_bends; |
| 57 |
|
int n_torsions; |
| 58 |
|
int n_rigidbodies; |
| 59 |
+ |
int n_cutoffgroups; |
| 60 |
|
int n_integrable; |
| 61 |
|
|
| 62 |
|
int have_name, have_atoms, have_bonds, have_bends, have_torsions; |
| 63 |
< |
int have_rigidbodies; |
| 63 |
> |
int have_rigidbodies, have_cutoffgroups; |
| 64 |
|
|
| 65 |
|
AtomStamp** atoms; |
| 66 |
|
BondStamp** bonds; |
| 67 |
|
BendStamp** bends; |
| 68 |
|
TorsionStamp** torsions; |
| 69 |
|
RigidBodyStamp** rigidBodies; |
| 70 |
+ |
CutoffGroupStamp** cutoffGroups; |
| 71 |
|
|
| 72 |
|
LinkedAssign* unhandled; // the unhandled assignments |
| 73 |
|
short int have_extras; |