![]() |
Rosetta Core
2014.35
|
A patch operation for setting the formal charge of a ResidueType's atom. More...
#include <PatchOperation.hh>
Public Member Functions | |
SetFormalCharge (std::string const &atom_name_in, core::SSize charge_in) | |
virtual bool | apply (ResidueType &rsd) const |
Apply this patch to the given ResidueType. More... | |
![]() | |
virtual | ~PatchOperation () |
Automatically generated virtual destructor for class deriving directly from ReferenceCount. More... | |
Private Attributes | |
std::string | atom_name_ |
core::SSize | charge_ |
A patch operation for setting the formal charge of a ResidueType's atom.
core::chemical::SetFormalCharge::SetFormalCharge | ( | std::string const & | atom_name_in, |
core::SSize | charge_in | ||
) |
|
virtual |
Apply this patch to the given ResidueType.
Implements core::chemical::PatchOperation.
References core::chemical::ResidueType::atom(), atom_name_, charge_, core::chemical::Atom::formal_charge(), core::chemical::ResidueType::has(), core::chemical::ResidueType::name(), and core::chemical::TR_PatchOperations.
|
private |
Referenced by apply().
|
private |
Referenced by apply().