|
Simpatico
v1.10
|
Descriptor for a type of Atom.
An AtomTypeType has a mass, a name string, and an integer id. [It will later acquire a charge.]
Definition at line 26 of file ddMd/chemistry/AtomType.h.
#include <AtomType.h>
Public Member Functions | |
| AtomType () | |
| Constructor. More... | |
Mutators | |
| void | setId (int Id) |
| Set the type index. More... | |
| void | setMass (double mass) |
| Set the mass. More... | |
| void | setName (std::string name) |
| Set the name string. More... | |
Accessors | |
| double | mass () const |
| Get the mass. More... | |
| const std::string & | name () const |
| Get the name string. More... | |
| int | id () const |
| Get the index. More... | |
Static Public Member Functions | |
| static void | initStatic () |
| Call this to guarantee initialization of static data. More... | |
Friends | |
| std::istream & | operator>> (std::istream &in, AtomType &atomType) |
| istream extractor (>>) for an AtomType. More... | |
| std::ostream & | operator<< (std::ostream &out, const AtomType &atomType) |
| ostream inserter (<<) for an AtomType. More... | |
| template<class Archive > | |
| void | serialize (Archive &ar, AtomType &atomType, const unsigned int version) |
| Serialize an AtomType. More... | |
| DdMd::AtomType::AtomType | ( | ) |
Constructor.
Definition at line 19 of file ddMd/chemistry/AtomType.cpp.
| void DdMd::AtomType::setId | ( | int | Id | ) |
Set the type index.
| Id | integer index. |
Definition at line 28 of file ddMd/chemistry/AtomType.cpp.
References id().
|
inline |
Set the mass.
| mass | atom mass |
Definition at line 106 of file ddMd/chemistry/AtomType.h.
References mass().
|
inline |
Set the name string.
| name | name string |
Definition at line 110 of file ddMd/chemistry/AtomType.h.
References name().
|
inline |
Get the mass.
Definition at line 114 of file ddMd/chemistry/AtomType.h.
Referenced by initStatic(), setMass(), DdMd::NvtIntegrator::setup(), DdMd::NveIntegrator::setup(), DdMd::NphIntegrator::setup(), DdMd::NptIntegrator::setup(), and DdMd::NvtLangevinIntegrator::setup().
|
inline |
Get the name string.
Definition at line 118 of file ddMd/chemistry/AtomType.h.
Referenced by initStatic(), and setName().
|
inline |
Get the index.
Definition at line 122 of file ddMd/chemistry/AtomType.h.
References operator<<, and operator>>.
Referenced by setId().
|
static |
Call this to guarantee initialization of static data.
Definition at line 59 of file ddMd/chemistry/AtomType.cpp.
References mass(), and name().
Referenced by DdMd::Simulation::Simulation().
|
friend |
istream extractor (>>) for an AtomType.
Format:
name mass
| in | input stream |
| atomType | AtomType to be read from stream |
Definition at line 34 of file ddMd/chemistry/AtomType.cpp.
Referenced by id().
|
friend |
ostream inserter (<<) for an AtomType.
Format, one one line with no line break:
name mass
| out | output stream |
| atomType | AtomType to be written to stream |
Definition at line 44 of file ddMd/chemistry/AtomType.cpp.
Referenced by id().
|
friend |
Serialize an AtomType.
| ar | archive |
| atomType | object to be serialized |
| version | archive version id |
Definition at line 161 of file ddMd/chemistry/AtomType.h.
1.8.11