Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PackingScore.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 core/scoring/packstat/PackingScore.hh
11 ///
12 /// @brief
13 /// @author will sheffler
14 
15 
16 #ifndef INCLUDED_core_scoring_packstat_PackingScore_hh
17 #define INCLUDED_core_scoring_packstat_PackingScore_hh
18 
19 // AUTO-REMOVED #include <core/scoring/packstat/types.hh>
20 // AUTO-REMOVED #include "numeric/xyzVector.hh"
21 // AUTO-REMOVED #include "utility/vector1.hh"
22 
23 #include <core/types.hh>
24 #include <utility/pointer/ReferenceCount.hh>
25 #include <utility/pointer/owning_ptr.hh>
26 
27 #include <utility/vector1_bool.hh>
28 
29 
30 namespace core {
31 namespace scoring {
32 namespace packstat {
33 
34 
36  PackingScoreResData( Size nrad, Size npr ) : nrad_(nrad), npr_(npr), msa_(nrad*npr,0.0) {}
37  Size npr() const { return npr_; }
38  Size nrad() const { return nrad_; }
39  core::Real & msa( Size rad, Size pr ) { return msa_[ (rad-1)*npr_ + pr ]; }
40  core::Real const & msa( Size rad, Size pr ) const { return msa_[ (rad-1)*npr_ + pr ]; }
41 private:
42  Size const nrad_,npr_;
44 };
45 std::ostream & operator<< ( std::ostream & out, PackingScoreResData const & dat );
48 
50  PackingScore( Size nrad, Size npr, bool /*compprob = false*/ ) :
51  nrad_(nrad), npr_(npr), weights_(nrad*npr,0.0), centers_(nrad*npr,0.0), compprob_( false /*compprob_*/ ) {}
52  Size npr() const { return npr_; }
53  Size nrad() const { return nrad_; }
54  core::Real & weight( Size rad, Size pr ) { return weights_[ (rad-1)*npr_ + pr ]; }
55  core::Real const & weight( Size rad, Size pr ) const { return weights_[ (rad-1)*npr_ + pr ]; }
56  core::Real & center( Size rad, Size pr ) { return centers_[ (rad-1)*npr_ + pr ]; }
57  core::Real const & center( Size rad, Size pr ) const { return centers_[ (rad-1)*npr_ + pr ]; }
58  core::Real & rho( ) { return rho_; }
59  core::Real const & rho( ) const { return rho_; }
60  core::Real & probA( ) { return probA_; }
61  core::Real const & probA( ) const { return probA_; }
62  core::Real & probB( ) { return probB_; }
63  core::Real const & probB( ) const { return probB_; }
64  bool & compprob( ) { return compprob_; }
65  bool const & compprob( ) const { return compprob_; }
68 private:
69  Size const nrad_,npr_;
72  bool compprob_;
73 };
74 
77 
78 
79 } // namespace packstat
80 } // namespace scoring
81 } // namespace core
82 
83 
84 
85 
86 #endif