Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HolesFilter.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 ./src/protocols/simple_filters/HolesFilter.hh
11 /// @brief header file for HolesFilter class.
12 /// @detailed
13 /// @author Nobuyasu Koga ( nobuyasu@uw.edu )
14 
15 
16 #ifndef INCLUDED_protocols_simple_filters_HolesFilter_hh
17 #define INCLUDED_protocols_simple_filters_HolesFilter_hh
18 
19 // Unit Headers
21 
22 // Package Headers
24 
25 // Project Headers
26 #include <core/pose/Pose.fwd.hh>
27 
28 // Utility headers
29 
30 // Parser headers
34 #include <utility/tag/Tag.fwd.hh>
35 
36 #include <utility/vector1.hh>
37 
38 
39 //// C++ headers
40 
41 namespace protocols {
42 namespace simple_filters {
43 
45 public:
46 
50  typedef core::Real Real;
53 
58 
59 
60 public:// constructor/destructor
61 
62 
63  // @brief default constructor
64  HolesFilter();
65 
66  // @brief constructor with arguments
67  //HolesFilter( Real const & ss );
68 
69  // @brief copy constructor
70  HolesFilter( HolesFilter const & rval );
71 
72  virtual ~HolesFilter(){}
73 
74 
75 public:// virtual constructor
76 
77 
78  // @brief make clone
79  virtual filters::FilterOP clone() const { return new HolesFilter( *this ); }
80 
81  // @brief make fresh instance
82  virtual filters::FilterOP fresh_instance() const { return new HolesFilter(); }
83 
84 
85 public:// mutator
86 
87 
88  // @brief
89  void filtered_value( Real const & ss );
90 
91 
92 public:// accessor
93 
94 
95  // @brief get name of this filter
96  virtual std::string name() const { return "HolesFilter"; }
97 
98 
99 
100 public:// parser
101 
102  virtual void parse_my_tag( TagPtr const tag,
103  DataMap &,
104  filters::Filters_map const &,
105  Movers_map const &,
106  Pose const & );
107 
108 
109 public:// virtual main operation
110 
111 
112  // @brief returns true if the given pose passes the filter, false otherwise.
113  // In this case, the test is whether the give pose is the topology we want.
114  virtual bool apply( Pose const & pose ) const;
115 
116  /// @brief
117  virtual Real report_sm( Pose const & pose ) const;
118 
119  /// @brief used to report score
120  virtual void report( std::ostream & out, Pose const & pose ) const;
121 
122  /// @brief
123  Real compute( Pose const & pose ) const;
124 
125 
126 private:
127 
128 
130 
132 
133 
134 };
135 
136 } // filters
137 } // protocols
138 
139 #endif