Rosetta 3.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
protocols
filters
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
19
#include <
protocols/filters/Filter.hh
>
20
#include <
core/pose/Pose.fwd.hh
>
21
#include <utility/tag/Tag.fwd.hh>
22
#include <
protocols/moves/DataMap.fwd.hh
>
23
#include <
protocols/moves/Mover.fwd.hh
>
24
25
// Unit headers
26
27
namespace
protocols {
28
namespace
filters {
29
30
class
ReplicateFilter
:
public
protocols::filters::Filter
31
{
32
public
:
33
ReplicateFilter
();
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
40
virtual
protocols::filters::FilterOP
clone
()
const
{
41
return
new
ReplicateFilter
( *
this
);
42
}
43
virtual
protocols::filters::FilterOP
fresh_instance
()
const
{
44
return
new
ReplicateFilter
();
45
}
46
47
virtual
~ReplicateFilter
(){};
48
void
parse_my_tag
(
utility::tag::TagPtr
const
tag,
49
protocols::moves::DataMap
&,
50
protocols::filters::Filters_map
const
&,
51
protocols::moves::Movers_map
const
&,
52
core::pose::Pose
const
& );
53
void
subfilter
(
protocols::filters::FilterOP
subfilter) {
subfilter_
=
subfilter
; }
54
void
median
(
bool
median
) {
median_
=
median
; }
55
void
threshold
(
core::Real
threshold
) {
threshold_
=
threshold
; }
56
57
private
:
58
protocols::filters::FilterOP
subfilter_
;
59
core::Size
replicates_
;
60
core::Size
upper_trim_
;
61
core::Size
lower_trim_
;
62
bool
median_
;
63
core::Real
threshold_
;
64
65
};
66
67
}
// filters
68
}
// protocols
69
70
#endif //INCLUDED_protocols_Filters_ReplicateFilter_HH_
71
Generated on Sat Jun 1 2013 11:49:51 for Rosetta 3.5 by
1.8.4