45 bool contained =
false;
49 if ( itr->second->assocs(
object, associatedElems) ) {
58 associatedElems.reserve( associatedElems.size() +
83 object = (*objectLink);
105 bool contained =
false;
110 if ( itr->second->getAssociations(
object, associatedElementLinks ) )
123 store_type::const_iterator foundIter = mapEnd;
130 if ( &*(*(iMap->first)) == &*(
object) )
142 associatedElementLinks.reserve( associatedElementLinks.size() +
146 for ( ; assoItr != assoItrEnd; ++assoItr )
149 associatedElementLinks.push_back( assoLink );
163 const std::string&
id = assocStore.
dataID();
173 std::vector<DataLink<INav4MomAssocs> > ret;
176 ret.push_back (p.second);
188template <
class T> DataVector_detail::RegisterDVLEltBaseInit<T> DataVector_detail::DVLEltBaseInit<T>::s_regbase;
189template class DataVector_detail::RegisterDVLEltBaseInit<IParticle> DataVector_detail::DVLEltBaseInit<IParticle>::s_regbase;
An STL vector of pointers that by default owns its pointed-to elements.
ElementLink< INavigable4MomentumCollection > INav4MomLink
asso_iterator beginAssociation(const object_type *objectPointer) const
store_type m_associationMap
size_t getNumberOfAssociations(const object_type *objectPointer) const
AssociationVectorIterator asso_iterator
asso_iterator endAssociation(const object_type *objectPointer) const
bool containsObject(const object_type *theObject) const
DataVector adapter that acts like it holds const pointers.
value_type push_back(value_type pElem)
Add an element to the end of the collection.
Object reference supporting deferred reading from StoreGate.
const ID_type & dataID() const
Get the key that we reference, as a string.
ELVIterator< typename RefVector::const_iterator > const_iterator
bool isValid() const
Test to see if the link can be dereferenced.
INav4MomAssocs()
Default constructor:
std::map< std::string, INav4MomAssocsLink_t > m_assocStores
bool assocs(const INavigable4Momentum *object, ConstDataVector< INavigable4MomentumCollection > &assocs) const
Retrieve all the associated-to objects which have been associated to the given.
void addAssocStore(const DataLink< INav4MomAssocs > &assocStore)
Retrieve all the associated-to objects which have been associated to the given.
bool getAssociations(const INav4MomLink &objectLink, INav4MomLinkContainer &associatedElementLinks) const
Retrieve all the associated-to ElementLinks_to_objects which have been associated to the given.
std::vector< DataLink< INav4MomAssocs > > getAssocStores() const
Return links to all other association stores.
INav4MomAssocs & operator=(const INav4MomAssocs &rhs)
Assignment operator: