Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

std::basic_filebuf Class Template Reference

#include <std_fstream.h>

Inheritance diagram for std::basic_filebuf:

Inheritance graph
[legend]
Collaboration diagram for std::basic_filebuf:

Collaboration graph
[legend]
List of all members.

Public Types

typedef _CharT char_type
typedef _Traits traits_type
typedef traits_type::int_type int_type
typedef traits_type::pos_type pos_type
typedef traits_type::off_type off_type
typedef basic_streambuf<char_type,
traits_type
__streambuf_type
typedef basic_filebuf<char_type,
traits_type
__filebuf_type
typedef __basic_file<char_type__file_type
typedef traits_type::state_type __state_type
typedef codecvt<char_type,
char, __state_type
__codecvt_type
typedef __codecvt_type::result __res_type
typedef ctype<char_type__ctype_type

Public Methods

 basic_filebuf ()
 basic_filebuf (__c_file_type *__f, bool __s, ios_base::openmode __mode)
virtual ~basic_filebuf ()
bool is_open (void) const
__filebuf_typeopen (const char *__s, ios_base::openmode __mode)
__filebuf_typeclose (void)

Protected Methods

void _M_allocate_buffers ()
void _M_filebuf_init ()
virtual streamsize showmanyc (void)
virtual int_type underflow (void)
virtual int_type pbackfail (int_type __c=_Traits::eof())
virtual int_type overflow (int_type __c=_Traits::eof())
int_type _M_really_overflow (int_type __c=_Traits::eof())
virtual __streambuf_typesetbuf (char_type *__s, streamsize __n)
virtual pos_type seekoff (off_type __off, ios_base::seekdir __way, ios_base::openmode __mode=ios_base::in|ios_base::out)
virtual pos_type seekpos (pos_type __pos, ios_base::openmode __mode=ios_base::in|ios_base::out)
virtual int sync (void)
virtual void imbue (const locale &__loc)
virtual streamsize xsgetn (char_type *__s, streamsize __n)
virtual streamsize xsputn (const char_type *__s, streamsize __n)
void _M_output_unshift ()

Private Attributes

__file_type_M_file
__state_type _M_state_cur
__state_type _M_state_beg
__c_lock _M_lock
bool _M_last_overflowed

Friends

class  ios_base

template<typename _CharT, typename _Traits> class std::basic_filebuf


Member Typedef Documentation

template<typename _CharT, typename _Traits>
typedef codecvt<char_type, char, __state_type> std::basic_filebuf<_CharT, _Traits>::__codecvt_type
 

Definition at line 63 of file std_fstream.h.

template<typename _CharT, typename _Traits>
typedef ctype<char_type> std::basic_filebuf<_CharT, _Traits>::__ctype_type
 

Reimplemented from std::basic_streambuf.

Definition at line 65 of file std_fstream.h.

template<typename _CharT, typename _Traits>
typedef __basic_file<char_type> std::basic_filebuf<_CharT, _Traits>::__file_type
 

Definition at line 61 of file std_fstream.h.

template<typename _CharT, typename _Traits>
typedef basic_filebuf<char_type, traits_type> std::basic_filebuf<_CharT, _Traits>::__filebuf_type
 

Definition at line 60 of file std_fstream.h.

template<typename _CharT, typename _Traits>
typedef __codecvt_type::result std::basic_filebuf<_CharT, _Traits>::__res_type
 

Definition at line 64 of file std_fstream.h.

template<typename _CharT, typename _Traits>
typedef traits_type::state_type std::basic_filebuf<_CharT, _Traits>::__state_type
 

Definition at line 62 of file std_fstream.h.

template<typename _CharT, typename _Traits>
typedef basic_streambuf<char_type, traits_type> std::basic_filebuf<_CharT, _Traits>::__streambuf_type
 

Reimplemented from std::basic_streambuf.

Definition at line 59 of file std_fstream.h.

template<typename _CharT, typename _Traits>
typedef _CharT std::basic_filebuf<_CharT, _Traits>::char_type
 

Reimplemented from std::basic_streambuf.

Definition at line 52 of file std_fstream.h.

template<typename _CharT, typename _Traits>
typedef traits_type::int_type std::basic_filebuf<_CharT, _Traits>::int_type
 

Reimplemented from std::basic_streambuf.

Definition at line 54 of file std_fstream.h.

template<typename _CharT, typename _Traits>
typedef traits_type::off_type std::basic_filebuf<_CharT, _Traits>::off_type
 

Reimplemented from std::basic_streambuf.

Definition at line 56 of file std_fstream.h.

template<typename _CharT, typename _Traits>
typedef traits_type::pos_type std::basic_filebuf<_CharT, _Traits>::pos_type
 

Reimplemented from std::basic_streambuf.

Definition at line 55 of file std_fstream.h.

template<typename _CharT, typename _Traits>
typedef _Traits std::basic_filebuf<_CharT, _Traits>::traits_type
 

Reimplemented from std::basic_streambuf.

Definition at line 53 of file std_fstream.h.


Constructor & Destructor Documentation

template<typename _CharT, typename _Traits>
std::basic_filebuf<_CharT, _Traits>::basic_filebuf<_CharT, _Traits> ( )
 

template<typename _CharT, typename _Traits>
std::basic_filebuf<_CharT, _Traits>::basic_filebuf<_CharT, _Traits> ( __c_file_type * __f,
bool __s,
ios_base::openmode __mode )
 

