Apache Singa
A General Distributed Deep Learning Library
Public Member Functions | List of all members
singa::Tokenizer Class Reference

Tokenize a string. More...

#include <string.h>

Public Member Functions

 Tokenizer (const std::string &str, const std::string &sep)
 
Tokenizeroperator>> (std::string &out)
 
bool Valid ()
 

Detailed Description

Tokenize a string.

example: Tokenizer t("assa,asf;wes", ",;"); string x; t >> x; // x is assa t >> x; // x is asf t >> x; // x is wes cout << (t >> x); // print 0.


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