|
ATLAS Offline Software
|
Go to the documentation of this file.
7 #ifndef NAVIGATIONTOKEN_H
8 #define NAVIGATIONTOKEN_H
32 #include <unordered_map>
42 :
public std::bidirectional_iterator_tag
46 template <
typename CHILD,
58 std::equal_to<const_child_ptr>,
60 std::pair<const const_child_ptr, CHILDPAR> >
125 return (*m_actual).first;
129 return (*m_actual).first;
133 if ( theIndex >=
m_store->size() )
return 0;
135 unsigned int indexCtr = 0;
136 while ( indexCtr != theIndex )
140 return (*m_actual).first;
144 return (*m_actual).second;
169 size_t size_hint = 10,
179 size_t size_hint = 0,
190 size_t size_hint = 0,
267 const std::any& theWeight);
277 if (
this != &anotherToken && anotherToken.
m_data != 0 )
290 if (
this != &anotherToken && anotherToken.m_data != 0 )
292 m_data = std::move (anotherToken.m_data);
JetConstituentVector::iterator iterator
char data[hepevt_bytes_allocation_ATLAS]
tokenConstIterator firstMappedObject()
CHILDPAR getParameter(const_iterator &anIter) const
NavigationToken & operator=(const NavigationToken &anotherToken)
std::ptrdiff_t difference_type
NavigationToken(INavigationSelector< CHILD, CHILDPAR > *thisSelector, INavigationCondition *thisCondition, size_t size_hint=0, const HASH &hf=HASH())
tokenStore::const_iterator tokenConstIterator
const CHILD * const_child_ptr
const tokenStore * m_store
NavigationToken(INavigationSelector< CHILD, CHILDPAR > *thisSelector, size_t size_hint=10, const HASH &hf=HASH())
bool operator!=(NavigationTokenIterator &anOtherToken)
NavigationTokenIterator operator++()
tokenConstIterator m_actual
NavigationTokenIterator(const tokenStore &aStore)
NavigationTokenIterator()
STL-style allocator wrapper for ArenaPoolAllocator.
tokenStore::iterator tokenIterator
Allow overriding the default hash function used within NavigationToken.
virtual bool trySetObject(const INavigable *theObject, const std::any &theWeight)
virtual ~NavigationToken()
bool operator==(const NavigationTokenIterator &anOtherIterator) const
NavigationTokenIterator end()
const_child_ptr operator[](unsigned int theIndex) const
bool operator!=(const NavigationTokenIterator &anOtherIterator) const
bool operator==(NavigationTokenIterator &anOtherToken)
NavigationTokenIterator operator++(int)
virtual bool trySetObject(const INavigable *theObject)
void setObject(const_child_ptr data)
const_iterator begin() const
NavigationTokenIterator operator--()
void setObject(const CHILD &, const CHILDPAR &)
INavigationSelector< CHILD, CHILDPAR > * m_navSelector
INavigationCondition * m_navCondition
const_child_ptr operator*() const
virtual bool pushQuery(const INavigable &parent, const INavigable &child)
NavigationToken(INavigationCondition *thisCondition, size_t size_hint=0, const HASH &hf=HASH())
const_iterator end() const
bool contains(const_child_ptr data)
const_child_ptr operator->() const
const std::type_info * m_lastReject
void setObject(const CHILD &)
tokenConstIterator lastMappedObject()
STL-style allocator wrapper for ArenaPoolAllocator.
NavigationTokenIterator const_iterator
const tokenStore & objectMap()
NavigationTokenIterator begin()
NavigationToken & operator=(NavigationToken &&anotherToken)
NavigationToken(size_t size_hint=10)
std::unordered_map< const_child_ptr, CHILDPAR, HASH, std::equal_to< const_child_ptr >, SG::ArenaPoolSTLAllocator< std::pair< const const_child_ptr, CHILDPAR > > > tokenStore
CHILDPAR getParameter(const_child_ptr data) const
NavigationTokenIterator operator--(int)
const tokenParameter & getParameter() const
void setObject(const_child_ptr data, CHILDPAR weight)