Rosetta  3.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
core::chemical::PatchCase Class Reference

A single case of a patch, eg proline Nterminus is a case of NtermProteinFull. More...

#include <Patch.hh>

Inheritance diagram for core::chemical::PatchCase:
Inheritance graph
[legend]

Public Member Functions

 ~PatchCase () override
 Automatically generated virtual destructor for class deriving directly from ReferenceCount. More...
 
bool applies_to (ResidueType const &rsd) const
 whether the PatchCase is applicable to this ResidueType? More...
 
virtual ResidueTypeOP apply (ResidueType const &rsd_in, bool const instantiate=true) const
 returns patched residue, 0 if patch failed More...
 
void add_operation (PatchOperationOP operation)
 add one more operation in this PatchCase More...
 
ResidueTypeSelectorselector ()
 to which ResidueTypes this PatchCase applies to? More...
 
void set_selector (ResidueTypeSelector const &selector)
 
utility::vector1< std::string > adds_atoms () const
 returns list of added atom names, useful for identifying patches that go with PDB residues More...
 
utility::vector1< std::string > deletes_atoms () const
 returns list of deleted atom names, useful for identifying patches that go with PDB residues More...
 
utility::vector1< std::string > adds_properties () const
 returns list of added property names, useful for identifying patches that go with PDB residues More...
 
utility::vector1< std::string > deletes_properties () const
 returns list of deleted property names, useful for identifying patches that go with PDB residues More...
 
utility::vector1< std::string > deletes_variants () const
 returns list of deleted variant names, useful for identifying patches that go with PDB residues More...
 
std::string generates_new_name3 () const
 returns new name3, if changed More...
 
std::string generates_interchangeability_group () const
 returns interchangeability group, if set. More...
 
bool may_change_aa () const
 returns list of new interchangeability_group, useful for identifying patches that go with PDB residues More...
 

Private Attributes

ResidueTypeSelector selector_
 to which ResidueTypes this PatchCase applies to? More...
 
utility::vector1
< PatchOperationOP
operations_
 operations to done in this PatchCase More...
 

Detailed Description

A single case of a patch, eg proline Nterminus is a case of NtermProteinFull.

Constructor & Destructor Documentation

core::chemical::PatchCase::~PatchCase ( )
overridedefault

Automatically generated virtual destructor for class deriving directly from ReferenceCount.

Auto-generated virtual destructor

Member Function Documentation

void core::chemical::PatchCase::add_operation ( PatchOperationOP  operation)
inline

add one more operation in this PatchCase

References operations_.

Referenced by core::chemical::apply_adducts_to_residue().

utility::vector1< std::string > core::chemical::PatchCase::adds_atoms ( ) const

returns list of added atom names, useful for identifying patches that go with PDB residues

Go through patch operations in this PatchCase, and compile list of any atom names that are added.

References operations_.

utility::vector1< std::string > core::chemical::PatchCase::adds_properties ( ) const

returns list of added property names, useful for identifying patches that go with PDB residues

Go through patch operations in this PatchCase, and compile list of any property names that are added.

References operations_.

bool core::chemical::PatchCase::applies_to ( ResidueType const &  rsd) const
inline

whether the PatchCase is applicable to this ResidueType?

References selector_.

ResidueTypeOP core::chemical::PatchCase::apply ( ResidueType const &  rsd_in,
bool const  instantiate = true 
) const
virtual

returns patched residue, 0 if patch failed

First clone the base ResidueType. Then patching for this case is done by applying all the operations. finalize() is called after the VariantTypes and name are set by Patch::apply().

Note
If you call this method without calling finalize(), your ResidueType may not have the correct derived data!

References core::chemical::ResidueType::clone(), operations_, and core::chemical::ResidueType::placeholder_clone().

Referenced by core::chemical::apply_adducts_to_residue().

utility::vector1< std::string > core::chemical::PatchCase::deletes_atoms ( ) const

returns list of deleted atom names, useful for identifying patches that go with PDB residues

Go through patch operations in this PatchCase, and compile list of any atom names that are deleted.

References operations_.

utility::vector1< std::string > core::chemical::PatchCase::deletes_properties ( ) const

returns list of deleted property names, useful for identifying patches that go with PDB residues

Go through patch operations in this PatchCase, and compile list of any property names that are deleted.

References operations_.

utility::vector1< std::string > core::chemical::PatchCase::deletes_variants ( ) const

returns list of deleted variant names, useful for identifying patches that go with PDB residues

Go through patch operations in this PatchCase, and compile list of any property names that are deleted.

References operations_.

std::string core::chemical::PatchCase::generates_interchangeability_group ( ) const

returns interchangeability group, if set.

returns list of new interchangeability_group, useful for identifying patches that go with PDB residues

References operations_.

std::string core::chemical::PatchCase::generates_new_name3 ( ) const

returns new name3, if changed

returns list of new name3, useful for identifying patches that go with PDB residues

References operations_.

bool core::chemical::PatchCase::may_change_aa ( ) const

returns list of new interchangeability_group, useful for identifying patches that go with PDB residues

References operations_.

ResidueTypeSelector& core::chemical::PatchCase::selector ( )
inline

to which ResidueTypes this PatchCase applies to?

References selector_.

Referenced by set_selector().

void core::chemical::PatchCase::set_selector ( ResidueTypeSelector const &  selector)
inline

References selector(), and selector_.

Member Data Documentation

utility::vector1< PatchOperationOP > core::chemical::PatchCase::operations_
private
ResidueTypeSelector core::chemical::PatchCase::selector_
private

to which ResidueTypes this PatchCase applies to?

Referenced by applies_to(), selector(), and set_selector().


The documentation for this class was generated from the following files: