19#ifndef VOTCA_CSG_MOLECULE_H
20#define VOTCA_CSG_MOLECULE_H
109 return beads_[i]->getId();
base class for all interactions
information about molecules
Index getBeadIdByName(const std::string &name) const
void AddBead(Bead *bead, const std::string &name)
Add a bead to the molecule.
std::string getBeadName(const Index bead)
std::map< std::string, Index > beadmap_
Bead * getBead(Index bead)
get the id of a bead in the molecule
Index getBeadByName(const std::string &name) const
find a bead by it's name
const Bead * getBead(Index bead) const
Molecule(Index id, std::string name)
constructor
std::vector< Bead * > & Beads()
void AddInteraction(Interaction *ic)
Add an interaction to the molecule.
std::vector< Bead * > beads_
std::vector< Interaction * > Interactions()
const std::string & getName() const
get the name of the molecule
std::vector< std::string > bead_names_
Index BeadCount() const
get the number of beads in the molecule
const std::vector< Interaction * > & Interactions() const
std::vector< Interaction * > interactions_
void setName(const std::string &name)
set the name of the molecule
const std::string & getBeadName(const Index bead) const
Index getId() const
get the molecule ID
const std::vector< Bead * > & Beads() const
Index getBeadId(Index bead) const
topology of the whole system
base class for all analysis tools