Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Bookmark.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/concepts/Bookmark.hh
11 /// @brief struct demonstrating Bookmark concept
12 /// @author Yih-En Andrew Ban (yab@u.washington.edu)
13 
14 #ifndef INCLUDED_core_fragment_picking_old_concepts_Bookmark_hh
15 #define INCLUDED_core_fragment_picking_old_concepts_Bookmark_hh
16 
17 // unit headers
19 
20 
21 namespace core {
22 namespace fragment {
23 namespace picking_old {
24 namespace concepts {
25 
26 
27 /// @brief struct demonstrating Bookmark concept
28 /// @remarks For demonstration only, do not derive from this struct.
29 template< typename PageConstIterator >
30 struct Bookmark {
31 
32 
33 public: // comparator
34 
35 
36  /// @brief '<' comparison
37  bool operator <( Bookmark const & rval ) const;
38 
39 
40 public: // data
41 
42 
43  /// @brief points to the beginning of the fragment
44  PageConstIterator extent_begin;
45 
46 
47  /// @brief points just beyond the end of the fragment
48  PageConstIterator extent_end;
49 
50 
51 };
52 
53 
54 } // concepts
55 } // picking_old
56 } // fragment
57 } // core
58 
59 
60 #endif /* INCLUDED_core_fragment_picking_old_concepts_Bookmark_HH */