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::select::residue_selector::ResidueRange Class Reference

Class for storing a range of resids. More...

#include <ResidueRanges.hh>

Public Member Functions

 ResidueRange ()
 
 ResidueRange (Size const startval, Size const stopval)
 
bool operator< (ResidueRange const &other) const
 less than operator that can be used for sorting More...
 
Size start () const
 Returns the starting residue of the range. More...
 
void set_start (Size const start_res)
 Sets starting residue of the range. More...
 
Size stop () const
 Returns the stopping residue of the range. More...
 
void set_stop (Size const stop_res)
 Sets stopping residue of the range. More...
 
std::string to_string () const
 String representation of the range. More...
 

Private Attributes

Size start_
 
Size stop_
 

Detailed Description

Class for storing a range of resids.

Constructor & Destructor Documentation

core::select::residue_selector::ResidueRange::ResidueRange ( )
inline
core::select::residue_selector::ResidueRange::ResidueRange ( Size const  startval,
Size const  stopval 
)
inline

Member Function Documentation

bool core::select::residue_selector::ResidueRange::operator< ( ResidueRange const &  other) const

less than operator that can be used for sorting

If start < other.start, return true If start > other.start, return false if start == other.start, return (stop < other.stop)

References start(), start_, stop(), and stop_.

void core::select::residue_selector::ResidueRange::set_start ( Size const  start_res)

Sets starting residue of the range.

References start_.

void core::select::residue_selector::ResidueRange::set_stop ( Size const  stop_res)

Sets stopping residue of the range.

References stop_.

Size core::select::residue_selector::ResidueRange::start ( ) const
Size core::select::residue_selector::ResidueRange::stop ( ) const
std::string core::select::residue_selector::ResidueRange::to_string ( ) const

Member Data Documentation

Size core::select::residue_selector::ResidueRange::start_
private

Referenced by operator<(), set_start(), start(), and to_string().

Size core::select::residue_selector::ResidueRange::stop_
private

Referenced by operator<(), set_stop(), stop(), and to_string().


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