Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DofClaim.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 TopologyBroker
11 /// @brief top-class (Organizer) of the TopologyBroker mechanism
12 /// @detailed responsibilities:
13 /// @author Oliver Lange
14 
15 // Unit Headers
17 
18 // Package Headers
19 #include <protocols/topology_broker/TopologyClaimer.hh> //for printing
20 
21 // Project Headers
22 
23 // ObjexxFCL Headers
24 
25 // Utility headers
26 //#include <utility/io/izstream.hh>
27 //#include <utility/io/ozstream.hh>
28 //#include <utility/io/util.hh>
29 #include <basic/Tracer.hh>
30 //#include <basic/options/option.hh>
31 
32 //// C++ headers
33 #include <iostream>
34 
35 #include <utility/vector1.hh>
36 
37 
38 //#include <fstream>
39 
40 // option key includes
41 
42 
43 static basic::Tracer tr("protocols.topo_broker",basic::t_info);
44 
45 namespace protocols {
46 namespace topology_broker {
47 
48 /// @details Auto-generated virtual destructor
50 
51 using namespace core;
52 
53 void DofClaim::show( std::ostream& os ) const {
54  os << "DofClaim-" << str_type() << " owned by a " << owner()->type() << " at pos";
55  for ( Size i = 1; i<=size(); ++i ) { os << " " << pos(i);}
56 }
57 
58 extern std::ostream& operator<<( std::ostream& os, DofClaim const& dof ) {
59  dof.show( os );
60  return os;
61 }
62 
63 extern std::ostream& operator<<( std::ostream& os, DofClaims const& dofs ) {
64  for ( DofClaims::const_iterator it = dofs.begin(); it != dofs.end(); ++it ) {
65  if ( *it ) {
66  os << **it << "\n";
67  } else {
68  os << "No-Claim\n";
69  }
70  }
71  return os;
72 }
73 
74 } //topology_broker
75 } //protocols