Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
VallFragmentEval.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 core/fragment/picking_old/vall/eval/VallFragmentEval.hh
11 /// @brief base class for Vall ExtentEvaluator
12 /// @author Yih-En Andrew Ban (yab@u.washington.edu)
13 
14 #ifndef INCLUDED_core_fragment_picking_old_vall_eval_VallFragmentEval_hh
15 #define INCLUDED_core_fragment_picking_old_vall_eval_VallFragmentEval_hh
16 
17 // unit headers
19 
20 // package headers
21 // AUTO-REMOVED #include <core/fragment/picking_old/concepts/Extent.hh>
22 // AUTO-REMOVED #include <core/fragment/picking_old/vall/VallLibrary.hh>
25 
26 // utility headers
27 #include <utility/pointer/ReferenceCount.hh>
28 
31 #include <utility/vector1.hh>
32 
33 
34 
35 namespace core {
36 namespace fragment {
37 namespace picking_old {
38 namespace vall {
39 namespace eval {
40 
41 
42 /// @brief base class for Vall ExtentEvaluator
44 
45 
46 private: // typedefs
47 
48 
50 
51 
52 public: // typedefs
53 
54 
56 
57 
58 public: // concept typedefs
59 
60 
61  /// @brief typedef for ExtentEvaluator concept
63 
64 
65  /// @brief typedef for ExtentEvaluator concept
67 
68 
69 public: // concept translation typedefs
70 
71 
73 
74 
75 public: // construct/destruct
76 
77 
78  /// @brief default constructor
80 
81 
82  /// @brief default copy constructor
83  VallFragmentEval( VallFragmentEval const & rval );
84 
85 
86  /// @brief default destructor
87  virtual
89 
90 
91 public: // copy assignment
92 
93 
94  /// @brief copy assignment
96 
97 
98 public: // virtual constructors
99 
100 
101  /// @brief clone this object
102  virtual
103  VallFragmentEvalOP clone() const = 0;
104 
105 
106 public: // operators
107 
108 
109  /// @brief called by VallLibrarian: for a fragment extent, evaluate and store
110  /// results in a VallFragmentScore
111  /// @return true if score should be stored, false otherwise
112  bool operator ()(
113  Extent const & extent,
114  VallFragmentScore & fs
115  );
116 
117 
118 public: // virtual evaluation methods
119 
120 
121  /// @brief do the actual work of fragment evaluation
122  /// @return true if score should be stored, false otherwise
123  virtual
124  bool eval_impl(
125  Extent const & extent,
126  VallFragmentScore & fs
127  ) = 0;
128 
129 
130 public: // additional hooks
131 
132 
133  /// @brief operation to be perform before catalog() starts
134  virtual
135  void pre_catalog_op( VallLibrary const & )
136  {}
137 
138 
139  /// @brief operation to be performed after catalog() finished
140  virtual
141  void post_catalog_op( VallLibrary const & )
142  {}
143 
144 
145 };
146 
147 
148 } // namespace eval
149 } // namespace vall
150 } // namespace picking_old
151 } // namespace fragment
152 } // namespace core
153 
154 
155 #endif /* INCLUDED_core_fragment_picking_old_vall_eval_VallFragmentEval_HH */