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
core
conformation
PseudoBond.cc
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
// :noTabs=false:tabSize=4:indentSize=4:
4
//
5
// (c) Copyright Rosetta Commons Member Institutions.
6
// (c) This file is part of the Rosetta software suite and is made available under license.
7
// (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
8
// (c) For more information, see http://www.rosettacommons.org. Questions about this can be
9
// (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
10
11
/// @file
12
/// @brief
13
/// @author
14
15
// Unit Headers
16
#include <
core/conformation/PseudoBond.hh
>
17
18
namespace
core {
19
namespace
conformation {
20
21
PseudoBond::PseudoBond
() :
22
ReferenceCount(),
23
lr_conn_(),
24
ur_conn_(),
25
nbonds_( 0 )
26
{}
27
28
PseudoBond::~PseudoBond
() {}
29
30
PseudoBond::PseudoBond
(
PseudoBond
const
& src ) :
31
ReferenceCount(),
32
lr_conn_( src.lr_conn_ ),
33
ur_conn_( src.ur_conn_ ),
34
nbonds_( src.nbonds_ )
35
{}
36
37
PseudoBond
const
&
PseudoBond::operator =
(
PseudoBond
const
& rhs )
38
{
39
lr_conn_
= rhs.
lr_conn_
;
40
ur_conn_
= rhs.
ur_conn_
;
41
nbonds_
= rhs.
nbonds_
;
42
return
*
this
;
43
}
44
45
bool
PseudoBond::operator ==
(
PseudoBond
const
& rhs )
const
46
{
47
if
(
lr_conn_
!= rhs.
lr_conn_
)
return
false
;
48
if
(
ur_conn_
!= rhs.
ur_conn_
)
return
false
;
49
if
(
nbonds_
!= rhs.
nbonds_
)
return
false
;
50
return
true
;
51
}
52
53
// lower residue
54
Size
PseudoBond::lr
()
const
{
return
lr_conn_
.
resid
(); }
55
void
PseudoBond::lr
(
Size
setting ) {
lr_conn_
.
resid
( setting ); }
56
57
// upper residue
58
Size
PseudoBond::ur
()
const
{
return
ur_conn_
.
resid
(); }
59
void
PseudoBond::ur
(
Size
setting ) {
ur_conn_
.
resid
( setting ); }
60
61
Size
PseudoBond::lr_conn_id
()
const
{
return
lr_conn_
.
connid
(); }
62
void
PseudoBond::lr_conn_id
(
Size
setting ) {
lr_conn_
.
connid
( setting ); }
63
64
Size
PseudoBond::ur_conn_id
()
const
{
return
ur_conn_
.
connid
(); }
65
void
PseudoBond::ur_conn_id
(
Size
setting ) {
ur_conn_
.
connid
( setting ); }
66
67
PseudoBond::ResConnID
PseudoBond::lr_resconnid
()
const
{
return
lr_conn_
; }
68
void
PseudoBond::lr_resconnid
(
ResConnID
setting ) {
lr_conn_
= setting; }
69
70
PseudoBond::ResConnID
PseudoBond::ur_resconnid
()
const
{
return
ur_conn_
; }
71
void
PseudoBond::ur_resconnid
(
ResConnID
setting ) {
ur_conn_
= setting; }
72
73
Size
PseudoBond::nbonds
()
const
{
return
nbonds_
; }
74
void
PseudoBond::nbonds
(
Size
setting ) {
nbonds_
= setting; }
75
76
77
// A PBCollection stores all of the PBs between a pair of residues.
78
// PBs can be added to the collection, and iterated over, but cannot
79
// be modified.
80
PseudoBondCollection::PseudoBondCollection
() {}
81
PseudoBondCollection::~PseudoBondCollection
() {}
82
83
PseudoBondCollectionCOP
84
PseudoBondCollection::clone_with_new_sequence_numbering
(
85
utility::vector1< int >
const
& old2new
86
)
const
87
{
88
PseudoBondCollectionOP
new_pbc =
new
PseudoBondCollection
;
89
for
(
PBIter
pbiter =
iter_begin
(), pbiter_end =
iter_end
();
90
pbiter != pbiter_end; ++pbiter ) {
91
PseudoBond
new_pb( *pbiter );
92
new_pb.
lr
( old2new[ pbiter->lr() ] );
93
new_pb.
ur
( old2new[ pbiter->ur() ] );
94
new_pbc->push_back( new_pb );
95
}
96
return
new_pbc;
97
}
98
99
void
PseudoBondCollection::push_back
(
PseudoBond
const
& pb ) {
100
pseudo_bonds_
.push_back( pb );
101
}
102
103
PseudoBondCollection::PBIter
PseudoBondCollection::iter_begin
()
const
{
104
return
pseudo_bonds_
.begin();
105
}
106
107
PseudoBondCollection::PBIter
PseudoBondCollection::iter_end
()
const
{
108
return
pseudo_bonds_
.end();
109
}
110
111
112
}
// conformation
113
}
// core
Generated on Sat Jun 1 2013 11:32:25 for Rosetta 3.5 by
1.8.4