ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
NavigationToken< CHILD, CHILDPAR, HASH >::NavigationTokenIterator Class Reference

#include <NavigationToken.h>

Collaboration diagram for NavigationToken< CHILD, CHILDPAR, HASH >::NavigationTokenIterator:

Public Types

using iterator_category = NavigationTokenIteratorTag
 
using value_type = const_child_ptr
 
using difference_type = std::ptrdiff_t
 
using pointer = value_type *
 
using reference = value_type &
 
typedef CHILDPAR tokenParameter
 

Public Member Functions

 NavigationTokenIterator ()
 
 NavigationTokenIterator (const tokenStore &aStore)
 
NavigationTokenIterator begin ()
 
NavigationTokenIterator end ()
 
NavigationTokenIterator operator++ ()
 
NavigationTokenIterator operator++ (int)
 
NavigationTokenIterator operator-- ()
 
NavigationTokenIterator operator-- (int)
 
bool operator== (NavigationTokenIterator &anOtherToken)
 
bool operator== (const NavigationTokenIterator &anOtherIterator) const
 
bool operator!= (NavigationTokenIterator &anOtherToken)
 
bool operator!= (const NavigationTokenIterator &anOtherIterator) const
 
const_child_ptr operator* () const
 
const_child_ptr operator-> () const
 
const_child_ptr operator[] (unsigned int theIndex) const
 
const tokenParametergetParameter () const
 

Private Attributes

const tokenStorem_store
 
tokenConstIterator m_actual
 

Detailed Description

template<typename CHILD, typename CHILDPAR = NavigationDefaults::DefaultWeight, typename HASH = NavigationTokenHash<CHILD>>
class NavigationToken< CHILD, CHILDPAR, HASH >::NavigationTokenIterator

Definition at line 71 of file NavigationToken.h.

Member Typedef Documentation

◆ difference_type

template<typename CHILD , typename CHILDPAR = NavigationDefaults::DefaultWeight, typename HASH = NavigationTokenHash<CHILD>>
using NavigationToken< CHILD, CHILDPAR, HASH >::NavigationTokenIterator::difference_type = std::ptrdiff_t

Definition at line 77 of file NavigationToken.h.

◆ iterator_category

template<typename CHILD , typename CHILDPAR = NavigationDefaults::DefaultWeight, typename HASH = NavigationTokenHash<CHILD>>
using NavigationToken< CHILD, CHILDPAR, HASH >::NavigationTokenIterator::iterator_category = NavigationTokenIteratorTag

Definition at line 75 of file NavigationToken.h.

◆ pointer

template<typename CHILD , typename CHILDPAR = NavigationDefaults::DefaultWeight, typename HASH = NavigationTokenHash<CHILD>>
using NavigationToken< CHILD, CHILDPAR, HASH >::NavigationTokenIterator::pointer = value_type*

Definition at line 78 of file NavigationToken.h.

◆ reference

template<typename CHILD , typename CHILDPAR = NavigationDefaults::DefaultWeight, typename HASH = NavigationTokenHash<CHILD>>
using NavigationToken< CHILD, CHILDPAR, HASH >::NavigationTokenIterator::reference = value_type&

Definition at line 79 of file NavigationToken.h.

◆ tokenParameter

template<typename CHILD , typename CHILDPAR = NavigationDefaults::DefaultWeight, typename HASH = NavigationTokenHash<CHILD>>
typedef CHILDPAR NavigationToken< CHILD, CHILDPAR, HASH >::NavigationTokenIterator::tokenParameter

Definition at line 81 of file NavigationToken.h.

◆ value_type

template<typename CHILD , typename CHILDPAR = NavigationDefaults::DefaultWeight, typename HASH = NavigationTokenHash<CHILD>>
using NavigationToken< CHILD, CHILDPAR, HASH >::NavigationTokenIterator::value_type = const_child_ptr

Definition at line 76 of file NavigationToken.h.

Constructor & Destructor Documentation

◆ NavigationTokenIterator() [1/2]

template<typename CHILD , typename CHILDPAR = NavigationDefaults::DefaultWeight, typename HASH = NavigationTokenHash<CHILD>>
NavigationToken< CHILD, CHILDPAR, HASH >::NavigationTokenIterator::NavigationTokenIterator ( )
inline

Definition at line 83 of file NavigationToken.h.

83 : m_store(0) { };

◆ NavigationTokenIterator() [2/2]

template<typename CHILD , typename CHILDPAR = NavigationDefaults::DefaultWeight, typename HASH = NavigationTokenHash<CHILD>>
NavigationToken< CHILD, CHILDPAR, HASH >::NavigationTokenIterator::NavigationTokenIterator ( const tokenStore aStore)
inline

Definition at line 84 of file NavigationToken.h.

85  : m_store(&aStore)
86  , m_actual(aStore.begin()) { };

Member Function Documentation

◆ begin()

template<typename CHILD , typename CHILDPAR = NavigationDefaults::DefaultWeight, typename HASH = NavigationTokenHash<CHILD>>
NavigationTokenIterator NavigationToken< CHILD, CHILDPAR, HASH >::NavigationTokenIterator::begin ( )
inline

Definition at line 88 of file NavigationToken.h.

89  {
90  m_actual = m_store->begin();
91  return *this;
92  }

◆ end()

template<typename CHILD , typename CHILDPAR = NavigationDefaults::DefaultWeight, typename HASH = NavigationTokenHash<CHILD>>
NavigationTokenIterator NavigationToken< CHILD, CHILDPAR, HASH >::NavigationTokenIterator::end ( )
inline

Definition at line 94 of file NavigationToken.h.

95  {
96  m_actual = m_store->end();
97  return *this;
98  }

◆ getParameter()

template<typename CHILD , typename CHILDPAR = NavigationDefaults::DefaultWeight, typename HASH = NavigationTokenHash<CHILD>>
const tokenParameter& NavigationToken< CHILD, CHILDPAR, HASH >::NavigationTokenIterator::getParameter ( ) const
inline

Definition at line 142 of file NavigationToken.h.

143  {
144  return (*m_actual).second;
145  }

◆ operator!=() [1/2]

template<typename CHILD , typename CHILDPAR = NavigationDefaults::DefaultWeight, typename HASH = NavigationTokenHash<CHILD>>
bool NavigationToken< CHILD, CHILDPAR, HASH >::NavigationTokenIterator::operator!= ( const NavigationTokenIterator anOtherIterator) const
inline

Definition at line 119 of file NavigationToken.h.

120  {
121  return m_actual != anOtherIterator.m_actual;
122  }

◆ operator!=() [2/2]

template<typename CHILD , typename CHILDPAR = NavigationDefaults::DefaultWeight, typename HASH = NavigationTokenHash<CHILD>>
bool NavigationToken< CHILD, CHILDPAR, HASH >::NavigationTokenIterator::operator!= ( NavigationTokenIterator anOtherToken)
inline

Definition at line 115 of file NavigationToken.h.

116  {
117  return m_actual != anOtherToken.m_actual;
118  }

◆ operator*()

template<typename CHILD , typename CHILDPAR = NavigationDefaults::DefaultWeight, typename HASH = NavigationTokenHash<CHILD>>
const_child_ptr NavigationToken< CHILD, CHILDPAR, HASH >::NavigationTokenIterator::operator* ( ) const
inline

Definition at line 123 of file NavigationToken.h.

124  {
125  return (*m_actual).first;
126  }

◆ operator++() [1/2]

template<typename CHILD , typename CHILDPAR = NavigationDefaults::DefaultWeight, typename HASH = NavigationTokenHash<CHILD>>
NavigationTokenIterator NavigationToken< CHILD, CHILDPAR, HASH >::NavigationTokenIterator::operator++ ( )
inline

Definition at line 100 of file NavigationToken.h.

100 { ++m_actual; return *this; }

◆ operator++() [2/2]

template<typename CHILD , typename CHILDPAR = NavigationDefaults::DefaultWeight, typename HASH = NavigationTokenHash<CHILD>>
NavigationTokenIterator NavigationToken< CHILD, CHILDPAR, HASH >::NavigationTokenIterator::operator++ ( int  )
inline

Definition at line 101 of file NavigationToken.h.

102  { NavigationTokenIterator tmp = *this; ++m_actual; return tmp; }

