Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ExtentEvaluator.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/fragments/picking_old/concepts/ExtentEvaluator.fwd.hh
11 /// @brief class demonstrating ExtentEvaluator concept
12 /// @author Yih-En Andrew Ban (yab@u.washington.edu)
13 
14 #ifndef INCLUDED_core_fragment_picking_old_concepts_ExtentEvaluator_hh
15 #define INCLUDED_core_fragment_picking_old_concepts_ExtentEvaluator_hh
16 
17 
18 // unit headers
20 
21 
22 namespace core {
23 namespace fragment {
24 namespace picking_old {
25 namespace concepts {
26 
27 
28 /// @brief class demonstrating ExtentEvaluator concept
29 /// @remarks For demonstration only, do not derive from this class!
30 template< typename Bookmark, typename Ext >
31 class ExtentEvaluator {
32 
33 
34 public:
35 
36 
37  typedef Ext Extent;
38 
39 
40  /// @brief evaluate an extent of pages
41  /// @param[in] extent_begin iterator pointing to the beginning of the Page extent
42  /// @param[in] extent_end iterator pointing past the end of the Page extent
43  /// @param[out] mark Bookmark that will have evaluation information filled in
44  /// @return true if extent is allowed and has been scored, otherwise false
45  /// @remarks implement this to get custom extent evaluation and exclusion behavior
46  virtual
47  bool operator ()( Extent const & extent, Bookmark & mark );
48 
49 
50  /// @brief clone this object
51  virtual
53 
54 
55 };
56 
57 
58 } // concepts
59 } // picking_old
60 } // fragment
61 } // core
62 
63 
64 #endif /* INCLUDED_core_fragments_picking_old_concepts_ExtentEvaluator_HH */