Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ReplicateFilter.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 sw=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/filters/ReplicateFilter.hh
11 /// @brief Repeat a subfilter multiple times, and pass a value based on the aggregate results
12 /// @author Rocco Moretti (rmoretti@u.washington.edu)
13 
14 #ifndef INCLUDED_protocols_filters_ReplicateFilter_hh
15 #define INCLUDED_protocols_filters_ReplicateFilter_hh
16 
17 
18 // Project Headers
20 #include <core/pose/Pose.fwd.hh>
21 #include <utility/tag/Tag.fwd.hh>
24 
25 // Unit headers
26 
27 namespace protocols {
28 namespace filters {
29 
31 {
32 public:
34  ReplicateFilter(protocols::filters::FilterOP subfilter, core::Size replicates=1, core::Size upper_trim=0, core::Size lower_trim=0);
35  virtual bool apply( core::pose::Pose const & pose ) const;
36  virtual void report( std::ostream & out, core::pose::Pose const & pose ) const;
37  virtual core::Real report_sm( core::pose::Pose const & pose ) const;
38  core::Real compute( core::pose::Pose const & pose ) const;
39 
41  return new ReplicateFilter( *this );
42  }
44  return new ReplicateFilter();
45  }
46 
47  virtual ~ReplicateFilter(){};
48  void parse_my_tag( utility::tag::TagPtr const tag,
52  core::pose::Pose const & );
54  void median(bool median) { median_ = median; }
56 
57 private:
62  bool median_;
64 
65 };
66 
67 } // filters
68 } // protocols
69 
70 #endif //INCLUDED_protocols_Filters_ReplicateFilter_HH_
71