00001 #include "AtlfastEvent/AOObase.h" 00002 #include "AtlfastEvent/AtlfastDumperObject.h" 00003 #include <iostream> 00004 #include <iomanip> 00005 #include <algorithm> 00006 00007 namespace Atlfast{ 00008 AOObase::~AOObase(){} 00010 std::vector<const IAOO*>::const_iterator AOObase::begin() const{ 00011 return m_associations.begin(); 00012 } 00014 std::vector<const IAOO*>::const_iterator AOObase::end() const { 00015 return m_associations.end(); 00016 } 00018 void AOObase::associate(const IAOO* other ){ 00019 m_associations.push_back( other ) ; 00020 } 00022 void AOObase::dump(const std::string& s) const{ 00023 std::cout<<'\n'<<s<<"Associations: " 00024 <<std::setw(6)<<m_associations.size() 00025 <<std::string(53,' ') 00026 <<"AOObase"<<std::endl; 00027 //std::for_each(m_associations.begin(), 00028 // m_associations.end(), 00029 // AtlfastDumperObject("Associations", " ") 00030 // ); 00031 } 00032 00033 00034 }//namespace 00035 00036 00037 00038 00039 00040 00041 00042