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
simple_filters
ExpiryFilter.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 protocols/simple_filters/ExpiryFilter.hh
11
/// @brief Simple filter that tests whether a file exists. Useful to test whether we're recovering from a checkpoint
12
/// @author Sarel Fleishman
13
14
#ifndef INCLUDED_protocols_simple_filters_ExpiryFilter_hh
15
#define INCLUDED_protocols_simple_filters_ExpiryFilter_hh
16
17
//unit headers
18
#include <
protocols/simple_filters/ExpiryFilter.fwd.hh
>
19
20
// Project Headers
21
#include <
core/scoring/ScoreFunction.hh
>
22
#include <
core/types.hh
>
23
#include <
protocols/filters/Filter.hh
>
24
#include <
core/pose/Pose.fwd.hh
>
25
#include <
protocols/moves/DataMap.fwd.hh
>
26
#include <
protocols/moves/Mover.fwd.hh
>
27
28
namespace
protocols {
29
namespace
simple_filters {
30
31
class
ExpiryFilter
:
public
filters::Filter
32
{
33
public
:
34
//default ctor
35
ExpiryFilter
();
36
bool
apply
(
core::pose::Pose
const
& pose )
const
;
37
filters::FilterOP
clone
()
const
{
38
return
new
ExpiryFilter
( *
this
);
39
}
40
filters::FilterOP
fresh_instance
()
const
{
41
return
new
ExpiryFilter
();
42
}
43
44
void
report
( std::ostream & out,
core::pose::Pose
const
& pose )
const
;
45
core::Real
report_sm
(
core::pose::Pose
const
& pose )
const
;
46
core::Real
compute
(
core::pose::Pose
const
&pose )
const
;
47
virtual
~ExpiryFilter
();
48
void
parse_my_tag
(
utility::tag::TagPtr
const
tag,
protocols::moves::DataMap
&,
protocols::filters::Filters_map
const
&,
protocols::moves::Movers_map
const
&,
core::pose::Pose
const
& );
49
50
core::Size
seconds
()
const
;
51
void
seconds
(
core::Size
const
s );
52
core::Size
start_time
()
const
;
// the time at start
53
private
:
54
core::Size
seconds_
;
55
core::Size
start_time_
;
56
};
57
58
}
59
}
60
61
#endif
Generated on Sat Jun 1 2013 12:13:24 for Rosetta 3.5 by
1.8.4