Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
trie_vs_path.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/trie/trie_vs_trie.hh
11 /// @brief
12 /// @author Andrew Leaver-Fay (aleaverfay@gmail.com)
13 
14 #ifndef INCLUDED_core_pack_packer_trie_trie_vs_trie_HH
15 #define INCLUDED_core_pack_packer_trie_trie_vs_trie_HH
16 
17 // Unit Headers
19 
20 // Project Headers
21 #include <core/types.hh>
22 
23 // STL Headers
24 
25 // Utility Headers
26 
27 namespace core {
28 namespace scoring {
29 namespace trie {
30 
31 void
33  utility::vector1< Size > const & total_rotamers_2_unique_rotamers,
34  utility::vector1< core::PackerEnergy > & pair_energy_vector,
35  utility::vector1< Energy > const & temp_vector
36 )
37 {
38  Size const nrots1 = total_rotamers_2_unique_rotamers.size();
39 
40  for ( Size ii = 1; ii <= nrots1; ++ii ) {
41  Size const ii_inorder = total_rotamers_2_unique_rotamers[ ii ];
42  pair_energy_vector[ ii ] = temp_vector[ ii_inorder ];
43  }
44  //std::cout << "finished converting inorder vector" << std::endl;
45 }
46 
47 } // namespace trie
48 } // namespace scoring
49 } // namespace core
50 
51 
52 #endif