|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef COLLECTIONBASE_TOKENLIST_H
6 #define COLLECTIONBASE_TOKENLIST_H
34 TokenList(
const std::vector<std::string>& specification );
145 iterator_base::operator=( rhs );
170 iterator_base::operator=( rhs );
182 const_iterator
begin()
const;
185 const_iterator
end()
const;
214 return !( *
this == rhs );
JetConstituentVector::iterator iterator
bool operator==(const TokenList &rhs) const
Equality operator.
Forward iterator class for navigation of TokenList objects.
iterator(TokenList *list, size_t idx=0)
bool operator!=(const iterator_base &rhs) const
TokenList(const TokenList &rhs)
Copy constructor.
Token & operator[](const std::string &name)
Returns a reference to a metadata Token given its name.
const_iterator(const iterator_base &rhs)
bool operator==(const iterator_base &rhs) const
std::vector< std::string > m_tokenNames
Token names.
iterator end()
Returns a forward iterator pointing to last element in Token list.
const std::string & tokenName() const
const_iterator & operator++()
This class provides a token that identifies in a unique way objects on the persistent storage.
size_t size() const
Returns the size of the Token list.
const_iterator & operator=(const iterator_base &rhs)
const Token & operator*() const
const_iterator(const TokenList *list, size_t idx=0)
TokenList(const std::vector< std::string > &specification)
Constructor that takes a list of Token names as input.
const Token & operator[](unsigned int index) const
Returns a constant reference to a metadata Token given its index.
Token & operator[](unsigned int index)
Returns a reference to a metadata Token given its index.
iterator & operator=(const iterator_base &rhs)
Constant forward iterator class for navigation of TokenList objects.
~TokenList()
Default destructor.
const Token & operator[](const std::string &name) const
Returns a constant reference to a metadata Token given its name.
void extend(const std::string &name)
Extends the Token list by one element.
void createFromSpec(const std::vector< std::string > &specification)
bool operator!=(const TokenList &rhs) const
Inequality operator.
std::ostream & toOutputStream(std::ostream &os) const
Outputs the Token names and associated values to a specified stream.
iterator begin()
Returns a forward iterator pointing to first element in Token list.
TokenList & operator=(const TokenList &rhs)
Assignment operator.
Base class for forward iterators used to navigate TokenList objects.
const Token * operator->() const
TokenList()
Default constructor.
iterator_base(const TokenList *list, size_t idx=0)
std::map< std::string, Token * > m_tokenMap
Map of Tokens with token name as key. Points to the same Token objects as m_tokenVector.
void clear()
delete the content of the list
iterator(const iterator_base &rhs)
std::vector< Token * > m_tokenVector
Token vector (corresponding to m_tokenNames)