Rosetta 3.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
core
fragment
picking_old
vall
gen
LengthGen.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/gen/LengthGen.hh
11
/// @brief default constant length fragment VallExtentGenerator
12
/// @author Yih-En Andrew Ban (yab@u.washington.edu)
13
14
#ifndef INCLUDED_core_fragment_picking_old_vall_gen_LengthGen_hh
15
#define INCLUDED_core_fragment_picking_old_vall_gen_LengthGen_hh
16
17
// unit headers
18
#include <
core/fragment/picking_old/vall/gen/LengthGen.fwd.hh
>
19
#include <
core/fragment/picking_old/vall/gen/VallFragmentGen.hh
>
20
21
#include <utility/vector1.hh>
22
23
24
25
namespace
core {
26
namespace
fragment {
27
namespace
picking_old {
28
namespace
vall {
29
namespace
gen {
30
31
32
/// @brief the default constant length fragment Vall ExtentGenerator
33
/// @remarks assumes that Pages in the Book are stored in a container
34
/// capable of returning a RandomAccessIterator, such as std::vector
35
class
LengthGen
:
public
VallFragmentGen
{
36
37
38
private
:
// typedefs
39
40
41
typedef
VallFragmentGen
Super
;
42
43
44
public
:
// typedefs
45
46
47
typedef
Super::Size
Size
;
48
49
50
public
:
// concept typedefs
51
52
53
/// @brief typedef for ExtentGenerator concept
54
typedef
Super::Extent
Extent
;
55
56
57
/// @brief typedef for ExtentGenerator concept
58
typedef
Super::PageIterator
PageIterator
;
59
60
61
public
:
// concept translation typedefs
62
63
64
typedef
PageIterator
VallResidueIterator
;
65
66
67
public
:
// construct/destruct
68
69
70
/// @brief default constructor
71
LengthGen
();
72
73
74
/// @brief fragment size constructor
75
/// @param[in] frag_size the desired length of the fragment
76
LengthGen
(
Size
const
frag_size );
77
78
79
/// @brief copy constructor
80
LengthGen
(
LengthGen
const
& rval );
81
82
83
/// @brief default destructor
84
virtual
85
~LengthGen
();
86
87
88
public
:
// copy assignment
89
90
91
/// @brief copy assignment
92
LengthGen
&
operator =
(
LengthGen
const
& rval );
93
94
95
public
:
// virtual constructors
96
97
98
/// @brief clone this object
99
virtual
100
VallFragmentGenOP
clone
()
const
;
101
102
103
public
:
// extent generation
104
105
106
/// @brief return the desired fragment extent w/requested fragment size
107
/// @return valid (true) extent if the end of the extent does not go past the
108
/// section_end, invalid (false) extent otherwise
109
/// @remarks we assume VallResidueIterator is a type of RandomAccessIterator, such as
110
/// those used in std::vector
111
virtual
112
Extent
operator ()
(
VallResidueIterator
extent_begin,
VallResidueIterator
section_end )
const
;
113
114
115
private
:
// data
116
117
118
/// @brief the size of desired fragment
119
Size
frag_size_
;
120
121
};
122
123
124
}
// namespace gen
125
}
// namespace vall
126
}
// namespace picking_old
127
}
// namespace fragment
128
}
// namespace core
129
130
#endif
/* INCLUDED_core_fragment_picking_old_vall_gen_LengthGen_HH */
Generated on Sat Jun 1 2013 11:32:38 for Rosetta 3.5 by
1.8.4