Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ClaimerMessage.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
18 // AUTO-REMOVED #include <protocols/topology_broker/TopologyBroker.hh>
20 
21 #include <iostream>
22 
23 #include <utility/vector1.hh>
24 
25 
26 namespace protocols {
27 namespace topology_broker {
28 
29 ClaimerMessage::ClaimerMessage() : label_( "NoAddress" ) {}
30 ClaimerMessage::ClaimerMessage( std::string label ) : label_( label ) {}
31 
33 
34 
35 
36 extern std::ostream& operator << ( std::ostream& os, ClaimerMessage const& cm ) {
37  os << "ClaimerMessage type: " << cm.type() << " received by:\n ";
38  for ( ClaimerMessage::TopologyClaimerCAPs::const_iterator it = cm.received_by_.begin(); it != cm.received_by_.end(); ++it ) {
39  os << " " << (*it)->label() << " of type " << (*it)->type() << "\n";
40  }
41  cm.show( os );
42  return os;
43 }
44 
46  received_by_.push_back( me );
47 }
48 
51  return received_by_.size();
52 }
53 
55  return nr_recepients() > 0;
56 }
57 
60 
61 
62 } //topology_broker
63 } //protocols