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
protocols
comparative_modeling
AlignmentSet.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 protocols/comparative_modeling/AlignmentSet.hh
11
/// @brief
12
/// @author James Thompson
13
14
#include <
core/sequence/Sequence.hh
>
15
#include <
core/sequence/SequenceAlignment.hh
>
16
17
#include <
protocols/comparative_modeling/AlignmentSet.hh
>
18
19
#include <set>
20
21
#include <utility/vector1.hh>
22
23
24
namespace
protocols {
25
namespace
comparative_modeling {
26
27
/// @brief Gets the next alignment from the stream. Might be the same
28
/// alignment every time, or might be a different alignment after each
29
/// call to this function.
30
utility::vector1< core::sequence::SequenceAlignment >
31
AlignmentSet::alignments
()
const
{
32
utility::vector1< core::sequence::SequenceAlignment >
alignments_;
33
using
std::set;
34
using
core::sequence::SequenceAlignment
;
35
typedef
set< SequenceAlignment >::const_iterator iter;
36
for
( iter it =
align_set_
.begin(),
end
=
align_set_
.end();
37
it !=
end
; ++it
38
) {
39
SequenceAlignment
copy( *it );
40
alignments_.push_back( copy );
41
}
42
return
alignments_;
43
}
44
45
void
AlignmentSet::insert
(
46
core::sequence::SequenceAlignment
aln
47
) {
48
align_set_
.insert( aln );
49
}
50
51
core::Size
AlignmentSet::size
()
const
{
52
return
align_set_
.size();
53
}
54
55
}
// comparative_modeling
56
}
// protocols
Generated on Sat Jun 1 2013 11:45:24 for Rosetta 3.5 by
1.8.4