|
Jpp
18.6.0-rc.1
the software that should make you happy
|
Router for mapping of string identifier to index. More...
#include <JStringRouter.hh>
Public Types | |
| typedef int | value_type |
| typedef JHashEvaluator | evaluator_type |
| typedef std::vector< value_type > | container_type |
| typedef container_type::const_iterator | const_iterator |
| typedef container_type::const_reverse_iterator | const_reverse_iterator |
| typedef container_type::iterator | iterator |
| typedef container_type::reverse_iterator | reverse_iterator |
Public Member Functions | |
| JStringRouter (const JDetector &detector) | |
| Constructor. More... | |
| void | clear () |
| Clear. More... | |
| void | swap (JHashCollection &collection) |
| Swap hash collection. More... | |
| const_iterator | find (const T &value) const |
| Find element with given value. More... | |
| iterator | find (const T &value) |
| Find element with given value. More... | |
| value_type & | get (const T &value) |
| Get element with given value. More... | |
| const value_type & | get (const T &value) const |
| Get element with given value. More... | |
| virtual bool | insert (const value_type &element) |
| Insert element. More... | |
| void | insert (T __begin, T __end) |
| Insert values. More... | |
| void | erase (iterator pos) |
| Erase element at given position. More... | |
| void | erase (iterator __begin, iterator __end) |
| Erase elements in given range. More... | |
| bool | erase (const T &value) |
| Erase element with given value. More... | |
| bool | has (const T &value) const |
| Test whether given value is present. More... | |
| int | getIndex (const T &value) const |
| Get index of given value. More... | |
Public Attributes | |
| JHashEvaluator | getValue |
| Function object for evaluation of element. More... | |
Protected Attributes | |
| JTOOLS::JHashCollection::router_type | router |
Router for mapping of string identifier to index.
Definition at line 21 of file JStringRouter.hh.
|
inherited |
Definition at line 41 of file JHashCollection.hh.
|
inherited |
Definition at line 42 of file JHashCollection.hh.
|
inherited |
Definition at line 44 of file JHashCollection.hh.
|
inherited |
Definition at line 46 of file JHashCollection.hh.
|
inherited |
Definition at line 47 of file JHashCollection.hh.
|
inherited |
Definition at line 48 of file JHashCollection.hh.
|
inherited |
Definition at line 49 of file JHashCollection.hh.
|
inline |
Constructor.
| detector | detector |
Definition at line 29 of file JStringRouter.hh.
|
inlineinherited |
Clear.
Definition at line 108 of file JHashCollection.hh.
|
inlineinherited |
Swap hash collection.
| collection | hash collection |
Definition at line 123 of file JHashCollection.hh.
|
inlineinherited |
Find element with given value.
| value | value |
Definition at line 138 of file JHashCollection.hh.
|
inlineinherited |
Find element with given value.
| value | value |
Definition at line 156 of file JHashCollection.hh.
|
inlineinherited |
Get element with given value.
This method will throw an exception if given value is not present following the prerequisite of constness.
| value | value |
Definition at line 176 of file JHashCollection.hh.
|
inlineinherited |
Get element with given value.
This method will throw an exception if given value is not present following the prerequisite of constness.
| value | value |
Definition at line 197 of file JHashCollection.hh.
|
inlinevirtualinherited |
Insert element.
| element | element |
Definition at line 215 of file JHashCollection.hh.
|
inlineinherited |
Insert values.
| __begin | begin of values |
| __end | end of values |
Definition at line 239 of file JHashCollection.hh.
|
inlineinherited |
Erase element at given position.
| pos | valid position |
Definition at line 252 of file JHashCollection.hh.
|
inlineinherited |
Erase elements in given range.
| __begin | begin position (included) |
| __end | end position (excluded) |
Definition at line 268 of file JHashCollection.hh.
|
inlineinherited |
Erase element with given value.
| value | value |
Definition at line 287 of file JHashCollection.hh.
|
inlineinherited |
Test whether given value is present.
| value | value |
Definition at line 309 of file JHashCollection.hh.
|
inlineinherited |
Get index of given value.
| value | value |
Definition at line 322 of file JHashCollection.hh.
|
inherited |
Function object for evaluation of element.
Definition at line 331 of file JHashCollection.hh.
|
protectedinherited |
1.8.5