Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Types | Private Attributes | List of all members
protocols::nonlocal::Region Class Reference

#include <Region.hh>

Inheritance diagram for protocols::nonlocal::Region:
Inheritance graph
[legend]
Collaboration diagram for protocols::nonlocal::Region:
Collaboration graph
[legend]

Public Member Functions

virtual ~Region ()
 Automatically generated virtual destructor for class deriving directly from ReferenceCount. More...
 
 Region (Size start_pos, Size stop_pos)
 Creates a new region with the specified start/stop residues. More...
 
Size start () const
 Returns the starting position of this region O(1) More...
 
Size stop () const
 Returns the stopping position of this region O(1) More...
 
Size length () const
 Returns the length of this region. Makes no assumption about directionality. That is, Region(3,5).length() == Region(5,3).length(). O(1) More...
 
bool increasing () const
 Returns true if start <= stop, false otherwise. More...
 
bool decreasing () const
 Returns true if stop <= start, false otherwise. More...
 

Private Types

typedef core::Size Size
 

Private Attributes

Size start_
 The starting position of the contiguous sequence. More...
 
Size stop_
 The ending position of the contiguous sequence. More...
 

Detailed Description

Definition at line 29 of file Region.hh.

Member Typedef Documentation

Definition at line 30 of file Region.hh.

Constructor & Destructor Documentation

protocols::nonlocal::Region::~Region ( )
virtual

Automatically generated virtual destructor for class deriving directly from ReferenceCount.

Auto-generated virtual destructor

Definition at line 23 of file Region.cc.

protocols::nonlocal::Region::Region ( core::Size  start_pos,
core::Size  stop_pos 
)

Creates a new region with the specified start/stop residues.

Definition at line 25 of file Region.cc.

Member Function Documentation

bool protocols::nonlocal::Region::decreasing ( ) const

Returns true if stop <= start, false otherwise.

Definition at line 44 of file Region.cc.

References start(), and stop().

bool protocols::nonlocal::Region::increasing ( ) const

Returns true if start <= stop, false otherwise.

Definition at line 40 of file Region.cc.

References start(), and stop().

Referenced by length().

core::Size protocols::nonlocal::Region::length ( ) const

Returns the length of this region. Makes no assumption about directionality. That is, Region(3,5).length() == Region(5,3).length(). O(1)

Definition at line 36 of file Region.cc.

References increasing(), start(), and stop().

core::Size protocols::nonlocal::Region::start ( ) const

Returns the starting position of this region O(1)

Definition at line 28 of file Region.cc.

References start_.

Referenced by decreasing(), increasing(), and length().

core::Size protocols::nonlocal::Region::stop ( ) const

Returns the stopping position of this region O(1)

Definition at line 32 of file Region.cc.

References stop_.

Referenced by decreasing(), increasing(), and length().

Member Data Documentation

Size protocols::nonlocal::Region::start_
private

The starting position of the contiguous sequence.

Definition at line 59 of file Region.hh.

Referenced by start().

Size protocols::nonlocal::Region::stop_
private

The ending position of the contiguous sequence.

Definition at line 62 of file Region.hh.

Referenced by stop().


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