Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
InterfaceNeighborDefinitionCalculator.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
11 /// @brief
12 /// @author John Karanicolas
13 
14 
15 #ifndef INCLUDED_core_pose_metrics_simple_calculators_InterfaceNeighborDefinitionCalculator_HH
16 #define INCLUDED_core_pose_metrics_simple_calculators_InterfaceNeighborDefinitionCalculator_HH
17 
19 #include <core/pose/Pose.fwd.hh>
20 #include <core/types.hh>
21 #include <basic/MetricValue.fwd.hh>
22 
23 // AUTO-REMOVED #include <utility/vector1.hh>
24 
25 #include <set>
26 
27 #include <utility/vector1.hh>
28 
29 
30 namespace core{
31 namespace pose {
32 namespace metrics {
33 namespace simple_calculators {
34 
36 
37 public:
38 
39  InterfaceNeighborDefinitionCalculator( core::Size const chain1_number, core::Size const chain2_number ) :
40  InterfaceDefinitionCalculator(chain1_number, chain2_number) {}
41 
42  InterfaceNeighborDefinitionCalculator( char const chain1_letter, char const chain2_letter ) :
43  InterfaceDefinitionCalculator(chain1_letter, chain2_letter) {}
44 
47 
48 protected:
49 
50  virtual void lookup( std::string const & key, basic::MetricValueBase * valptr ) const;
51  virtual std::string print( std::string const & key ) const;
52  virtual void recompute( core::pose::Pose const & this_pose );
53 
54 private:
55 
56  std::pair < utility::vector1<core::Size>, utility::vector1<core::Size> > list_interface_;
57  std::set< core::Size > interface_residues_;
58  std::set< core::Size > chain1_interface_residues_;
59  std::set< core::Size > chain2_interface_residues_;
63 
64 };
65 
66 
67 } // namespace simple_calculators
68 } // namespace metrics
69 } // namespace pose
70 } // namespace core
71 
72 #endif //INCLUDED_core_pose_metrics_simple_calculators_InterfaceNeighborDefinitionCalculator_HH