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

Alter the base name. More...

#include <PatchOperation.hh>

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

Public Member Functions

 SetBaseName ()=default
 Deafult constructor – defaulted. More...
 
 SetBaseName (std::string const &new_base_name)
 Constructor. More...
 
bool may_change_aa () override
 Generates a new aa. More...
 
bool apply (MutableResidueType &rsd) const override
 Apply this patch to generate a new base residue type. More...
 
std::string name () const override
 Return the name of this PatchOperation ("SetBaseName"). More...
 
bool generates_base_residue_type () const override
 This patch operaton DOES result in a new base residue type. More...
 
- Public Member Functions inherited from core::chemical::PatchOperation
 ~PatchOperation () override
 Automatically generated virtual destructor for class deriving directly from VirtualBase. More...
 
virtual utility::vector1
< std::string > 
adds_atoms ()
 Which atom(s), if any, is/are added. Used for fast matching of ResidueType/Patches to PDB residues. More...
 
virtual std::string deletes_atom ()
 Which atom, if any, is deleted. Used for fast matching of ResidueType/Patches to PDB residues. More...
 
virtual std::string adds_property () const
 Which property, if any, is added. More...
 
virtual ResidueProperty adds_property_enum () const
 Which property, if any, is added. More...
 
virtual std::string deletes_property () const
 Which property, if any, is deleted. More...
 
virtual ResidueProperty deletes_property_enum () const
 Which property, if any, is deleted. More...
 
virtual std::string deletes_variant () const
 Which variant, if any, is deleted. More...
 
virtual VariantType deletes_variant_enum () const
 Which variant, if any, is deleted, by enum. More...
 
virtual bool changes_connections_on (ResidueType const &, std::string const &) const
 Can this case change connections for the atom on the residue? More...
 
virtual std::string generates_name3 ()
 Generates name3. More...
 
virtual std::string generates_interchangeability_group ()
 Generates interchangeability_group. More...
 
virtual bool applies_to_placeholder () const
 Special – does this apply to 'minimal', placeholder types? Generally true, unless updating aa or name3. More...
 

Private Attributes

std::string new_base_name_
 

Detailed Description

Alter the base name.

This creates a new base residue type, clearing anything after the colon in the name.

Author
Vikram K. Mulligan (vmull.nosp@m.igan.nosp@m.@flat.nosp@m.iron.nosp@m.insti.nosp@m.tute.nosp@m..org).

Constructor & Destructor Documentation

core::chemical::SetBaseName::SetBaseName ( )
default

Deafult constructor – defaulted.

core::chemical::SetBaseName::SetBaseName ( std::string const &  new_base_name)

Constructor.

Member Function Documentation

bool core::chemical::SetBaseName::apply ( MutableResidueType rsd) const
overridevirtual

Apply this patch to generate a new base residue type.

Implements core::chemical::PatchOperation.

References core::chemical::ResidueTypeBase::base_name(), core::chemical::ResidueTypeBase::name(), and new_base_name_.

bool core::chemical::SetBaseName::generates_base_residue_type ( ) const
overridevirtual

This patch operaton DOES result in a new base residue type.

Reimplemented from core::chemical::PatchOperation.

bool core::chemical::SetBaseName::may_change_aa ( )
inlineoverridevirtual

Generates a new aa.

Reimplemented from core::chemical::PatchOperation.

std::string core::chemical::SetBaseName::name ( ) const
overridevirtual

Return the name of this PatchOperation ("SetBaseName").

Implements core::chemical::PatchOperation.

Member Data Documentation

std::string core::chemical::SetBaseName::new_base_name_
private

Referenced by apply().


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