Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RangeFilter.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/RangeFilter.hh
11 /// @brief Range filter evaluates if the return value of a particular filter is between a specific range
12 /// @detailed
13 /// @author Javier Castellanos (javiercv@uw.edu)
14 
15 
16 #ifndef INCLUDED_protocols_simple_filters_RangeFilter_hh
17 #define INCLUDED_protocols_simple_filters_RangeFilter_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  RangeFilter();
65 
66  // @brief default constructor
67  RangeFilter(Real lower_bound, Real upper_bound, const FilterOP & filter);
68 
69  // @brief copy constructor
70  RangeFilter( RangeFilter const & rval );
71 
72  virtual ~RangeFilter(){}
73 
74 
75 public:// virtual constructor
76 
77 
78  // @brief make clone
79  virtual filters::FilterOP clone() const { return new RangeFilter( *this ); }
80 
81  // @brief make fresh instance
82  virtual filters::FilterOP fresh_instance() const { return new RangeFilter(); }
83 
84 
85 public:// mutator
86 
87 
88 public:// accessor
89 
90 
91  // @brief get name of this filter
92  virtual std::string name() const { return "RangeFilter"; }
93 
94 
95 
96 public:// parser
97 
98  virtual void parse_my_tag( TagPtr const tag,
99  DataMap &,
100  filters::Filters_map const &,
101  Movers_map const &,
102  Pose const & );
103 
104 
105 public:// virtual main operation
106 
107 
108  // @brief returns true if the given pose passes the filter, false otherwise.
109  // In this case, the test is whether the give pose is the topology we want.
110  virtual bool apply( Pose const & pose ) const;
111 
112  /// @brief used to report score
113  virtual void report( std::ostream & out, Pose const & pose ) const;
114 
115 private:
118 
119 };
120 
121 } // filters
122 } // protocols
123 
124 #endif