LCIO
02.17
|
Helper class for string tokenization. More...
#include <BitField64.h>
Public Member Functions | |
LCTokenizer (std::vector< std::string > &tokens, char del) | |
Only c'tor, give (empty) token vector and delimeter character. More... | |
void | operator() (const char &c) |
Operator for use with algorithms, e.g. More... | |
Private Attributes | |
std::vector< std::string > & | _tokens |
char | _del |
char | _last |
Helper class for string tokenization.
Usage:
std::vector<std::string> tokens ;
LCTokenizer t( tokens ,',') ;
std::for_each( aString.begin(), aString.end(), t ) ;
Definition at line 21 of file BitField64.h.
|
inline |
Only c'tor, give (empty) token vector and delimeter character.
Definition at line 30 of file BitField64.h.
|
inline |
Operator for use with algorithms, e.g.
for_each
Definition at line 37 of file BitField64.h.
References _del, _last, _tokens, std::vector< T >::back(), and std::vector< T >::push_back().
|
private |
Definition at line 24 of file BitField64.h.
Referenced by operator()().
|
private |
Definition at line 25 of file BitField64.h.
Referenced by operator()().
|
private |
Definition at line 23 of file BitField64.h.
Referenced by operator()().