Rosetta
|
a class which can represent one of many ways in which to describe a particular residue in a pose, and can, when given a pose, find its index. The object should be constructed with all its needed parameters, but, one instance may be copied from another. More...
#include <ResidueIndexDescription.hh>
Public Member Functions | |
ResidueIndexDescription () | |
ResidueIndexDescription (RID_SourceCOP source) | |
~ResidueIndexDescription () override | |
virtual Size | resolve_index (core::pose::Pose const &p, bool no_error=false) const =0 |
Turn the internal data into a pose index (in the range from 1 to total residue) If it can't be converted, throw an exception, unless no_error is true. If no_error is true, return 0 or a residue number outside the pose range. More... | |
virtual void | show (std::ostream &) const =0 |
Output a description of the residue. More... | |
RID_SourceCOP | get_source () const |
Protected Member Functions | |
std::string | source_string () const |
Provide a formatted string representing the source of the information (if any) More... | |
core::Size | do_error (bool no_error, std::string const &msg) const |
Convenience function for triggering error conditions. More... | |
Private Attributes | |
RID_SourceCOP | source_ |
a class which can represent one of many ways in which to describe a particular residue in a pose, and can, when given a pose, find its index. The object should be constructed with all its needed parameters, but, one instance may be copied from another.
|
inline |
|
inline |
|
overridedefault |
|
protected |
Convenience function for triggering error conditions.
Referenced by core::pose::ResidueIndexDescriptionPoseNum::resolve_index(), core::pose::ResidueIndexDescriptionPDB::resolve_index(), and core::pose::ResidueIndexDescriptionChainEnd::resolve_index().
|
inline |
References source_.
|
pure virtual |
Turn the internal data into a pose index (in the range from 1 to total residue) If it can't be converted, throw an exception, unless no_error is true. If no_error is true, return 0 or a residue number outside the pose range.
Implemented in core::pose::ResidueIndexDescriptionChainEnd, core::pose::ResidueIndexDescriptionLastResidue, core::pose::ResidueIndexDescriptionRefPose, core::pose::ResidueIndexDescriptionPDB, and core::pose::ResidueIndexDescriptionPoseNum.
|
pure virtual |
Output a description of the residue.
In general will give a form which can be added "in-line" (no line ending)
Implemented in core::pose::ResidueIndexDescriptionChainEnd, core::pose::ResidueIndexDescriptionLastResidue, core::pose::ResidueIndexDescriptionRefPose, core::pose::ResidueIndexDescriptionPDB, and core::pose::ResidueIndexDescriptionPoseNum.
Referenced by core::pose::operator<<().
|
protected |
Provide a formatted string representing the source of the information (if any)
References source_.
Referenced by core::pose::ResidueIndexDescriptionPoseNum::resolve_index(), core::pose::ResidueIndexDescriptionPDB::resolve_index(), and core::pose::ResidueIndexDescriptionChainEnd::resolve_index().
|
private |
Referenced by get_source(), and source_string().