ATLAS Offline Software
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
pool::TokenList::iterator_base Class Reference

Base class for forward iterators used to navigate TokenList objects. More...

#include <TokenList.h>

Inheritance diagram for pool::TokenList::iterator_base:
Collaboration diagram for pool::TokenList::iterator_base:

Public Member Functions

bool operator== (const iterator_base &rhs) const
 
bool operator!= (const iterator_base &rhs) const
 
void operator++ ()
 
bool next ()
 
const std::string & tokenName () const
 

Protected Member Functions

 iterator_base (const TokenList *list, size_t idx=0)
 
virtual ~iterator_base ()
 

Protected Attributes

const TokenListm_list
 
size_t m_index
 

Detailed Description

Base class for forward iterators used to navigate TokenList objects.

Definition at line 117 of file TokenList.h.

Constructor & Destructor Documentation

◆ iterator_base()

pool::TokenList::iterator_base::iterator_base ( const TokenList list,
size_t  idx = 0 
)
inlineprotected

Definition at line 128 of file TokenList.h.

129  : m_list( list ), m_index( idx ) {}

◆ ~iterator_base()

virtual pool::TokenList::iterator_base::~iterator_base ( )
inlineprotectedvirtual

Definition at line 131 of file TokenList.h.

131 {}

Member Function Documentation

◆ next()

bool pool::TokenList::iterator_base::next ( )
inline

Definition at line 125 of file TokenList.h.

125 { return ++m_index < m_list->size(); }

◆ operator!=()

Definition at line 123 of file TokenList.h.

123 { return !(*this==rhs); }

◆ operator++()

void pool::TokenList::iterator_base::operator++ ( )
inline

Definition at line 124 of file TokenList.h.

124 { ++m_index; }

◆ operator==()

bool pool::TokenList::iterator_base::operator== ( const iterator_base rhs) const
inline

Definition at line 120 of file TokenList.h.

120  {
121  return m_list == rhs.m_list && m_index == rhs.m_index;
122  }

◆ tokenName()

const std::string& pool::TokenList::iterator_base::tokenName ( ) const
inline

Definition at line 126 of file TokenList.h.

126 { return m_list->m_tokenNames[ m_index ]; }

Member Data Documentation

◆ m_index

size_t pool::TokenList::iterator_base::m_index
protected

Definition at line 134 of file TokenList.h.

◆ m_list

const TokenList* pool::TokenList::iterator_base::m_list
protected

Definition at line 133 of file TokenList.h.


The documentation for this class was generated from the following file:
pool::TokenList::iterator_base::m_list
const TokenList * m_list
Definition: TokenList.h:133
pool::TokenList::m_tokenNames
std::vector< std::string > m_tokenNames
Token names.
Definition: TokenList.h:193
pool::TokenList::size
size_t size() const
Returns the size of the Token list.
Definition: TokenList.h:206
histSizes.list
def list(name, path='/')
Definition: histSizes.py:38
pool::TokenList::iterator_base::m_index
size_t m_index
Definition: TokenList.h:134
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69