Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
CountPairCrossover4.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/etable/count_pair/CountPairCrossover4.hh
11 /// @brief Count pair for residue pairs where the crossover from
12 /// excluding to counting atom pair interactions is at 4 bonds.
13 /// @author Andrew Leaver-Fay (leaverfa@email.unc.edu)
14 
15 
16 #ifndef INCLUDED_core_scoring_etable_count_pair_CountPairCrossover4_hh
17 #define INCLUDED_core_scoring_etable_count_pair_CountPairCrossover4_hh
18 
20 
21 #include <core/types.hh>
22 
23 
24 namespace core {
25 namespace scoring {
26 namespace etable {
27 namespace count_pair {
28 
30 {
31 public:
32  public:
34 
35 public:
36 
37  virtual ~CountPairCrossover4();
38 
39  ///@brief function used by derived classes and associated classes (like the trie's count pair hierarchy)
40  static
41  inline
42  bool
44  Size const path_distance,
45  Real & weight
46  )
47  {
48  if ( path_distance < 4 ) return false;
49  else if ( path_distance > 4 ) return true;
50 
51  weight = cp_half; return true;
52  }
53 
54 };
55 
56 } // namespace count_pair
57 } // namespace etable
58 } // namespace scoring
59 } // namespace core
60 
61 #endif