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