CMS 3D CMS Logo

Public Member Functions

L1MuGMTLUTHelpers::Tokenizer Class Reference

Lookup Functions. More...

#include <L1MuGMTLUTHelpers.h>

Inheritance diagram for L1MuGMTLUTHelpers::Tokenizer:
vector

List of all members.

Public Member Functions

 Tokenizer (const std::string &sep, const std::string &input)

Detailed Description

Lookup Functions.

some std::string tools

Definition at line 50 of file L1MuGMTLUTHelpers.h.


Constructor & Destructor Documentation

L1MuGMTLUTHelpers::Tokenizer::Tokenizer ( const std::string &  sep,
const std::string &  input 
) [inline]

Definition at line 52 of file L1MuGMTLUTHelpers.h.

References i, and j.

                                                               {
        size_type i=0, j=0;
        while( (j=input.find(sep,i))!=std::string::npos) {
          push_back(input.substr(i,j-i));
          i = j+sep.size();
        }
        push_back(input.substr(i));
      };