SCIP-SDP  2.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ScipStreamBuffer Class Reference

Public Member Functions

 ScipStreamBuffer (SCIP *scip, SCIP_FILE *file, bool close_on_exit)
 
 ~ScipStreamBuffer ()
 

Protected Member Functions

virtual int underflow ()
 the underflow function is responsible for the refilling of the buffer More...
 
virtual std::streamsize xsgetn (char *dest, std::streamsize request)
 

Protected Attributes

SCIP * scip_
 
SCIP_FILE * file_
 
char * g_buffer_
 
size_t g_buffer_size_
 pointer to the get-buffer More...
 
bool close_on_exit_
 size of the get-buffer More...
 

Detailed Description

Definition at line 46 of file ScipStreamBuffer.h.

Constructor & Destructor Documentation

ScipStreamBuffer::ScipStreamBuffer ( SCIP *  scip,
SCIP_FILE *  file,
bool  close_on_exit 
)

set buffer in empty state

Definition at line 47 of file ScipStreamBuffer.cpp.

References g_buffer_, g_buffer_size_, and scip_.

ScipStreamBuffer::~ScipStreamBuffer ( )

Definition at line 55 of file ScipStreamBuffer.cpp.

References close_on_exit_, file_, g_buffer_, g_buffer_size_, and scip_.

Member Function Documentation

int ScipStreamBuffer::underflow ( )
protectedvirtual

the underflow function is responsible for the refilling of the buffer

we read nothing => bad

Definition at line 68 of file ScipStreamBuffer.cpp.

References file_, g_buffer_, and g_buffer_size_.

Referenced by xsgetn().

std::streamsize ScipStreamBuffer::xsgetn ( char *  dest,
std::streamsize  request 
)
protectedvirtual

Definition at line 91 of file ScipStreamBuffer.cpp.

References underflow().

Member Data Documentation

SCIP* ScipStreamBuffer::scip_
protected

Definition at line 59 of file ScipStreamBuffer.h.

Referenced by ScipStreamBuffer(), and ~ScipStreamBuffer().

SCIP_FILE* ScipStreamBuffer::file_
protected

Definition at line 60 of file ScipStreamBuffer.h.

Referenced by underflow(), and ~ScipStreamBuffer().

char* ScipStreamBuffer::g_buffer_
protected

Definition at line 61 of file ScipStreamBuffer.h.

Referenced by ScipStreamBuffer(), underflow(), and ~ScipStreamBuffer().

size_t ScipStreamBuffer::g_buffer_size_
protected

pointer to the get-buffer

Definition at line 62 of file ScipStreamBuffer.h.

Referenced by ScipStreamBuffer(), underflow(), and ~ScipStreamBuffer().

bool ScipStreamBuffer::close_on_exit_
protected

size of the get-buffer

Definition at line 63 of file ScipStreamBuffer.h.

Referenced by ~ScipStreamBuffer().


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