Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
21 
22 // Package headers
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 
36  : MatchProcessor()
37 {}
38 
40 
41 void
43 {
45 }
46 
47 void
49 {
51 }
52 
53 void
55  match const & m
56 )
57 {
59  if( !this->passes_filters( m ) ) return;
60 
61  if ( writer_ ) {
62  writer_->record_match( m );
63  }
64 }
65 
66 
67 void
69  match_dspos1 const & m
70 )
71 {
73  if( !this->passes_filters( m ) ) return;
74 
75  if ( writer_ ) {
76  writer_->record_match( m );
77  }
78 }
79 
80 }
81 }
82 }