DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
|
Helper class for string tokenization. More...
#include <BitFieldCoder.h>
Public Member Functions | |
StringTokenizer (std::vector< std::string > &tokens, char del) | |
void | operator() (const char &c) |
Private Attributes | |
std::vector< std::string > & | _tokens |
char | _del |
char | _last |
Helper class for string tokenization.
Usage:
std::vector<std::string> tokens ;
StringTokenizer t( tokens ,',') ;
std::for_each( aString.begin(), aString.end(), t ) ;
Definition at line 253 of file BitFieldCoder.h.
|
inline |
Only c'tor, give (empty) token vector and delimeter character
Definition at line 261 of file BitFieldCoder.h.
|
inline |
Operator for use with algorithms, e.g. for_each
Definition at line 268 of file BitFieldCoder.h.
|
private |
Definition at line 255 of file BitFieldCoder.h.
|
private |
Definition at line 256 of file BitFieldCoder.h.
|
private |
Definition at line 254 of file BitFieldCoder.h.