xgboost
Public Member Functions | Protected Member Functions | List of all members
xgboost::common::ConfigReaderBase Class Referenceabstract

base implementation of config reader More...

#include <config.h>

Inheritance diagram for xgboost::common::ConfigReaderBase:
Inheritance graph
Collaboration diagram for xgboost::common::ConfigReaderBase:
Collaboration graph

Public Member Functions

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

virtual int GetChar ()=0
 to be implemented by subclass, get next token, return EOF if end of file More...
 
virtual bool IsEnd ()=0
 to be implemented by child, check if end of stream More...
 

Detailed Description

base implementation of config reader

Member Function Documentation

◆ GetChar()

virtual int xgboost::common::ConfigReaderBase::GetChar ( )
protectedpure virtual

to be implemented by subclass, get next token, return EOF if end of file

Implemented in xgboost::common::ConfigStreamReader.

◆ Init()

void xgboost::common::ConfigReaderBase::Init ( )
inline

◆ IsEnd()

virtual bool xgboost::common::ConfigReaderBase::IsEnd ( )
protectedpure virtual

to be implemented by child, check if end of stream

Implemented in xgboost::common::ConfigStreamReader.

◆ Name()

const char* xgboost::common::ConfigReaderBase::Name ( ) const
inline

get current name, called after Next returns true

Returns
current parameter name

◆ Next()

bool xgboost::common::ConfigReaderBase::Next ( )
inline

move iterator to next position

Returns
true if there is value in next position

◆ Val()

const char* xgboost::common::ConfigReaderBase::Val ( ) const
inline

get current value, called after Next returns true

Returns
current parameter value

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