Rosetta Core  2014.35
Public Member Functions | Private Attributes | List of all members
core::chemical::AddBondType Class Reference

A patch operation for adding a specific type of bond to a ResidueType. More...

#include <PatchOperation.hh>

Public Member Functions

 AddBondType (std::string const &atom1_in, std::string const &atom2_in, std::string const &bond_type_in)
 
virtual bool apply (ResidueType &rsd) const
 Apply this patch to the given ResidueType. More...
 
- Public Member Functions inherited from core::chemical::PatchOperation
virtual ~PatchOperation ()
 Automatically generated virtual destructor for class deriving directly from ReferenceCount. More...
 

Private Attributes

std::string atom1_
 
std::string atom2_
 
std::string bond_type_
 

Detailed Description

A patch operation for adding a specific type of bond to a ResidueType.

Note
See residue_io.cc for a description of bond types.
Author
Labonte JWLab.nosp@m.onte.nosp@m.@jhu..nosp@m.edu

Constructor & Destructor Documentation

core::chemical::AddBondType::AddBondType ( std::string const &  atom1_in,
std::string const &  atom2_in,
std::string const &  bond_type_in 
)

Member Function Documentation

bool core::chemical::AddBondType::apply ( ResidueType rsd) const
virtual

Apply this patch to the given ResidueType.

Returns
true on failure
Remarks
Because ResidueType is not throwing exceptions, this will never return true. Failure will lead to exits from ResidueType. ~Labonte

Implements core::chemical::PatchOperation.

References core::chemical::ResidueType::add_bond(), atom1_, atom2_, bond_type_, and core::chemical::convert_to_BondName().

Member Data Documentation

std::string core::chemical::AddBondType::atom1_
private

Referenced by apply().

std::string core::chemical::AddBondType::atom2_
private

Referenced by apply().

std::string core::chemical::AddBondType::bond_type_
private

Referenced by apply().


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