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
scoring
methods
pcs2
PcsGridSearchParameterManager.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
//////////////////////////////////////////////
11
/// @begin
12
///
13
/// @file protocols/scoring/methods/pcs2/PcsGridSearchParameter.cc
14
///
15
/// @brief
16
///
17
/// @detailed
18
///
19
/// @param
20
///
21
/// @return
22
///
23
/// @remarks
24
///
25
/// @references
26
///
27
/// @authorsv Christophe Schmitz
28
///
29
/// @last_modified February 2010
30
////////////////////////////////////////////////
31
32
33
// Unit Headers
34
#include <
protocols/scoring/methods/pcs2/PcsGridSearchParameterManager.hh
>
35
36
// Package Headers
37
//#include <protocols/scoring/methods/pcs2/PcsEnergyParameterManager.hh>
38
//#include <protocols/scoring/methods/pcs2/PcsInputCenterManager.hh>
39
40
// Project Headers
41
#include <basic/Tracer.hh>
42
43
// Utility headers
44
#include <utility/exit.hh>
45
46
// ObjexxFCL Headers
47
48
// C++ headers
49
#include <iostream>
50
51
#include <utility/vector1.hh>
52
53
54
static
basic::Tracer
TR_PcsGridSearchParameterManager
(
"protocols.scoring.methods.pcs.PcsGridSearchParameterManager"
);
55
56
namespace
protocols{
57
namespace
scoring{
58
namespace
methods{
59
namespace
pcs2
{
60
61
62
PcsGridSearchParameterManager::PcsGridSearchParameterManager
(){
63
}
64
65
void
66
PcsGridSearchParameterManager::re_init
(){
67
68
core::Size
n(
grid_s_p_all_
.size());
69
core::Size
i(1);
70
71
72
for
(i = 1; i <= n; ++i){
73
grid_s_p_all_
.pop_back();
74
}
75
std::cerr <<
"CHECKING zz 0 = "
<<
grid_s_p_all_
.size() << std::endl ;
76
77
}
78
79
core::Size
80
PcsGridSearchParameterManager::get_n_multi_data
()
const
{
81
return
(
grid_s_p_all_
.size());
82
}
83
84
void
85
PcsGridSearchParameterManager::incremente_n_multi_data
(){
86
PcsGridSearchParameter
g;
87
grid_s_p_all_
.push_back(g);
88
}
89
90
PcsGridSearchParameter
&
91
PcsGridSearchParameterManager::get_grid_search_parameters
(
core::Size
i_multi_data){
92
93
core::Size
n_multi_data(
get_n_multi_data
());
94
if
( (i_multi_data > n_multi_data) ){
95
TR_PcsGridSearchParameterManager
<<
"Problem in get_grid_search_parameters: i_multi_data = "
<<i_multi_data<<
" and n_multi_data = "
<<n_multi_data << std::endl;
96
utility_exit_with_message(
"There is a coding problem"
);
97
}
98
99
return
(
grid_s_p_all_
[i_multi_data]);
100
}
101
102
PcsGridSearchParameterManager
*
103
PcsGridSearchParameterManager::get_instance
(){
104
if
(
instance_
== 0 ){
105
instance_
=
new
PcsGridSearchParameterManager
();
106
}
107
return
instance_
;
108
}
109
110
PcsGridSearchParameterManager
*
PcsGridSearchParameterManager::instance_
( 0 );
111
112
113
}
//namespace pcs2
114
}
//namespace methods
115
}
//namespace scoring
116
}
//namespace protocols
117
Generated on Sat Jun 1 2013 12:11:31 for Rosetta 3.5 by
1.8.4