Router for mapping of string identifier to index.
More...
#include <JStringRouter.hh>
|
| JHashEvaluator | getValue |
| | Function object for evaluation of element.
|
| |
Router for mapping of string identifier to index.
Definition at line 21 of file JStringRouter.hh.
◆ value_type
◆ evaluator_type
◆ container_type
◆ const_iterator
◆ const_reverse_iterator
| typedef container_type::const_reverse_iterator JTOOLS::JHashCollection< int , JHashEvaluator >::const_reverse_iterator |
|
inherited |
◆ iterator
◆ reverse_iterator
◆ JStringRouter()
| JDETECTOR::JStringRouter::JStringRouter |
( |
const JDetector & | detector | ) |
|
|
inline |
Constructor.
- Parameters
-
Definition at line 29 of file JStringRouter.hh.
30 {
31 for (JDetector::const_iterator module = detector.begin(); module != detector.end(); ++module) {
32 this->
insert(module->getString());
33 }
34 }
◆ clear()
◆ swap()
Swap hash collection.
- Parameters
-
| collection | hash collection |
Definition at line 123 of file JHashCollection.hh.
◆ find() [1/2]
Find element with given value.
- Parameters
-
- Returns
- position of element with given value or end()
Definition at line 138 of file JHashCollection.hh.
◆ find() [2/2]
Find element with given value.
- Parameters
-
- Returns
- position of element with given value or end()
Definition at line 156 of file JHashCollection.hh.
◆ get() [1/2]
Get element with given value.
This method will throw an exception if given value is not present following the prerequisite of constness.
- Parameters
-
- Returns
- element
Definition at line 176 of file JHashCollection.hh.
◆ get() [2/2]
Get element with given value.
This method will throw an exception if given value is not present following the prerequisite of constness.
- Parameters
-
- Returns
- element
Definition at line 197 of file JHashCollection.hh.
◆ insert() [1/2]
Insert element.
- Parameters
-
- Returns
- true if inserted; else false
Definition at line 215 of file JHashCollection.hh.
◆ insert() [2/2]
Insert values.
- Parameters
-
| __begin | begin of values |
| __end | end of values |
Definition at line 239 of file JHashCollection.hh.
◆ erase() [1/3]
◆ erase() [2/3]
Erase elements in given range.
- Parameters
-
| __begin | begin position (included) |
| __end | end position (excluded) |
Definition at line 268 of file JHashCollection.hh.
◆ erase() [3/3]
Erase element with given value.
- Parameters
-
- Returns
- true if element has been erased; else false
Definition at line 287 of file JHashCollection.hh.
◆ has()
Test whether given value is present.
- Parameters
-
- Returns
- true if present; else false
Definition at line 309 of file JHashCollection.hh.
◆ getIndex()
◆ operator[]()
◆ assign()
◆ resize()
◆ push_back()
◆ pop_back()
◆ getValue
◆ router
The documentation for this struct was generated from the following file: