xgboost
|
an iterator use stream base, allows use all types of istream More...
#include <config.h>
Public Member Functions | |
ConfigStreamReader (std::istream &fin) | |
constructor More... | |
![]() | |
const char * | Name () const |
get current name, called after Next returns true More... | |
const char * | Val () const |
get current value, called after Next returns true More... | |
bool | Next () |
move iterator to next position More... | |
void | Init () |
Protected Member Functions | |
int | GetChar () override |
to be implemented by subclass, get next token, return EOF if end of file More... | |
bool | IsEnd () override |
to be implemented by child, check if end of stream More... | |
an iterator use stream base, allows use all types of istream
|
inlineexplicit |
constructor
fin | istream input stream |
|
inlineoverrideprotectedvirtual |
to be implemented by subclass, get next token, return EOF if end of file
Implements xgboost::common::ConfigReaderBase.
|
inlineoverrideprotectedvirtual |
to be implemented by child, check if end of stream
Implements xgboost::common::ConfigReaderBase.