template<typename _CharT, typename _Traits>
std::basic_filebuf<_CharT, _Traits>::~basic_filebuf<_CharT, _Traits> ( ) [inline, virtual]
 

Definition at line 92 of file std_fstream.h.


Member Function Documentation

template<typename _CharT, typename _Traits>
void std::basic_filebuf<_CharT, _Traits>::_M_allocate_buffers ( ) [protected]
 

template<typename _CharT, typename _Traits>
void std::basic_filebuf<_CharT, _Traits>::_M_filebuf_init ( ) [protected]
 

template<typename _CharT, typename _Traits>
void std::basic_filebuf<_CharT, _Traits>::_M_output_unshift ( ) [protected]
 

template<typename _CharT, typename _Traits>
int_type std::basic_filebuf<_CharT, _Traits>::_M_really_overflow ( int_type __c = _Traits::eof() ) [protected]
 

Referenced by sync().

template<typename _CharT, typename _Traits>
__filebuf_type* std::basic_filebuf<_CharT, _Traits>::close ( void )
 

Referenced by ~basic_filebuf().

template<typename _CharT, typename _Traits>
virtual void std::basic_filebuf<_CharT, _Traits>::imbue ( const locale & __loc ) [protected, virtual]
 

Reimplemented from std::basic_streambuf.

template<typename _CharT, typename _Traits>
bool std::basic_filebuf<_CharT, _Traits>::is_open ( void ) const [inline]
 

Definition at line 100 of file std_fstream.h.

Referenced by setbuf().

template<typename _CharT, typename _Traits>
__filebuf_type* std::basic_filebuf<_CharT, _Traits>::open ( const char * __s,
ios_base::openmode __mode )
 

template<typename _CharT, typename _Traits>
virtual int_type std::basic_filebuf<_CharT, _Traits>::overflow ( int_type __c = _Traits::eof() ) [protected, virtual]
 

Reimplemented from std::basic_streambuf.

template<typename _CharT, typename _Traits>
virtual int_type std::basic_filebuf<_CharT, _Traits>::pbackfail ( int_type __c = _Traits::eof() ) [protected, virtual]
 

Reimplemented from std::basic_streambuf.

template<typename _CharT, typename _Traits>
virtual pos_type std::basic_filebuf<_CharT, _Traits>::seekoff ( off_type __off,
ios_base::seekdir __way,
ios_base::openmode __mode = ios_base::in | ios_base::out ) [protected, virtual]
 

Reimplemented from std::basic_streambuf.

template<typename _CharT, typename _Traits>
virtual pos_type std::basic_filebuf<_CharT, _Traits>::seekpos ( pos_type __pos,
ios_base::openmode __mode = ios_base::in | ios_base::out ) [protected, virtual]
 

Reimplemented from std::basic_streambuf.

template<typename _CharT, typename _Traits>
__streambuf_type * std::basic_filebuf<_CharT, _Traits>::setbuf ( char_type * __s,
streamsize __n ) [inline, protected, virtual]
 

Reimplemented from std::basic_streambuf.

Definition at line 153 of file std_fstream.h.

template<typename _CharT, typename _Traits>
virtual streamsize std::basic_filebuf<_CharT, _Traits>::showmanyc ( void ) [protected, virtual]
 

Reimplemented from std::basic_streambuf.

template<typename _CharT, typename _Traits>
int std::basic_filebuf<_CharT, _Traits>::sync ( void ) [inline, protected, virtual]
 

Reimplemented from std::basic_streambuf.

Definition at line 173 of file std_fstream.h.

template<typename _CharT, typename _Traits>
virtual int_type std::basic_filebuf<_CharT, _Traits>::underflow ( void ) [protected, virtual]
 

Reimplemented from std::basic_streambuf.

template<typename _CharT, typename _Traits>
streamsize std::basic_filebuf<_CharT, _Traits>::xsgetn ( char_type * __s,
streamsize __n ) [inline, protected, virtual]
 

Reimplemented from std::basic_streambuf.

Definition at line 199 of file std_fstream.h.

template<typename _CharT, typename _Traits>
streamsize std::basic_filebuf<_CharT, _Traits>::xsputn ( const char_type * __s,
streamsize __n ) [inline, protected, virtual]
 

Reimplemented from std::basic_streambuf.

Definition at line 220 of file std_fstream.h.


Friends And Related Function Documentation

template<typename _CharT, typename _Traits>
friend class ios_base [friend]
 

Definition at line 67 of file std_fstream.h.


Member Data Documentation

template<typename _CharT, typename _Traits>
__file_type* std::basic_filebuf<_CharT, _Traits>::_M_file [private]
 

Definition at line 72 of file std_fstream.h.

template<typename _CharT, typename _Traits>
bool std::basic_filebuf<_CharT, _Traits>::_M_last_overflowed [private]
 

Definition at line 82 of file std_fstream.h.

template<typename _CharT, typename _Traits>
__c_lock std::basic_filebuf<_CharT, _Traits>::_M_lock [private]
 

Definition at line 79 of file std_fstream.h.

template<typename _CharT, typename _Traits>
__state_type std::basic_filebuf<_CharT, _Traits>::_M_state_beg [private]
 

Definition at line 76 of file std_fstream.h.

template<typename _CharT, typename _Traits>
__state_type std::basic_filebuf<_CharT, _Traits>::_M_state_cur [private]
 

Definition at line 75 of file std_fstream.h.


The documentation for this class was generated from the following file:
Generated at Tue May 1 16:30:04 2001 for libstdc++-v3 by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001