votca 2024.2-dev
|
information about a base bead More...
#include <basebead.h>
Public Member Functions | |
virtual | ~BaseBead ()=default |
Index | getId () const noexcept |
Gets the id of the bead. | |
void | setId (const Index &id) noexcept |
Sets the id of the bead. | |
std::string | getName () const |
Gets the name of the bead. | |
void | setName (std::string name) |
Sets the name of the bead. | |
void | setMoleculeId (const Index &molecule_id) noexcept |
assign the bead to a molecule with the provided id | |
Index | getMoleculeId () const noexcept |
Get the id of the molecule the bead is a part of, if the molecule id has not been set return topology_constants::unassigned_molecule_id. | |
virtual const std::string | getType () const noexcept |
virtual void | setType (const std::string &type) noexcept |
std::string | getElement () const noexcept |
Returns the element type of the bead. | |
virtual const double & | getMass () const noexcept |
virtual void | setMass (const double &m) noexcept |
virtual void | setPos (const Eigen::Vector3d &bead_position) |
virtual const Eigen::Vector3d & | getPos () const |
virtual Eigen::Vector3d & | Pos () |
virtual const Eigen::Vector3d & | Pos () const |
bool | HasPos () const noexcept |
void | HasPos (const bool &true_or_false) noexcept |
Protected Member Functions | |
BaseBead ()=default | |
Protected Attributes | |
std::string | type_ = tools::topology_constants::unassigned_bead_type |
Index | id_ = tools::topology_constants::unassigned_residue_id |
Index | molecule_id_ = tools::topology_constants::unassigned_molecule_id |
std::string | element_symbol_ = tools::topology_constants::unassigned_element |
TOOLS::Name | name_ |
double | mass_ = 0.0 |
Eigen::Vector3d | bead_position_ |
bool | bead_position_set_ = false |
information about a base bead
The Base Bead class describes the core functionality of an atom or a coarse grained bead. It stores information like the id, the name, the mass, the charge and the residue it belongs to and the position
Definition at line 44 of file basebead.h.
|
virtualdefault |
destructor
|
protecteddefault |
|
inlinenoexcept |
Returns the element type of the bead.
Definition at line 98 of file basebead.h.
|
inlinenoexcept |
Gets the id of the bead.
Definition at line 52 of file basebead.h.
|
inlinevirtualnoexcept |
|
inlinenoexcept |
Get the id of the molecule the bead is a part of, if the molecule id has not been set return topology_constants::unassigned_molecule_id.
Definition at line 78 of file basebead.h.
|
inline |
Gets the name of the bead.
Definition at line 58 of file basebead.h.
|
inlinevirtual |
get the position of the base bead
Definition at line 166 of file basebead.h.
|
inlinevirtualnoexcept |
|
inlinenoexcept |
does this configuration store positions?
Definition at line 139 of file basebead.h.
|
inlinenoexcept |
set has position to true
Definition at line 142 of file basebead.h.
|
inlinevirtual |
direct access (read/write) to the position of the base bead
Definition at line 128 of file basebead.h.
|
inlinevirtual |
Definition at line 133 of file basebead.h.
|
inlinenoexcept |
Sets the id of the bead.
Definition at line 55 of file basebead.h.
|
inlinevirtualnoexcept |
set the mass of the base bead
m | - base bead mass |
Definition at line 110 of file basebead.h.
|
inlinenoexcept |
assign the bead to a molecule with the provided id
molecule_id |
Definition at line 68 of file basebead.h.
|
inline |
Sets the name of the bead.
Definition at line 61 of file basebead.h.
|
inlinevirtual |
set the position of the base bead
bead_position | - base bead position |
Definition at line 161 of file basebead.h.
|
inlinevirtualnoexcept |
|
protected |
Definition at line 156 of file basebead.h.
|
protected |
Definition at line 158 of file basebead.h.
|
protected |
Definition at line 152 of file basebead.h.
|
protected |
Definition at line 150 of file basebead.h.
|
protected |
Definition at line 155 of file basebead.h.
|
protected |
Definition at line 151 of file basebead.h.
|
protected |
Definition at line 153 of file basebead.h.
|
protected |
Definition at line 149 of file basebead.h.