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
match
output
MatchOutputter.cc
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
// :noTabs=false:tabSize=4:indentSize=4:
4
//
5
// (c) Copyright Rosetta Commons Member Institutions.
6
// (c) This file is part of the Rosetta software suite and is made available under license.
7
// (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
8
// (c) For more information, see http://www.rosettacommons.org. Questions about this can be
9
// (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
10
11
/// @file protocols/match/output/MatchOutputter.cc
12
/// @brief Implementation of class to write output matches that pass filters
13
/// This class does not "look ahead" to future matches to decide whether the current match
14
/// to process should be output, however, filters are able to keep a history of what they've
15
/// output so far.
16
/// @author Alex Zanghellini (zanghell@u.washington.edu)
17
/// @author Andrew Leaver-Fay (aleaverfay@gmail.com), porting to mini
18
19
// Unit headers
20
#include <
protocols/match/output/MatchOutputter.hh
>
21
22
// Package headers
23
#include <
protocols/match/output/MatchProcessor.hh
>
24
#include <
protocols/match/output/OutputWriter.hh
>
25
26
// Utility headers
27
#include <utility/pointer/ReferenceCount.hh>
28
29
// C++ headers
30
31
namespace
protocols {
32
namespace
match
{
33
namespace
output {
34
35
MatchOutputter::MatchOutputter
()
36
:
MatchProcessor
()
37
{}
38
39
MatchOutputter::~MatchOutputter
() {}
40
41
void
42
MatchOutputter::begin_processing
()
43
{
44
MatchProcessor::begin_processing
();
45
}
46
47
void
48
MatchOutputter::end_processing
()
49
{
50
MatchProcessor::end_processing
();
51
}
52
53
void
54
MatchOutputter::process_match
(
55
match
const
& m
56
)
57
{
58
note_match_processed
();
59
if
( !this->
passes_filters
( m ) )
return
;
60
61
if
(
writer_
) {
62
writer_
->record_match( m );
63
}
64
}
65
66
67
void
68
MatchOutputter::process_match
(
69
match_dspos1
const
& m
70
)
71
{
72
note_match_processed
();
73
if
( !this->
passes_filters
( m ) )
return
;
74
75
if
(
writer_
) {
76
writer_
->record_match( m );
77
}
78
}
79
80
}
81
}
82
}
Generated on Sat Jun 1 2013 11:59:41 for Rosetta 3.5 by
1.8.4