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
scoring
etable
etrie
CountPairDataGeneric.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
//
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 core/scoring/etable/etrie/CountPairDataGeneric.cc
11
/// @brief
12
/// @author Andrew Leaver-Fay (aleaverfay@gmail.com)
13
14
// Unit Headers
15
#include <
core/scoring/etable/etrie/CountPairDataGeneric.hh
>
16
17
// Utility headers
18
// AUTO-REMOVED #include <utility/assert.hh>
19
20
// STL Headers
21
#include <iostream>
22
23
#include <utility/vector1.hh>
24
25
26
27
namespace
core {
28
namespace
scoring {
29
namespace
etable {
30
namespace
etrie {
31
32
GenericResidueConnectionData::GenericResidueConnectionData
() {}
33
34
GenericResidueConnectionData::GenericResidueConnectionData
(
Size
n_connections ) :
35
path_distances_to_connection_points_( n_connections, 0 )
36
{}
37
38
39
void
40
GenericResidueConnectionData::set_dist_to_connect_point
(
41
Size
connpoint,
42
Size
connection_dist
43
)
44
{
45
assert( connpoint > 0 );
46
if
( connpoint >
path_distances_to_connection_points_
.size()) {
47
path_distances_to_connection_points_
.resize( connpoint );
48
}
49
path_distances_to_connection_points_
[ connpoint ] = connection_dist;
50
}
51
52
53
void
CountPairDataGeneric::set_dist_to_connect_point
(
54
Size
entry,
55
Size
connpoint,
56
Size
connection_dist
57
)
58
{
59
assert( entry > 0);
60
if
( entry >
residue_connection_data_
.size() ) {
61
residue_connection_data_
.resize(entry);
62
}
63
residue_connection_data_
[ entry ].set_dist_to_connect_point( connpoint, connection_dist );
64
}
65
66
CountPairDataGeneric::CountPairDataGeneric
(): residue_connection_data_(4)
67
{
68
//std::cout << "Constructed Count Pair Data Generic " << std::endl;
69
}
70
71
void
CountPairDataGeneric::print
( std::ostream & os )
const
72
{
73
os <<
"CountPairDataGeneric, "
<<
residue_connection_data_
.size() <<
" conections:\n"
;
74
for
(
Size
ii = 1; ii <=
residue_connection_data_
.size(); ++ii ) {
75
os << ii <<
" :"
;
76
for
(
Size
jj = 1; jj <=
residue_connection_data_
[ ii ].size(); ++jj ) {
77
os <<
" "
<<
residue_connection_data_
[ ii ][ jj ];
78
}
79
os <<
"\n"
;
80
}
81
}
82
83
84
/*void
85
CountPairDataGeneric::set_count_pair_data_to_use(
86
Size connection_id
87
) const
88
{
89
assert( connection_id > 0 && connection_id <= residue_connection_data_.size());
90
data_at_hand_ = &residue_connection_data_[ connection_id ];
91
}
92
*/
93
94
std::ostream &
operator <<
( std::ostream & os,
CountPairDataGeneric
const
& cpdat )
95
{
96
cpdat.
print
( os );
97
return
os;
98
}
99
100
101
}
// namespace etrie
102
}
// namespace etable
103
}
// namespace scoring
104
}
// namespace core
105
Generated on Sat Jun 1 2013 11:36:49 for Rosetta 3.5 by
1.8.4