Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
NeighborTypeFilter.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 protocols/simple_filters/NeighborTypeFilter.hh
11 /// @brief definition of filter class InterfaceSasaFilter.
12 /// @author Sarel Fleishman (sarelf@u.washington.edu), Jacob Corn (jecorn@u.washington.edu)
13 
14 #ifndef INCLUDED_protocols_simple_filters_NeighborTypeFilter_hh
15 #define INCLUDED_protocols_simple_filters_NeighborTypeFilter_hh
16 
18 
19 #include <core/pose/Pose.fwd.hh>
20 #include <core/types.hh>
22 #include <utility/tag/Tag.fwd.hh>
25 #include <utility/vector1.hh>
26 
27 
28 namespace protocols {
29 namespace simple_filters {
30 
32 {
33 public:
34  NeighborTypeFilter() : filters::Filter( "NeighborType" ){};
35  NeighborTypeFilter( core::Size const target_residue, utility::vector1< bool > const residue_types, core::Real const distance_threshold ) :
36  filters::Filter( "NeighborType" ) {
37  target_residue_ = target_residue; residue_types_ = residue_types; distance_threshold_ = distance_threshold;
38  }
39  bool apply( core::pose::Pose const & pose ) const;
40  void report( std::ostream & out, core::pose::Pose const & pose ) const;
41  core::Real report_sm( core::pose::Pose const & pose ) const;
42  std::vector< core::Size > compute( core::pose::Pose const & pose ) const;
44  return new NeighborTypeFilter( *this );
45  }
47  return new NeighborTypeFilter();
48  }
49  void clear() { residue_types_.clear(); }
50  virtual ~NeighborTypeFilter();
52 private:
56 };
57 
58 }
59 }
60 
61 #endif
62