#include <AOObase.h>
Inheritance diagram for Atlfast::AOObase:
Public Member Functions | |
AOObase () | |
virtual std::vector< const IAOO * >::const_iterator | begin () const |
iterators for the store. | |
virtual std::vector< const IAOO * >::const_iterator | end () const |
virtual | ~AOObase () |
virtual void | associate (const IAOO *otherEntity) |
store any object with IAOO above it the inheritance heirarchy | |
virtual bool | unAssociated () const |
A quick way to find out whether there are any associations at a ll. | |
virtual void | reset () |
zero the container | |
virtual void | dump (const std::string &) const |
dump out debug info | |
virtual void | accept (IAOOvisitor *) const =0 |
to be implemented by the concrete classes | |
Private Attributes | |
std::vector< const IAOO * > | m_associations |
A container to hold the associations. |
Definition at line 22 of file AOObase.h.
Atlfast::AOObase::~AOObase | ( | ) | [virtual] |
std::vector< const IAOO * >::const_iterator Atlfast::AOObase::begin | ( | ) | const [virtual] |
iterators for the store.
Implements Atlfast::IAOO.
Definition at line 10 of file AOObase.cxx.
00010 { 00011 return m_associations.begin(); 00012 }
std::vector< const IAOO * >::const_iterator Atlfast::AOObase::end | ( | ) | const [virtual] |
Implements Atlfast::IAOO.
Definition at line 14 of file AOObase.cxx.
00014 { 00015 return m_associations.end(); 00016 }
void Atlfast::AOObase::associate | ( | const IAOO * | otherEntity | ) | [virtual] |
store any object with IAOO above it the inheritance heirarchy
Implements Atlfast::IAOO.
Definition at line 18 of file AOObase.cxx.
00018 { 00019 m_associations.push_back( other ) ; 00020 }
virtual bool Atlfast::AOObase::unAssociated | ( | ) | const [inline, virtual] |
A quick way to find out whether there are any associations at a ll.
Implements Atlfast::IAOO.
Definition at line 31 of file AOObase.h.
00031 { return m_associations.empty() ; }
virtual void Atlfast::AOObase::reset | ( | ) | [inline, virtual] |
zero the container
Implements Atlfast::IAOO.
Definition at line 32 of file AOObase.h.
00032 { m_associations.clear();}
void Atlfast::AOObase::dump | ( | const std::string & | ) | const [virtual] |
dump out debug info
Implements Atlfast::IAOO.
Definition at line 22 of file AOObase.cxx.
00022 { 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 }
virtual void Atlfast::IAOO::accept | ( | IAOOvisitor * | ) | const [pure virtual, inherited] |
to be implemented by the concrete classes
Implemented in Atlfast::Cell, Atlfast::Cluster, Atlfast::Jet, Atlfast::KtCluster, Atlfast::ReconstructedParticle, Atlfast::SimpleKinematic, Atlfast::Track, and Atlfast::TwoCptCell.
std::vector<const IAOO*> Atlfast::AOObase::m_associations [private] |