Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
16 
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.
33  using std::set;
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 
47 ) {
48  align_set_.insert( aln );
49 }
50 
52  return align_set_.size();
53 }
54 
55 } // comparative_modeling
56 } // protocols