27 #include <utility/pointer/ReferenceCount.hh>
28 #include <basic/Tracer.hh>
33 static basic::Tracer
TR(
"protocols.moves.DataMap" );
40 if(
has( type, name ) ){
41 TR<<
"A datum of type "<<type<<
" and name "<<name<<
" has been added before. I'm not adding again. This is probably a BIG error but I'm letting it pass!"<<std::endl;
45 data_map_[ type ].insert(std::make_pair( name, op ) );
51 std::map< std::string, std::map< std::string, utility::pointer::ReferenceCountOP > >
::const_iterator it;
55 std::map< std::string, utility::pointer::ReferenceCountOP >::const_iterator it2;
56 it2 = it->second.find( name );
57 if( it2 == it->second.end() )
return false;
62 std::map< std::string, utility::pointer::ReferenceCountOP > &
67 add( type,
"dummy_entry", 0 );
70 std::map< std::string, utility::pointer::ReferenceCountOP > & m(
data_map_.find( type )->second );
72 std::map< std::string, utility::pointer::ReferenceCountOP >::iterator it;
73 it=m.find(
"dummy_entry" );