PandA-2024.02
Public Member Functions | Private Attributes
string_separator Class Reference

Functor to tokenize string used with boost::tokenizer. More...

#include <utility.hpp>

Public Member Functions

 string_separator ()
 Empty constructor. More...
 
 string_separator (const std::string &_delimiter)
 Constructor. More...
 
bool operator() (std::string::const_iterator &next, std::string::const_iterator &end, std::basic_string< char, std::char_traits< char >, std::allocator< char >> &tok)
 Tokenize operator. More...
 
void reset ()
 Reset function (required to implement boost tokenizerFunction model. More...
 

Private Attributes

const std::string delimiter
 The delimiter. More...
 

Detailed Description

Functor to tokenize string used with boost::tokenizer.

Definition at line 177 of file utility.hpp.

Constructor & Destructor Documentation

◆ string_separator() [1/2]

string_separator::string_separator ( )
inline

Empty constructor.

Definition at line 187 of file utility.hpp.

◆ string_separator() [2/2]

string_separator::string_separator ( const std::string &  _delimiter)
inlineexplicit

Constructor.

Parameters
delimiteris the string used to divide the string

Definition at line 195 of file utility.hpp.

Member Function Documentation

◆ operator()()

bool string_separator::operator() ( std::string::const_iterator &  next,
std::string::const_iterator &  end,
std::basic_string< char, std::char_traits< char >, std::allocator< char >> &  tok 
)
inline

Tokenize operator.

Parameters
nextis the start of the portion of the string to be tokenized
endis the end of the string
tokis the token found
Returns
true if a token has been found)

Definition at line 206 of file utility.hpp.

References counter.

◆ reset()

void string_separator::reset ( )
inline

Reset function (required to implement boost tokenizerFunction model.

Definition at line 234 of file utility.hpp.

Field Documentation

◆ delimiter

const std::string string_separator::delimiter
private

The delimiter.

Definition at line 181 of file utility.hpp.


The documentation for this class was generated from the following file:

Generated on Mon Feb 12 2024 13:04:04 for PandA-2024.02 by doxygen 1.8.13