_Filebuf_base Class Reference

#include <_fstream.h>

List of all members.

Public Member Functions

 _Filebuf_base ()
bool _M_open (const char *, ios_base::openmode, long __protection)
bool _M_open (const char *, ios_base::openmode)
bool _M_open (int __id, ios_base::openmode=ios_base::__default_mode)
bool _M_close ()
ptrdiff_t _M_read (char *__buf, ptrdiff_t __n)
streamoff _M_seek (streamoff __offset, ios_base::seekdir __dir)
streamoff _M_file_size ()
bool _M_write (char *__buf, ptrdiff_t __n)
void * _M_mmap (streamoff __offset, streamoff __len)
void _M_unmap (void *__mmap_base, streamoff __len)
streamoff _M_get_offset (char *__first, char *__last)
bool _M_in_binary_mode () const
int __o_mode () const
bool __is_open () const
bool __should_close () const
bool __regular_file () const
_STLP_fd __get_fd () const

Static Public Member Functions

static void _S_initialize ()
static size_t _STLP_CALL __page_size ()

Protected Attributes

_STLP_fd _M_file_id
FILE * _M_file
ios_base::openmode _M_openmode
unsigned char _M_is_open
unsigned char _M_should_close
unsigned char _M_regular_file

Static Protected Attributes

static size_t _M_page_size


Detailed Description

Definition at line 73 of file _fstream.h.


Constructor & Destructor Documentation

_Filebuf_base::_Filebuf_base (  ) 

Definition at line 399 of file fstream.cpp.


Member Function Documentation

bool _Filebuf_base::_M_open ( const char *  ,
ios_base::openmode   
)

Definition at line 635 of file fstream.cpp.

References _M_open().

bool _Filebuf_base::_M_close (  ) 

Definition at line 761 of file fstream.cpp.

References _M_file, _M_file_id, _M_is_open, _M_openmode, and _M_should_close.

Referenced by basic_filebuf< _CharT, _Traits >::close().

ptrdiff_t _Filebuf_base::_M_read ( char *  __buf,
ptrdiff_t  __n 
)

streamoff _Filebuf_base::_M_file_size (  ) 

Definition at line 434 of file fstream.cpp.

References __file_size(), _M_file_id, and _STLP_PRIV.

Referenced by _M_seek(), and basic_filebuf< _CharT, _Traits >::showmanyc().

bool _Filebuf_base::_M_write ( char *  __buf,
ptrdiff_t  __n 
)

void * _Filebuf_base::_M_mmap ( streamoff  __offset,
streamoff  __len 
)

Definition at line 1066 of file fstream.cpp.

References __STATIC_CAST, _M_file_id, _M_seek(), _M_unmap(), ios_base::beg, LSEEK, and MMAP.

void _Filebuf_base::_M_unmap ( void *  __mmap_base,
streamoff  __len 
)

Definition at line 1114 of file fstream.cpp.

Referenced by _M_mmap().

streamoff _Filebuf_base::_M_get_offset ( char *  __first,
char *  __last 
) [inline]

Definition at line 103 of file _fstream.h.

References ios_base::binary, and count().

Referenced by basic_filebuf< _CharT, _Traits >::seekoff().

bool _Filebuf_base::_M_in_binary_mode (  )  const [inline]

Definition at line 115 of file _fstream.h.

References ios_base::binary.

Referenced by basic_filebuf< _CharT, _Traits >::seekoff().

void _Filebuf_base::_S_initialize (  )  [static]

Definition at line 409 of file fstream.cpp.

References _M_page_size.

Referenced by ios_base::Init::Init().

static size_t _STLP_CALL _Filebuf_base::__page_size (  )  [inline, static]

Definition at line 146 of file _fstream.h.

int _Filebuf_base::__o_mode (  )  const [inline]

Definition at line 147 of file _fstream.h.

bool _Filebuf_base::__is_open (  )  const [inline]

Definition at line 148 of file _fstream.h.

Referenced by basic_filebuf< _CharT, _Traits >::is_open().

bool _Filebuf_base::__should_close (  )  const [inline]

Definition at line 149 of file _fstream.h.

bool _Filebuf_base::__regular_file (  )  const [inline]

Definition at line 150 of file _fstream.h.

_STLP_fd _Filebuf_base::__get_fd (  )  const [inline]

Definition at line 151 of file _fstream.h.

Referenced by basic_filebuf< _CharT, _Traits >::fd().


Member Data Documentation

_STLP_MOVE_TO_STD_NAMESPACE size_t _Filebuf_base::_M_page_size [static, protected]

Definition at line 128 of file _fstream.h.

Referenced by _S_initialize().

FILE* _Filebuf_base::_M_file [protected]

Definition at line 134 of file _fstream.h.

Referenced by _M_close(), _M_open(), _M_read(), _M_seek(), and _M_write().

Definition at line 140 of file _fstream.h.

Referenced by _M_close(), _M_open(), _M_read(), and _M_write().

unsigned char _Filebuf_base::_M_is_open [protected]

Definition at line 141 of file _fstream.h.

Referenced by _M_close(), and _M_open().

unsigned char _Filebuf_base::_M_should_close [protected]

Definition at line 142 of file _fstream.h.

Referenced by _M_close(), and _M_open().

unsigned char _Filebuf_base::_M_regular_file [protected]

Definition at line 143 of file _fstream.h.

Referenced by _M_open().


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



Generated on Mon Mar 10 15:32:54 2008 by  doxygen 1.5.1