CMS 3D CMS Logo

List of all members | Public Member Functions
L1MuGMTLUTHelpers::Tokenizer Class Reference

Lookup Functions. More...

#include <L1MuGMTLUTHelpers.h>

Inheritance diagram for L1MuGMTLUTHelpers::Tokenizer:

Public Member Functions

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

Detailed Description

Lookup Functions.

some std::string tools

Definition at line 47 of file L1MuGMTLUTHelpers.h.

Constructor & Destructor Documentation

◆ Tokenizer()

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

Definition at line 49 of file L1MuGMTLUTHelpers.h.

49  {
50  size_type i = 0, j = 0;
51  while ((j = input.find(sep, i)) != std::string::npos) {
52  push_back(input.substr(i, j - i));
53  i = j + sep.size();
54  }
55  push_back(input.substr(i));
56  };

References mps_fire::i, input, and dqmiolumiharvest::j.

mps_fire.i
i
Definition: mps_fire.py:428
input
static const std::string input
Definition: EdmProvDump.cc:48
trigger::size_type
uint16_t size_type
Definition: TriggerTypeDefs.h:18
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66