![]() |
Rosetta Core
2014.35
|
#include <MolFileIOData.hh>
Public Member Functions | |
MolFileIOMolecule () | |
virtual | ~MolFileIOMolecule () |
std::string | name () const |
void | name (std::string name) |
MolFileIOAtomOP | atom_index (AtomIndex index) |
Retrieve a modifiable atom by index. More... | |
void | add_atom (MolFileIOAtomOP atom) |
Add an atom (takes possession of object) More... | |
void | add_bond (MolFileIOBondOP bond) |
Add a bond (takes possession of object) More... | |
void | add_str_str_data (std::string const &key, std::string const &value) |
StrStrMap const & | get_str_str_data () const |
void | normalize () |
Generate data for potentially missing fields. More... | |
ResidueTypeOP | convert_to_ResidueType (chemical::AtomTypeSetCAP atom_types, chemical::ElementSetCAP elements, chemical::MMAtomTypeSetCAP mm_atom_types) |
Make a ResidueType from this object rsd_type_set is used for context - the residue is not actually added to the set. More... | |
Private Member Functions | |
void | set_from_extra_data (ResidueType &restype, std::map< mioAD, core::chemical::VD > &restype_from_mio) |
From the str/str data in MolFile, additional information Specifically, it's the overall atom and bond information. More... | |
bool | index_valid (AtomIndex index, ResidueType const &restype, std::map< mioAD, core::chemical::VD > &restype_from_mio) |
Private Attributes | |
std::string | name_ |
MolFileIOGraph | molgraph_ |
std::map< AtomIndex, mioAD > | index_atom_map_ |
StrStrMap | molecule_string_data_ |
core::chemical::sdf::MolFileIOMolecule::MolFileIOMolecule | ( | ) |
|
virtual |
void core::chemical::sdf::MolFileIOMolecule::add_atom | ( | MolFileIOAtomOP | atom | ) |
Add an atom (takes possession of object)
References index_atom_map_, and molgraph_.
Referenced by core::chemical::sdf::CtabV2000Parser::parse(), and core::chemical::sdf::CtabV3000Parser::parse().
void core::chemical::sdf::MolFileIOMolecule::add_bond | ( | MolFileIOBondOP | bond | ) |
Add a bond (takes possession of object)
References index_atom_map_, and molgraph_.
Referenced by core::chemical::sdf::CtabV2000Parser::parse(), and core::chemical::sdf::CtabV3000Parser::parse().
void core::chemical::sdf::MolFileIOMolecule::add_str_str_data | ( | std::string const & | key, |
std::string const & | value | ||
) |
References molecule_string_data_.
Referenced by core::chemical::sdf::SDFParser::parse_optional_data().
MolFileIOAtomOP core::chemical::sdf::MolFileIOMolecule::atom_index | ( | AtomIndex | index | ) |
Retrieve a modifiable atom by index.
References core::chemical::sdf::has(), index_atom_map_, and molgraph_.
Referenced by core::chemical::sdf::CtabV2000Parser::parse_property_line().
ResidueTypeOP core::chemical::sdf::MolFileIOMolecule::convert_to_ResidueType | ( | chemical::AtomTypeSetCAP | atom_types, |
chemical::ElementSetCAP | elements, | ||
chemical::MMAtomTypeSetCAP | mm_atom_types | ||
) |
Make a ResidueType from this object rsd_type_set is used for context - the residue is not actually added to the set.
Not const as it calls normalize() to fix up missing data first.
References core::chemical::sdf::MolFileIOAtom::element(), core::chemical::find_bonds_in_rings(), core::chemical::find_nbr_dist(), core::chemical::sdf::MolFileIOAtom::formal_charge(), core::chemical::sdf::has(), molgraph_, core::chemical::sdf::MolFileIOAtom::name(), core::chemical::Atom::name(), name_, normalize(), core::chemical::ResidueType::null_vertex, core::chemical::sdf::MolFileIOAtom::partial_charge(), core::chemical::sdf::MolFileIOAtom::position(), core::chemical::rename_atoms(), restype, core::chemical::rosetta_recharge_fullatom(), core::chemical::rosetta_retype_fullatom(), core::chemical::sdf::MolFileIOBond::sdf_type(), set_from_extra_data(), target, and core::chemical::sdf::TR.
|
inline |
References molecule_string_data_.
|
private |
References core::chemical::ResidueType::has(), and index_atom_map_.
Referenced by set_from_extra_data().
|
inline |
References name_.
Referenced by set_from_extra_data().
|
inline |
void core::chemical::sdf::MolFileIOMolecule::normalize | ( | ) |
Generate data for potentially missing fields.
Referenced by convert_to_ResidueType().
|
private |
From the str/str data in MolFile, additional information Specifically, it's the overall atom and bond information.
References core::chemical::ResidueType::aa(), core::chemical::ResidueType::add_property(), core::chemical::ResidueType::add_string_property(), core::chemical::ResidueType::atom(), core::chemical::ResidueType::atom_type_set(), core::chemical::AtomTypeSet::has_atom(), index_atom_map_, index_valid(), core::chemical::ResidueType::interchangeability_group(), molecule_string_data_, core::chemical::Atom::name(), name(), core::chemical::ResidueType::name(), core::chemical::ResidueType::name1(), core::chemical::ResidueType::name3(), core::chemical::ResidueType::nbr_atom(), core::chemical::ResidueType::nbr_radius(), radius, core::chemical::ResidueType::set_atom_type(), core::chemical::sdf::TR, and type.
Referenced by convert_to_ResidueType().
Referenced by add_atom(), add_bond(), atom_index(), index_valid(), and set_from_extra_data().
|
private |
Referenced by add_str_str_data(), get_str_str_data(), and set_from_extra_data().
|
private |
Referenced by add_atom(), add_bond(), atom_index(), and convert_to_ResidueType().
|
private |
Referenced by convert_to_ResidueType(), and name().