Rosetta 3.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
protocols
nonlocal
Region.hh
Go to the documentation of this file.
1
// -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2
// vi: set ts=2 noet:
3
//
4
// (c) Copyright Rosetta Commons Member Institutions.
5
// (c) This file is part of the Rosetta software suite and is made available under license.
6
// (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7
// (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8
// (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9
10
/// @file protocols/nonlocal/Region.hh
11
/// @author Christopher Miles (cmiles@uw.edu)
12
13
#ifndef INCLUDED_PROTOCOLS_NONLOCAL_REGION_HH
14
#define INCLUDED_PROTOCOLS_NONLOCAL_REGION_HH
15
16
// Unit header
17
#include <
protocols/nonlocal/Region.fwd.hh
>
18
19
// Utility headers
20
#include <utility/pointer/ReferenceCount.hh>
21
22
// Project headers
23
#include <
core/types.hh
>
24
25
namespace
protocols {
26
namespace
nonlocal {
27
28
/// @class A continguous sequence of residues
29
class
Region
:
public
utility::pointer::ReferenceCount
{
30
typedef
core::Size
Size
;
31
32
public
:
33
///@brief Automatically generated virtual destructor for class deriving directly from ReferenceCount
34
virtual
~Region
();
35
/// @brief Creates a new region with the specified start/stop residues
36
Region
(
Size
start_pos,
Size
stop_pos);
37
38
/// @brief Returns the starting position of this region
39
/// O(1)
40
Size
start
()
const
;
41
42
/// @brief Returns the stopping position of this region
43
/// O(1)
44
Size
stop
()
const
;
45
46
/// @brief Returns the length of this region. Makes no assumption about
47
/// directionality. That is, Region(3,5).length() == Region(5,3).length().
48
/// O(1)
49
Size
length
()
const
;
50
51
/// @brief Returns true if start <= stop, false otherwise
52
bool
increasing
()
const
;
53
54
/// @brief Returns true if stop <= start, false otherwise
55
bool
decreasing
()
const
;
56
57
private
:
58
/// @brief The starting position of the contiguous sequence
59
Size
start_
;
60
61
/// @brief The ending position of the contiguous sequence
62
Size
stop_
;
63
};
64
65
}
// namespace nonlocal
66
}
// namespace protocols
67
68
#endif // PROTOCOLS_NONLOCAL_REGION_HH_
Generated on Sat Jun 1 2013 12:01:43 for Rosetta 3.5 by
1.8.4