Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
VallFragmentEval.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 //
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 core/fragment/picking_old/vall/eval/VallFragmentEval.cc
11 /// @brief base class for Vall ExtentEvaluator
12 /// @author Yih-En Andrew Ban (yab@u.washington.edu)
13 
14 // unit headers
16 
17 // package headers
19 
21 #include <utility/vector1.hh>
22 
23 
24 
25 namespace core {
26 namespace fragment {
27 namespace picking_old {
28 namespace vall {
29 namespace eval {
30 
31 
32 /// @brief default constructor
34  Super()
35 {}
36 
37 
38 /// @brief default copy constructor
40  Super( rval )
41 {}
42 
43 
44 /// @brief default destructor
46 {}
47 
48 
49 /// @brief copy assignment
51  if ( this != &rval ) {
52  Super::operator =( rval );
53  }
54  return *this;
55 }
56 
57 
58 /// @brief called by VallLibrarian: for a fragment extent, evaluate and store
59 /// results in a VallFragmentScore
60 /// @return true if score should be stored, false otherwise
62  Extent const & extent,
64 )
65 {
66  // store part of the extent data
67  fs.extent_begin = extent.begin;
68  fs.extent_end = extent.end;
69 
70  // evaluate the extent
71  return eval_impl( extent, fs );
72 }
73 
74 
75 } // namespace eval
76 } // namespace vall
77 } // namespace picking_old
78 } // namespace fragment
79 } // namespace core