◆ operator--() [1/2]

template<typename CHILD , typename CHILDPAR = NavigationDefaults::DefaultWeight, typename HASH = NavigationTokenHash<CHILD>>
NavigationTokenIterator NavigationToken< CHILD, CHILDPAR, HASH >::NavigationTokenIterator::operator-- ( )
inline

Definition at line 103 of file NavigationToken.h.

103 { --m_actual; return *this; }

◆ operator--() [2/2]

template<typename CHILD , typename CHILDPAR = NavigationDefaults::DefaultWeight, typename HASH = NavigationTokenHash<CHILD>>
NavigationTokenIterator NavigationToken< CHILD, CHILDPAR, HASH >::NavigationTokenIterator::operator-- ( int  )
inline

Definition at line 104 of file NavigationToken.h.

105  { NavigationTokenIterator tmp = *this; --m_actual; return tmp; }

◆ operator->()

template<typename CHILD , typename CHILDPAR = NavigationDefaults::DefaultWeight, typename HASH = NavigationTokenHash<CHILD>>
const_child_ptr NavigationToken< CHILD, CHILDPAR, HASH >::NavigationTokenIterator::operator-> ( ) const
inline

Definition at line 127 of file NavigationToken.h.

128  {
129  return (*m_actual).first;
130  }

◆ operator==() [1/2]

template<typename CHILD , typename CHILDPAR = NavigationDefaults::DefaultWeight, typename HASH = NavigationTokenHash<CHILD>>
bool NavigationToken< CHILD, CHILDPAR, HASH >::NavigationTokenIterator::operator== ( const NavigationTokenIterator anOtherIterator) const
inline

Definition at line 110 of file NavigationToken.h.

111  {
112  return m_actual == anOtherIterator.m_actual;
113  }

◆ operator==() [2/2]

template<typename CHILD , typename CHILDPAR = NavigationDefaults::DefaultWeight, typename HASH = NavigationTokenHash<CHILD>>
bool NavigationToken< CHILD, CHILDPAR, HASH >::NavigationTokenIterator::operator== ( NavigationTokenIterator anOtherToken)
inline

Definition at line 106 of file NavigationToken.h.

107  {
108  return m_actual == anOtherToken.m_actual;
109  }

◆ operator[]()

template<typename CHILD , typename CHILDPAR = NavigationDefaults::DefaultWeight, typename HASH = NavigationTokenHash<CHILD>>
const_child_ptr NavigationToken< CHILD, CHILDPAR, HASH >::NavigationTokenIterator::operator[] ( unsigned int  theIndex) const
inline

Definition at line 131 of file NavigationToken.h.

132  {
133  if ( theIndex >= m_store->size() ) return 0;
134  m_actual = m_store->begin();
135  unsigned int indexCtr = 0;
136  while ( indexCtr != theIndex )
137  {
138  ++indexCtr; ++m_actual;
139  }
140  return (*m_actual).first;
141  }

Member Data Documentation

◆ m_actual

template<typename CHILD , typename CHILDPAR = NavigationDefaults::DefaultWeight, typename HASH = NavigationTokenHash<CHILD>>
tokenConstIterator NavigationToken< CHILD, CHILDPAR, HASH >::NavigationTokenIterator::m_actual
private

Definition at line 150 of file NavigationToken.h.

◆ m_store

template<typename CHILD , typename CHILDPAR = NavigationDefaults::DefaultWeight, typename HASH = NavigationTokenHash<CHILD>>
const tokenStore* NavigationToken< CHILD, CHILDPAR, HASH >::NavigationTokenIterator::m_store
private

Definition at line 149 of file NavigationToken.h.


The documentation for this class was generated from the following file:
NavigationToken::NavigationTokenIterator::m_store
const tokenStore * m_store
Definition: NavigationToken.h:149
NavigationToken::NavigationTokenIterator::m_actual
tokenConstIterator m_actual
Definition: NavigationToken.h:150
NavigationToken::NavigationTokenIterator::NavigationTokenIterator
NavigationTokenIterator()
Definition: NavigationToken.h:83
DeMoUpdate.tmp
string tmp
Definition: DeMoUpdate.py:1167