votca 2024.2-dev
|
information about molecules More...
#include <molecule.h>
Public Member Functions | |
Index | getId () const |
get the molecule ID | |
const std::string & | getName () const |
get the name of the molecule | |
void | setName (const std::string &name) |
set the name of the molecule | |
void | AddBead (Bead *bead, const std::string &name) |
Add a bead to the molecule. | |
Bead * | getBead (Index bead) |
get the id of a bead in the molecule | |
const Bead * | getBead (Index bead) const |
Index | getBeadId (Index bead) const |
Index | getBeadIdByName (const std::string &name) const |
Index | BeadCount () const |
get the number of beads in the molecule | |
const std::vector< Bead * > & | Beads () const |
std::vector< Bead * > & | Beads () |
Index | getBeadByName (const std::string &name) const |
find a bead by it's name | |
std::string | getBeadName (const Index bead) |
const std::string & | getBeadName (const Index bead) const |
void | AddInteraction (Interaction *ic) |
Add an interaction to the molecule. | |
std::vector< Interaction * > | Interactions () |
const std::vector< Interaction * > & | Interactions () const |
Private Member Functions | |
Molecule (Index id, std::string name) | |
constructor | |
Private Attributes | |
std::map< std::string, Index > | beadmap_ |
std::vector< Interaction * > | interactions_ |
Index | id_ |
std::string | name_ |
std::vector< Bead * > | beads_ |
std::vector< std::string > | bead_names_ |
Friends | |
class | Topology |
information about molecules
The Molecule class stores which beads belong to a molecule. The organization of beads into molecules is needed for the CG mapping.
Definition at line 45 of file molecule.h.
|
inlineprivate |
constructor
Definition at line 99 of file molecule.h.
void votca::csg::Molecule::AddBead | ( | Bead * | bead, |
const std::string & | name ) |
Add a bead to the molecule.
Definition at line 29 of file molecule.cc.
|
inline |
Add an interaction to the molecule.
Definition at line 77 of file molecule.h.
|
inline |
get the number of beads in the molecule
Definition at line 65 of file molecule.h.
|
inline |
Definition at line 68 of file molecule.h.
|
inline |
Definition at line 67 of file molecule.h.
get the id of a bead in the molecule
Definition at line 59 of file molecule.h.
Definition at line 60 of file molecule.h.
Index votca::csg::Molecule::getBeadByName | ( | const std::string & | name | ) | const |
find a bead by it's name
Definition at line 37 of file molecule.cc.
Definition at line 61 of file molecule.h.
|
inline |
Definition at line 104 of file molecule.h.
|
inline |
Definition at line 71 of file molecule.h.
|
inline |
Definition at line 72 of file molecule.h.
|
inline |
get the molecule ID
Definition at line 48 of file molecule.h.
|
inline |
get the name of the molecule
Definition at line 51 of file molecule.h.
|
inline |
Definition at line 79 of file molecule.h.
|
inline |
Definition at line 80 of file molecule.h.
|
inline |
set the name of the molecule
Definition at line 54 of file molecule.h.
|
friend |
Definition at line 101 of file molecule.h.
|
private |
Definition at line 96 of file molecule.h.
|
private |
Definition at line 86 of file molecule.h.
|
private |
Definition at line 95 of file molecule.h.
|
private |
Definition at line 90 of file molecule.h.
|
private |
Definition at line 87 of file molecule.h.
|
private |
Definition at line 93 of file molecule.h.