Medial Code Documentation
Loading...
Searching...
No Matches
Data Structures | Typedefs | Functions | Variables
rabit::utils Namespace Reference

namespace for helper utils of the project More...

Data Structures

struct  MemoryBufferStream
 a in memory buffer that can be read and write as stream interface More...
 
struct  MemoryFixSizeBuffer
 Fixed size memory buffer as a stream. More...
 
struct  PollHelper
 helper data structure to perform poll More...
 

Typedefs

using SeekStream = dmlc::SeekStream
 re-use definition of dmlc::SeekStream
 

Functions

template<typename PollFD >
int PollImpl (PollFD *pfd, int nfds, std::chrono::seconds timeout)
 
int CompareStringsCaseInsensitive (const char *s1, const char *s2)
 
bool StringToBool (const char *s)
 
void Printf (const char *fmt,...)
 printf, prints messages to the console
 
void Assert (bool exp, const char *fmt,...)
 assert a condition is true, use this to handle debug information
 
void Check (bool exp, const char *fmt,...)
 same as assert, but this is intended to be used as a message for users
 
void Error (const char *fmt,...)
 report error message, same as check
 

Variables

const int kPrintBuffer = 1 << 12
 error message buffer length
 

Detailed Description

namespace for helper utils of the project