Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ContingentFilter.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/ContingentFilter.hh
11 /// @brief A filter that is contingent on some other mover to set its pass/fail value
12 /// @author Sarel Fleishman (sarelf@uw.edu)
13 
14 #ifndef INCLUDED_protocols_filters_ContingentFilter_hh
15 #define INCLUDED_protocols_filters_ContingentFilter_hh
16 
17 
18 // Project Headers
20 #include <core/pose/Pose.fwd.hh>
21 #include <utility/tag/Tag.fwd.hh>
24 
25 #include <utility/vector1.hh>
26 
27 #ifdef WIN32
28  #include <utility/tag/Tag.hh>
29 #endif
30 
31 
32 // Unit headers
33 
34 namespace protocols {
35 namespace filters {
36 
38 {
39 private:
41 public:
42  /// @brief default ctor
44  ///@brief Constructor with a single target residue
45  virtual bool apply( core::pose::Pose const & pose ) const;
46  virtual void report( std::ostream & out, core::pose::Pose const & pose ) const;
47  virtual core::Real report_sm( core::pose::Pose const & pose ) const;
49  return new ContingentFilter( *this );
50  }
52  return new ContingentFilter();
53  }
54 
55  virtual ~ContingentFilter(){};
56  void parse_my_tag( utility::tag::TagPtr const tag,
60  core::pose::Pose const & );
61  virtual void set_value( bool const value );
62  virtual bool get_value() const;
63 private:
64  bool value_; // defaults to false
65 };
66 
67 } // filters
68 } // protocols
69 
70 #endif //INCLUDED_protocols_Filters_ContingentFilter_HH_
71