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