Whole document tree
    

Whole document tree

Templatestd::basic_ofstream class Reference
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

std::basic_ofstream< _CharT, _Traits > Class Template Reference

#include <std_fstream.h>

Inheritance diagram for std::basic_ofstream:

Inheritance graph
[legend]
Collaboration diagram for std::basic_ofstream< _CharT, _Traits >:

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_filebuf< char_type,
traits_type
__filebuf_type
typedef basic_ostream< char_type,
traits_type
__ostream_type

Public Methods

 basic_ofstream ()
 basic_ofstream (const char *__s, ios_base::openmode __mode=ios_base::out|ios_base::trunc)
 ~basic_ofstream ()
__filebuf_typerdbuf (void) const
bool is_open (void)
void open (const char *__s, ios_base::openmode __mode=ios_base::out|ios_base::trunc)
void close (void)

Private Attributes

__filebuf_type _M_filebuf

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


Member Typedef Documentation

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

Definition at line 304 of file std_fstream.h.

template<typename _CharT, typename _Traits>
typedef basic_ostream<char_type, traits_type> std::basic_ofstream< _CharT, _Traits >::__ostream_type
 

Reimplemented from std::basic_ostream< _CharT, _Traits >.

Definition at line 305 of file std_fstream.h.

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

Reimplemented from std::basic_ostream< _CharT, _Traits >.

Definition at line 297 of file std_fstream.h.

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

Reimplemented from std::basic_ostream< _CharT, _Traits >.

Definition at line 299 of file std_fstream.h.

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

Reimplemented from std::basic_ostream< _CharT, _Traits >.

Definition at line 301 of file std_fstream.h.

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

Reimplemented from std::basic_ostream< _CharT, _Traits >.

Definition at line 300 of file std_fstream.h.

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

Reimplemented from std::basic_ostream< _CharT, _Traits >.

Definition at line 298 of file std_fstream.h.


Constructor & Destructor Documentation

template<typename _CharT, typename _Traits>
std::basic_ofstream< _CharT, _Traits >::basic_ofstream   [inline]
 

Definition at line 312 of file std_fstream.h.

References std::basic_ofstream< _CharT, _Traits >::_M_filebuf, and std::basic_ios< _CharT, _Traits >::init().

template<typename _CharT, typename _Traits>
std::basic_ofstream< _CharT, _Traits >::basic_ofstream const char *    __s,
ios_base::openmode    __mode = ios_base::out|ios_base::trunc
[inline, explicit]
 

Definition at line 317 of file std_fstream.h.

References std::basic_ofstream< _CharT, _Traits >::_M_filebuf, std::basic_ios< _CharT, _Traits >::init(), and std::basic_ofstream< _CharT, _Traits >::open().

template<typename _CharT, typename _Traits>
std::basic_ofstream< _CharT, _Traits >::~basic_ofstream   [inline]
 

Definition at line 325 of file std_fstream.h.


Member Function Documentation

template<typename _CharT, typename _Traits>
void std::basic_ofstream< _CharT, _Traits >::close void    [inline]
 

Definition at line 345 of file std_fstream.h.

References std::basic_ofstream< _CharT, _Traits >::_M_filebuf, and std::basic_ios< _CharT, _Traits >::setstate().

template<typename _CharT, typename _Traits>
bool std::basic_ofstream< _CharT, _Traits >::is_open void    [inline]
 

Definition at line 334 of file std_fstream.h.

References std::basic_ofstream< _CharT, _Traits >::_M_filebuf.

template<typename _CharT, typename _Traits>
void std::basic_ofstream< _CharT, _Traits >::open const char *    __s,
ios_base::openmode    __mode = ios_base::out | ios_base::trunc
[inline]
 

Definition at line 337 of file std_fstream.h.

References std::basic_ofstream< _CharT, _Traits >::_M_filebuf, and std::basic_ios< _CharT, _Traits >::setstate().

Referenced by std::basic_ofstream< _CharT, _Traits >::basic_ofstream().

template<typename _CharT, typename _Traits>
__filebuf_type* std::basic_ofstream< _CharT, _Traits >::rdbuf void    const [inline]
 

Reimplemented from std::basic_ios< _CharT, _Traits >.

Definition at line 330 of file std_fstream.h.

References std::basic_ofstream< _CharT, _Traits >::_M_filebuf.


Member Data Documentation

template<typename _CharT, typename _Traits>
__filebuf_type std::basic_ofstream< _CharT, _Traits >::_M_filebuf [private]
 

Definition at line 308 of file std_fstream.h.

Referenced by std::basic_ofstream< _CharT, _Traits >::basic_ofstream(), std::basic_ofstream< _CharT, _Traits >::close(), std::basic_ofstream< _CharT, _Traits >::is_open(), std::basic_ofstream< _CharT, _Traits >::open(), and std::basic_ofstream< _CharT, _Traits >::rdbuf().


The documentation for this class was generated from the following file:
Generated on Mon Apr 8 03:18:09 2002 for libstdc++-v3 Source by doxygen1.2.15