#include <CollectionBase/TokenList.h>
A container class to facilitate the use of Token objects.
Definition at line 23 of file TokenList.h.
◆ TokenList() [1/3]
pool::TokenList::TokenList |
( |
| ) |
|
◆ TokenList() [2/3]
pool::TokenList::TokenList |
( |
const std::vector< std::string > & |
specification | ) |
|
Constructor that takes a list of Token names as input.
- Parameters
-
specification | List of Token names |
◆ TokenList() [3/3]
Copy constructor.
Copies both the data and the Token list specification.
- Parameters
-
◆ ~TokenList()
pool::TokenList::~TokenList |
( |
| ) |
|
◆ begin() [1/2]
Returns a forward iterator pointing to first element in Token list.
Definition at line 218 of file TokenList.h.
◆ begin() [2/2]
Returns a constant forward iterator pointing to first element in Token list.
Definition at line 230 of file TokenList.h.
◆ clear()
void pool::TokenList::clear |
( |
| ) |
|
delete the content of the list
◆ createFromSpec()
void pool::TokenList::createFromSpec |
( |
const std::vector< std::string > & |
specification | ) |
|
|
protected |
◆ end() [1/2]
Returns a forward iterator pointing to last element in Token list.
Definition at line 224 of file TokenList.h.
◆ end() [2/2]
Returns a constant forward iterator pointing to last element in Token list.
Definition at line 236 of file TokenList.h.
◆ extend()
void pool::TokenList::extend |
( |
const std::string & |
name | ) |
|
Extends the Token list by one element.
- Parameters
-
◆ operator!=()
Inequality operator.
Only compares the Token values, not their names.
- Parameters
-
rhs | The Token list to compare to. |
Definition at line 212 of file TokenList.h.
214 return !( *
this == rhs );
◆ operator=()
Assignment operator.
Copies both the data and the Token list specification.
- Parameters
-
◆ operator==()
Equality operator.
Only compares the Token values, not their names.
- Parameters
-
rhs | The Token list to compare to. |
◆ operator[]() [1/4]
Token& pool::TokenList::operator[] |
( |
const std::string & |
name | ) |
|
Returns a reference to a metadata Token given its name.
- Parameters
-
◆ operator[]() [2/4]
Returns a constant reference to a metadata Token given its name.
- Parameters
-
◆ operator[]() [3/4]
Token& pool::TokenList::operator[] |
( |
unsigned int |
index | ) |
|
Returns a reference to a metadata Token given its index.
- Parameters
-
◆ operator[]() [4/4]
const Token& pool::TokenList::operator[] |
( |
unsigned int |
index | ) |
const |
Returns a constant reference to a metadata Token given its index.
- Parameters
-
◆ size()
size_t pool::TokenList::size |
( |
| ) |
const |
|
inline |
◆ toOutputStream()
std::ostream& pool::TokenList::toOutputStream |
( |
std::ostream & |
os | ) |
const |
Outputs the Token names and associated values to a specified stream.
- Parameters
-
os | Stream to which Token information is to be output. |
◆ m_tokenMap
std::map< std::string, Token* > pool::TokenList::m_tokenMap |
|
private |
Map of Tokens with token name as key. Points to the same Token objects as m_tokenVector.
Definition at line 199 of file TokenList.h.
◆ m_tokenNames
std::vector< std::string > pool::TokenList::m_tokenNames |
|
private |
◆ m_tokenVector
std::vector< Token* > pool::TokenList::m_tokenVector |
|
private |
The documentation for this class was generated from the following file: