#include <Hydrogen.h>
Public Member Functions | |
| HydrogenGroupID () | |
| ~HydrogenGroupID () | |
| int | operator< (const HydrogenGroupID &a) const |
| int | operator== (const HydrogenGroupID &a) const |
Public Attributes | |
| AtomID | atomID |
| int | isGP |
| int | atomsInGroup |
| int | sortVal |
| int | GPID |
Definition at line 14 of file Hydrogen.h.
|
|
Definition at line 27 of file Hydrogen.h. 00027 {};
|
|
|
Definition at line 28 of file Hydrogen.h. 00028 {};
|
|
|
Definition at line 30 of file Hydrogen.h. References atomID, GPID, isGP, and sortVal. 00030 {
00031 int rval;
00032 // check for overall group ordering
00033 if (sortVal != a.sortVal) rval = (sortVal < a.sortVal);
00034 else if (isGP) // same group. Check for other hydrogen ordering
00035 {
00036 // case 1: both are group parents
00037 if (a.isGP) rval = (atomID < a.atomID);
00038 // case 2: only this atom is a group parent
00039 else rval = (atomID <= a.GPID);
00040 }
00041 else
00042 {
00043 // case 3: only 'a' is a group parent
00044 if (a.isGP) rval = (GPID < a.atomID);
00045 // case 4: both are in a group
00046 // case 4.1: both in different groups
00047 else if (GPID != a.GPID) rval = (GPID < a.GPID);
00048 // case 4.2: both in same group
00049 else rval = (atomID < a.atomID);
00050 }
00051 return(rval);
00052 }
|
|
|
Definition at line 54 of file Hydrogen.h. 00054 {
00055 // only the same when both part of same group
00056 return (!isGP && !a.isGP && (GPID == a.GPID) );
00057 }
|
|
|
Definition at line 16 of file Hydrogen.h. Referenced by operator<(). |
|
|
Definition at line 19 of file Hydrogen.h. |
|
|
Definition at line 25 of file Hydrogen.h. Referenced by operator<(), and operator==(). |
|
|
Definition at line 18 of file Hydrogen.h. Referenced by operator<(), and operator==(). |
|
|
Definition at line 21 of file Hydrogen.h. Referenced by operator<(). |
1.3.9.1