STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Private Attributes | List of all members
basic_fstream< _Elem, _Traits > Class Template Reference
Inheritance diagram for basic_fstream< _Elem, _Traits >:
basic_iostream< _Elem, _Traits > basic_istream< _Elem, _Traits > basic_ostream< _Elem, _Traits > basic_ios< _Elem, _Traits > basic_ios< _Elem, _Traits > ios_base ios_base _Iosb< int > _Iosb< int >

Public Types

typedef basic_fstream< _Elem, _Traits > _Myt
 
typedef basic_iostream< _Elem, _Traits > _Mybase
 
typedef basic_filebuf< _Elem, _Traits > _Myfb
 
typedef basic_ios< _Elem, _Traits > _Myios
 
typedef _Elem char_type
 
typedef _Traits traits_type
 
typedef _Traits::int_type int_type
 
typedef _Traits::pos_type pos_type
 
typedef _Traits::off_type off_type
 
- Public Types inherited from basic_iostream< _Elem, _Traits >
typedef basic_iostream< _Elem, _Traits > _Myt
 
typedef basic_istream< _Elem, _Traits > _Myis
 
typedef basic_ostream< _Elem, _Traits > _Myos
 
typedef basic_ios< _Elem, _Traits > _Myios
 
typedef _Elem char_type
 
typedef _Traits traits_type
 
typedef _Traits::int_type int_type
 
typedef _Traits::pos_type pos_type
 
typedef _Traits::off_type off_type
 
- Public Types inherited from basic_istream< _Elem, _Traits >
typedef basic_istream< _Elem, _Traits > _Myt
 
typedef basic_ios< _Elem, _Traits > _Myios
 
typedef basic_streambuf< _Elem, _Traits > _Mysb
 
typedef istreambuf_iterator< _Elem, _Traits > _Iter
 
typedef ctype< _Elem > _Ctype
 
typedef num_get< _Elem, _Iter_Nget
 
typedef _Traits::int_type int_type
 
typedef _Traits::pos_type pos_type
 
typedef _Traits::off_type off_type
 
- Public Types inherited from basic_ios< _Elem, _Traits >
typedef basic_ios< _Elem, _Traits > _Myt
 
typedef basic_ostream< _Elem, _Traits > _Myos
 
typedef basic_streambuf< _Elem, _Traits > _Mysb
 
typedef ctype< _Elem > _Ctype
 
typedef _Elem char_type
 
typedef _Traits traits_type
 
typedef _Traits::int_type int_type
 
typedef _Traits::pos_type pos_type
 
typedef _Traits::off_type off_type
 
- Public Types inherited from ios_base
enum  event { erase_event, imbue_event, copyfmt_event }
 
typedef void(__CLRCALL_OR_CDECLevent_callback) (event, ios_base &, int)
 
- Public Types inherited from _Iosb< int >
enum  _Dummy_enum
 
enum  _Fmtflags
 
enum  _Iostate
 
enum  _Openmode
 
enum  _Seekdir
 
enum  
 
- Public Types inherited from basic_ostream< _Elem, _Traits >
typedef basic_ostream< _Elem, _Traits > _Myt
 
typedef basic_ios< _Elem, _Traits > _Myios
 
typedef basic_streambuf< _Elem, _Traits > _Mysb
 
typedef ostreambuf_iterator< _Elem, _Traits > _Iter
 
typedef num_put< _Elem, _Iter_Nput
 
typedef _Traits::int_type int_type
 
typedef _Traits::pos_type pos_type
 
typedef _Traits::off_type off_type
 

Public Member Functions

 basic_fstream ()
 
 basic_fstream (const char *_Filename, ios_base::openmode _Mode=ios_base::in|ios_base::out, int _Prot=(int) ios_base::_Openprot)
 
 basic_fstream (const string &_Str, ios_base::openmode _Mode=ios_base::in|ios_base::out, int _Prot=(int) ios_base::_Openprot)
 
 basic_fstream (const wchar_t *_Filename, ios_base::openmode _Mode=ios_base::in|ios_base::out, int _Prot=(int) ios_base::_Openprot)
 
 basic_fstream (const wstring &_Str, ios_base::openmode _Mode=ios_base::in|ios_base::out, int _Prot=(int) ios_base::_Openprot)
 
 basic_fstream (_Filet *_File)
 
 basic_fstream (_Myt &&_Right)
 
_Mytoperator= (_Myt &&_Right)
 
void _Assign_rv (_Myt &&_Right)
 
void swap (_Myt &_Right)
 
 basic_fstream (const _Myt &)=delete
 
_Mytoperator= (const _Myt &)=delete
 
void open (const wchar_t *_Filename, ios_base::openmode _Mode=ios_base::in|ios_base::out, int _Prot=(int) ios_base::_Openprot)
 
void open (const wstring &_Str, ios_base::openmode _Mode=ios_base::in|ios_base::out, int _Prot=(int) ios_base::_Openprot)
 
virtual __CLR_OR_THIS_CALL ~basic_fstream () _NOEXCEPT
 
_Myfbrdbuf () const
 
bool is_open () const
 
void open (const char *_Filename, ios_base::openmode _Mode=ios_base::in|ios_base::out, int _Prot=(int) ios_base::_Openprot)
 
void open (const string &_Str, ios_base::openmode _Mode=ios_base::in|ios_base::out, int _Prot=(int) ios_base::_Openprot)
 
void close ()
 
- Public Member Functions inherited from basic_iostream< _Elem, _Traits >
__CLR_OR_THIS_CALL basic_iostream (basic_streambuf< _Elem, _Traits > *_Strbuf)
 
__CLR_OR_THIS_CALL basic_iostream (const _Myt &)=delete
 
_Myt &__CLR_OR_THIS_CALL operator= (const _Myt &)=delete
 
virtual __CLR_OR_THIS_CALL ~basic_iostream () _NOEXCEPT
 
- Public Member Functions inherited from basic_istream< _Elem, _Traits >
__CLR_OR_THIS_CALL basic_istream (_Mysb *_Strbuf, bool _Isstd=false)
 
__CLR_OR_THIS_CALL basic_istream (_Uninitialized)
 
__CLR_OR_THIS_CALL basic_istream (const _Myt &)=delete
 
_Myt &__CLR_OR_THIS_CALL operator= (const _Myt &)=delete
 
virtual __CLR_OR_THIS_CALL ~basic_istream () _NOEXCEPT
 
bool __CLR_OR_THIS_CALL _Ipfx (bool _Noskip=false)
 
bool __CLR_OR_THIS_CALL ipfx (bool _Noskip=false)
 
void __CLR_OR_THIS_CALL isfx ()
 
_Myt &__CLR_OR_THIS_CALL operator>> (_Myt &(__cdecl *_Pfn)(_Myt &))
 
_Myt &__CLR_OR_THIS_CALL operator>> (_Myios &(__cdecl *_Pfn)(_Myios &))
 
_Myt &__CLR_OR_THIS_CALL operator>> (ios_base &(__cdecl *_Pfn)(ios_base &))
 
_Myt &__CLR_OR_THIS_CALL operator>> (bool &_Val)
 
_Myt &__CLR_OR_THIS_CALL operator>> (short &_Val)
 
_Myt &__CLR_OR_THIS_CALL operator>> (unsigned short &_Val)
 
_Myt &__CLR_OR_THIS_CALL operator>> (int &_Val)
 
_Myt &__CLR_OR_THIS_CALL operator>> (unsigned int &_Val)
 
_Myt &__CLR_OR_THIS_CALL operator>> (long &_Val)
 
_Myt &__CLR_OR_THIS_CALL operator>> (unsigned long &_Val)
 
_Myt &__CLR_OR_THIS_CALL operator>> (long long &_Val)
 
_Myt &__CLR_OR_THIS_CALL operator>> (unsigned long long &_Val)
 
_Myt &__CLR_OR_THIS_CALL operator>> (float &_Val)
 
_Myt &__CLR_OR_THIS_CALL operator>> (double &_Val)
 
_Myt &__CLR_OR_THIS_CALL operator>> (long double &_Val)
 
_Myt &__CLR_OR_THIS_CALL operator>> (void *&_Val)
 
_Myt &__CLR_OR_THIS_CALL operator>> (_Mysb *_Strbuf)
 
int_type __CLR_OR_THIS_CALL get ()
 
_Myt &__CLR_OR_THIS_CALL get (_Elem *_Str, streamsize _Count)
 
_Myt &__CLR_OR_THIS_CALL get (_Elem *_Str, streamsize _Count, _Elem _Delim)
 
_Myt &__CLR_OR_THIS_CALL get (_Elem &_Ch)
 
_Myt &__CLR_OR_THIS_CALL get (_Mysb &_Strbuf)
 
_Myt &__CLR_OR_THIS_CALL get (_Mysb &_Strbuf, _Elem _Delim)
 
_Myt &__CLR_OR_THIS_CALL getline (_Elem *_Str, streamsize _Count)
 
_Myt &__CLR_OR_THIS_CALL getline (_Elem *_Str, streamsize _Count, _Elem _Delim)
 
_Myt &__CLR_OR_THIS_CALL ignore (streamsize _Count=1, int_type _Metadelim=_Traits::eof())
 
_Myt &__CLR_OR_THIS_CALL read (_Elem *_Str, streamsize _Count)
 
streamsize __CLR_OR_THIS_CALL readsome (_Elem *_Str, streamsize _Count)
 
int_type __CLR_OR_THIS_CALL peek ()
 
_Myt &__CLR_OR_THIS_CALL putback (_Elem _Ch)
 
_Myt &__CLR_OR_THIS_CALL unget ()
 
streamsize __CLR_OR_THIS_CALL gcount () const
 
int __CLR_OR_THIS_CALL sync ()
 
_Myt &__CLR_OR_THIS_CALL seekg (pos_type _Pos)
 
_Myt &__CLR_OR_THIS_CALL seekg (off_type _Off, ios_base::seekdir _Way)
 
pos_type __CLR_OR_THIS_CALL tellg ()
 
template<>
basic_istream< unsigned short, char_traits< unsigned short > > &__CLR_OR_THIS_CALL operator>> (unsigned short &_Ch)
 
- Public Member Functions inherited from basic_ios< _Elem, _Traits >
__CLR_OR_THIS_CALL basic_ios (_Mysb *_Strbuf)
 
virtual __CLR_OR_THIS_CALL ~basic_ios () _NOEXCEPT
 
void __CLR_OR_THIS_CALL clear (iostate _State=goodbit, bool _Reraise=false)
 
void __CLR_OR_THIS_CALL setstate (iostate _State, bool _Reraise=false)
 
_Myt &__CLR_OR_THIS_CALL copyfmt (const _Myt &_Right)
 
_Myos *__CLR_OR_THIS_CALL tie () const
 
_Myos *__CLR_OR_THIS_CALL tie (_Myos *_Newtie)
 
_Mysb *__CLR_OR_THIS_CALL rdbuf () const
 
_Mysb *__CLR_OR_THIS_CALL rdbuf (_Mysb *_Strbuf)
 
locale __CLR_OR_THIS_CALL imbue (const locale &_Loc)
 
_Elem __CLR_OR_THIS_CALL fill () const
 
_Elem __CLR_OR_THIS_CALL fill (_Elem _Newfill)
 
char __CLR_OR_THIS_CALL narrow (_Elem _Ch, char _Dflt= '\0') const
 
_Elem __CLR_OR_THIS_CALL widen (char _Byte) const
 
void __CLR_OR_THIS_CALL move (_Myt &_Right)
 
void __CLR_OR_THIS_CALL move (_Myt &&_Right)
 
void __CLR_OR_THIS_CALL swap (_Myt &_Right) _NOEXCEPT
 
void __CLR_OR_THIS_CALL set_rdbuf (_Mysb *_Strbuf)
 
__CLR_OR_THIS_CALL basic_ios (const _Myt &)=delete
 
_Myt &__CLR_OR_THIS_CALL operator= (const _Myt &)=delete
 
- Public Member Functions inherited from ios_base
 _IOS_BITMASK (_Fmtflags, fmtflags)
 
 _IOS_BITMASK (_Iostate, iostate)
 
 _IOS_BITMASK (_Openmode, openmode)
 
 _IOS_BITMASK (_Seekdir, seekdir)
 
__CLR_OR_THIS_CALL operator bool () const
 
bool __CLR_OR_THIS_CALL operator! () const
 
void __CLR_OR_THIS_CALL clear (iostate _State, bool _Reraise)
 
void __CLR_OR_THIS_CALL clear (iostate _State=goodbit)
 
iostate __CLR_OR_THIS_CALL rdstate () const
 
void __CLR_OR_THIS_CALL setstate (iostate _State, bool _Exreraise)
 
void __CLR_OR_THIS_CALL setstate (iostate _State)
 
bool __CLR_OR_THIS_CALL good () const
 
bool __CLR_OR_THIS_CALL eof () const
 
bool __CLR_OR_THIS_CALL fail () const
 
bool __CLR_OR_THIS_CALL bad () const
 
iostate __CLR_OR_THIS_CALL exceptions () const
 
void __CLR_OR_THIS_CALL exceptions (iostate _Newexcept)
 
fmtflags __CLR_OR_THIS_CALL flags () const
 
fmtflags __CLR_OR_THIS_CALL flags (fmtflags _Newfmtflags)
 
fmtflags __CLR_OR_THIS_CALL setf (fmtflags _Newfmtflags)
 
fmtflags __CLR_OR_THIS_CALL setf (fmtflags _Newfmtflags, fmtflags _Mask)
 
void __CLR_OR_THIS_CALL unsetf (fmtflags _Mask)
 
streamsize __CLR_OR_THIS_CALL precision () const
 
streamsize __CLR_OR_THIS_CALL precision (streamsize _Newprecision)
 
streamsize __CLR_OR_THIS_CALL width () const
 
streamsize __CLR_OR_THIS_CALL width (streamsize _Newwidth)
 
locale __CLR_OR_THIS_CALL getloc () const
 
locale __CLR_OR_THIS_CALL imbue (const locale &_Loc)
 
long &__CLR_OR_THIS_CALL iword (int _Idx)
 
void *&__CLR_OR_THIS_CALL pword (int _Idx)
 
void __CLR_OR_THIS_CALL register_callback (event_callback _Pfn, int _Idx)
 
ios_base &__CLR_OR_THIS_CALL copyfmt (const ios_base &_Other)
 
void __CLR_OR_THIS_CALL swap (ios_base &_Right)
 
virtual __CLR_OR_THIS_CALL ~ios_base () _NOEXCEPT
 
 ios_base (const ios_base &)=delete
 
ios_baseoperator= (const ios_base &)=delete
 
- Public Member Functions inherited from basic_ostream< _Elem, _Traits >
__CLR_OR_THIS_CALL basic_ostream (basic_streambuf< _Elem, _Traits > *_Strbuf, bool _Isstd=false)
 
__CLR_OR_THIS_CALL basic_ostream (_Uninitialized, bool _Addit=true)
 
__CLR_OR_THIS_CALL basic_ostream (const _Myt &)=delete
 
_Myt &__CLR_OR_THIS_CALL operator= (const _Myt &)=delete
 
virtual __CLR_OR_THIS_CALL ~basic_ostream () _NOEXCEPT
 
bool __CLR_OR_THIS_CALL opfx ()
 
void __CLR_OR_THIS_CALL osfx ()
 
void __CLR_OR_THIS_CALL _Osfx ()
 
_Myt &__CLR_OR_THIS_CALL operator<< (_Myt &(__cdecl *_Pfn)(_Myt &))
 
_Myt &__CLR_OR_THIS_CALL operator<< (_Myios &(__cdecl *_Pfn)(_Myios &))
 
_Myt &__CLR_OR_THIS_CALL operator<< (ios_base &(__cdecl *_Pfn)(ios_base &))
 
_Myt &__CLR_OR_THIS_CALL operator<< (bool _Val)
 
_Myt &__CLR_OR_THIS_CALL operator<< (short _Val)
 
_Myt &__CLR_OR_THIS_CALL operator<< (unsigned short _Val)
 
_Myt &__CLR_OR_THIS_CALL operator<< (int _Val)
 
_Myt &__CLR_OR_THIS_CALL operator<< (unsigned int _Val)
 
_Myt &__CLR_OR_THIS_CALL operator<< (long _Val)
 
_Myt &__CLR_OR_THIS_CALL operator<< (unsigned long _Val)
 
_Myt &__CLR_OR_THIS_CALL operator<< (long long _Val)
 
_Myt &__CLR_OR_THIS_CALL operator<< (unsigned long long _Val)
 
_Myt &__CLR_OR_THIS_CALL operator<< (float _Val)
 
_Myt &__CLR_OR_THIS_CALL operator<< (double _Val)
 
_Myt &__CLR_OR_THIS_CALL operator<< (long double _Val)
 
_Myt &__CLR_OR_THIS_CALL operator<< (const void *_Val)
 
_Myt &__CLR_OR_THIS_CALL operator<< (_Mysb *_Strbuf)
 
_Myt &__CLR_OR_THIS_CALL put (_Elem _Ch)
 
_Myt &__CLR_OR_THIS_CALL write (const _Elem *_Str, streamsize _Count)
 
_Myt &__CLR_OR_THIS_CALL flush ()
 
_Myt &__CLR_OR_THIS_CALL seekp (pos_type _Pos)
 
_Myt &__CLR_OR_THIS_CALL seekp (off_type _Off, ios_base::seekdir _Way)
 
pos_type __CLR_OR_THIS_CALL tellp ()
 
template<>
basic_ostream< unsigned short, char_traits< unsigned short > > &__CLR_OR_THIS_CALL operator<< (unsigned short _Ch)
 

Private Attributes

_Myfb _Filebuffer
 

Additional Inherited Members

- Static Public Member Functions inherited from ios_base
static int __CLRCALL_OR_CDECL xalloc ()
 
static bool __CLRCALL_OR_CDECL sync_with_stdio (bool _Newsync=true)
 
static _MRTIMP2_PURE_NPURE void __CLRCALL_PURE_OR_CDECL _Addstd (ios_base *)
 
- Public Attributes inherited from ios_base
size_t _Stdstr
 
- Static Public Attributes inherited from _Iosb< int >
static constexpr _Fmtflags skipws
 
static constexpr _Fmtflags unitbuf
 
static constexpr _Fmtflags uppercase
 
static constexpr _Fmtflags showbase
 
static constexpr _Fmtflags showpoint
 
static constexpr _Fmtflags showpos
 
static constexpr _Fmtflags left
 
static constexpr _Fmtflags right
 
static constexpr _Fmtflags internal
 
static constexpr _Fmtflags dec
 
static constexpr _Fmtflags oct
 
static constexpr _Fmtflags hex
 
static constexpr _Fmtflags scientific
 
static constexpr _Fmtflags fixed
 
static constexpr _Fmtflags hexfloat
 
static constexpr _Fmtflags boolalpha
 
static constexpr _Fmtflags _Stdio
 
static constexpr _Fmtflags adjustfield
 
static constexpr _Fmtflags basefield
 
static constexpr _Fmtflags floatfield
 
static constexpr _Iostate goodbit
 
static constexpr _Iostate eofbit
 
static constexpr _Iostate failbit
 
static constexpr _Iostate badbit
 
static constexpr _Openmode in
 
static constexpr _Openmode out
 
static constexpr _Openmode ate
 
static constexpr _Openmode app
 
static constexpr _Openmode trunc
 
static constexpr _Openmode _Nocreate
 
static constexpr _Openmode _Noreplace
 
static constexpr _Openmode binary
 
static constexpr _Seekdir beg
 
static constexpr _Seekdir cur
 
static constexpr _Seekdir end
 
- Protected Member Functions inherited from basic_iostream< _Elem, _Traits >
__CLR_OR_THIS_CALL basic_iostream (_Myt &&_Right)
 
_Myt &__CLR_OR_THIS_CALL operator= (_Myt &&_Right)
 
void __CLR_OR_THIS_CALL swap (_Myt &_Right)
 
- Protected Member Functions inherited from basic_istream< _Elem, _Traits >
__CLR_OR_THIS_CALL basic_istream (_Myt &&_Right)
 
_Myt &__CLR_OR_THIS_CALL operator= (_Myt &&_Right)
 
void __CLR_OR_THIS_CALL swap (_Myt &_Right)
 
- Protected Member Functions inherited from basic_ios< _Elem, _Traits >
void __CLR_OR_THIS_CALL init (_Mysb *_Strbuf=0, bool _Isstd=false)
 
__CLR_OR_THIS_CALL basic_ios ()
 
- Protected Member Functions inherited from ios_base
__CLR_OR_THIS_CALL ios_base ()
 
void __CLR_OR_THIS_CALL _Init ()
 
- Protected Member Functions inherited from basic_ostream< _Elem, _Traits >
__CLR_OR_THIS_CALL basic_ostream (_Myt &&_Right)
 
_Myt &__CLR_OR_THIS_CALL operator= (_Myt &&_Right)
 
void __CLR_OR_THIS_CALL swap (_Myt &_Right)
 

Member Typedef Documentation

template<class _Elem, class _Traits>
typedef basic_iostream<_Elem, _Traits> basic_fstream< _Elem, _Traits >::_Mybase
template<class _Elem, class _Traits>
typedef basic_filebuf<_Elem, _Traits> basic_fstream< _Elem, _Traits >::_Myfb
template<class _Elem, class _Traits>
typedef basic_ios<_Elem, _Traits> basic_fstream< _Elem, _Traits >::_Myios
template<class _Elem, class _Traits>
typedef basic_fstream<_Elem, _Traits> basic_fstream< _Elem, _Traits >::_Myt
template<class _Elem, class _Traits>
typedef _Elem basic_fstream< _Elem, _Traits >::char_type
template<class _Elem, class _Traits>
typedef _Traits::int_type basic_fstream< _Elem, _Traits >::int_type
template<class _Elem, class _Traits>
typedef _Traits::off_type basic_fstream< _Elem, _Traits >::off_type
template<class _Elem, class _Traits>
typedef _Traits::pos_type basic_fstream< _Elem, _Traits >::pos_type
template<class _Elem, class _Traits>
typedef _Traits basic_fstream< _Elem, _Traits >::traits_type

Constructor & Destructor Documentation

template<class _Elem, class _Traits>
basic_fstream< _Elem, _Traits >::basic_fstream ( )
inline
1153  : _Mybase(&_Filebuffer)
1154  { // construct unopened
1155  }
basic_iostream< _Elem, _Traits > _Mybase
Definition: fstream:1143
_Myfb _Filebuffer
Definition: fstream:1332
template<class _Elem, class _Traits>
basic_fstream< _Elem, _Traits >::basic_fstream ( const char _Filename,
ios_base::openmode  _Mode = ios_base::in | ios_base::out,
int  _Prot = (int)ios_base::_Openprot 
)
inlineexplicit
1160  : _Mybase(&_Filebuffer)
1161  { // construct with named file and specified mode
1162  if (_Filebuffer.open(_Filename, _Mode, _Prot) == 0)
1164  }
static constexpr _Iostate failbit
Definition: xiosbase:88
basic_iostream< _Elem, _Traits > _Mybase
Definition: fstream:1143
_Myt * open(const char *_Filename, ios_base::openmode _Mode, int _Prot=(int) ios_base::_Openprot)
Definition: fstream:262
_Check_return_ _In_z_ wchar_t const * _Mode
Definition: corecrt_wstdio.h:133
_Pre_notnull_ _In_opt_z_ wchar_t const _In_opt_z_ wchar_t const _In_opt_z_ wchar_t const _Filename
Definition: corecrt_wstdlib.h:366
_Myfb _Filebuffer
Definition: fstream:1332
void __CLR_OR_THIS_CALL setstate(iostate _State, bool _Reraise=false)
Definition: ios:55
template<class _Elem, class _Traits>
basic_fstream< _Elem, _Traits >::basic_fstream ( const string _Str,
ios_base::openmode  _Mode = ios_base::in | ios_base::out,
int  _Prot = (int)ios_base::_Openprot 
)
inlineexplicit
1169  : _Mybase(&_Filebuffer)
1170  { // construct with named file and specified mode
1171  if (_Filebuffer.open(_Str.c_str(), _Mode, _Prot) == 0)
1173  }
static constexpr _Iostate failbit
Definition: xiosbase:88
_Ret_z_ const _Elem * c_str() const _NOEXCEPT
Definition: xstring:3001
basic_iostream< _Elem, _Traits > _Mybase
Definition: fstream:1143
_Myt * open(const char *_Filename, ios_base::openmode _Mode, int _Prot=(int) ios_base::_Openprot)
Definition: fstream:262
_Check_return_ _In_z_ wchar_t const * _Mode
Definition: corecrt_wstdio.h:133
_Myfb _Filebuffer
Definition: fstream:1332
void __CLR_OR_THIS_CALL setstate(iostate _State, bool _Reraise=false)
Definition: ios:55
template<class _Elem, class _Traits>
basic_fstream< _Elem, _Traits >::basic_fstream ( const wchar_t _Filename,
ios_base::openmode  _Mode = ios_base::in | ios_base::out,
int  _Prot = (int)ios_base::_Openprot 
)
inlineexplicit
1178  : _Mybase(&_Filebuffer)
1179  { // construct with wide-named file -- EXTENSION
1180  if (_Filebuffer.open(_Filename, _Mode, _Prot) == 0)
1182  }
static constexpr _Iostate failbit
Definition: xiosbase:88
basic_iostream< _Elem, _Traits > _Mybase
Definition: fstream:1143
_Myt * open(const char *_Filename, ios_base::openmode _Mode, int _Prot=(int) ios_base::_Openprot)
Definition: fstream:262
_Check_return_ _In_z_ wchar_t const * _Mode
Definition: corecrt_wstdio.h:133
_Pre_notnull_ _In_opt_z_ wchar_t const _In_opt_z_ wchar_t const _In_opt_z_ wchar_t const _Filename
Definition: corecrt_wstdlib.h:366
_Myfb _Filebuffer
Definition: fstream:1332
void __CLR_OR_THIS_CALL setstate(iostate _State, bool _Reraise=false)
Definition: ios:55
template<class _Elem, class _Traits>
basic_fstream< _Elem, _Traits >::basic_fstream ( const wstring _Str,
ios_base::openmode  _Mode = ios_base::in | ios_base::out,
int  _Prot = (int)ios_base::_Openprot 
)
inlineexplicit
1187  : _Mybase(&_Filebuffer)
1188  { // construct with wide-named file -- EXTENSION
1189  if (_Filebuffer.open(_Str.c_str(), _Mode, _Prot) == 0)
1191  }
static constexpr _Iostate failbit
Definition: xiosbase:88
_Ret_z_ const _Elem * c_str() const _NOEXCEPT
Definition: xstring:3001
basic_iostream< _Elem, _Traits > _Mybase
Definition: fstream:1143
_Myt * open(const char *_Filename, ios_base::openmode _Mode, int _Prot=(int) ios_base::_Openprot)
Definition: fstream:262
_Check_return_ _In_z_ wchar_t const * _Mode
Definition: corecrt_wstdio.h:133
_Myfb _Filebuffer
Definition: fstream:1332
void __CLR_OR_THIS_CALL setstate(iostate _State, bool _Reraise=false)
Definition: ios:55
template<class _Elem, class _Traits>
basic_fstream< _Elem, _Traits >::basic_fstream ( _Filet _File)
inlineexplicit
1205  : _Mybase(&_Filebuffer),
1206  _Filebuffer(_File)
1207  { // construct with specified C stream
1208  }
basic_iostream< _Elem, _Traits > _Mybase
Definition: fstream:1143
_Myfb _Filebuffer
Definition: fstream:1332
template<class _Elem, class _Traits>
basic_fstream< _Elem, _Traits >::basic_fstream ( _Myt &&  _Right)
inline
1211  : _Mybase(&_Filebuffer)
1212  { // construct by moving _Right
1214  }
basic_iostream< _Elem, _Traits > _Mybase
Definition: fstream:1143
void _Assign_rv(_Myt &&_Right)
Definition: fstream:1222
_Myfb _Filebuffer
Definition: fstream:1332
void __CLR_OR_THIS_CALL move(_Myt &_Right)
Definition: ios:134
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Elem, class _Traits>
basic_fstream< _Elem, _Traits >::basic_fstream ( const _Myt )
delete
template<class _Elem, class _Traits>
virtual __CLR_OR_THIS_CALL basic_fstream< _Elem, _Traits >::~basic_fstream ( )
inlinevirtual
1288  { // destroy the object
1289  }

Member Function Documentation

template<class _Elem, class _Traits>
void basic_fstream< _Elem, _Traits >::_Assign_rv ( _Myt &&  _Right)
inline
1223  { // assign by moving _Right
1224  if (this != _STD addressof(_Right))
1225  { // different, worth moving
1226  _Filebuffer.close();
1227  this->swap(_Right);
1228  }
1229  }
_STD_BEGIN constexpr _Ty * addressof(_Ty &_Val) _NOEXCEPT
Definition: xstddef:628
_Myt * close()
Definition: fstream:340
_Myfb _Filebuffer
Definition: fstream:1332
constexpr const _Ty &() _Right
Definition: algorithm:3723
void swap(_Myt &_Right)
Definition: fstream:1231
template<class _Elem, class _Traits>
void basic_fstream< _Elem, _Traits >::close ( )
inline
1326  { // close the C stream
1327  if (_Filebuffer.close() == 0)
1329  }
static constexpr _Iostate failbit
Definition: xiosbase:88
_Myt * close()
Definition: fstream:340
_Myfb _Filebuffer
Definition: fstream:1332
void __CLR_OR_THIS_CALL setstate(iostate _State, bool _Reraise=false)
Definition: ios:55
template<class _Elem, class _Traits>
bool basic_fstream< _Elem, _Traits >::is_open ( ) const
inline
1297  { // test if C stream has been opened
1298  return (_Filebuffer.is_open());
1299  }
_Myfb _Filebuffer
Definition: fstream:1332
bool is_open() const
Definition: fstream:257
template<class _Elem, class _Traits>
void basic_fstream< _Elem, _Traits >::open ( const wchar_t _Filename,
ios_base::openmode  _Mode = ios_base::in | ios_base::out,
int  _Prot = (int)ios_base::_Openprot 
)
inline
1246  { // open a wide-named C stream -- EXTENSION
1247  if (_Filebuffer.open(_Filename, _Mode, _Prot) == 0)
1249  else
1250  _Myios::clear(); // added with C++11
1251  }
static constexpr _Iostate failbit
Definition: xiosbase:88
void __CLR_OR_THIS_CALL clear(iostate _State=goodbit, bool _Reraise=false)
Definition: ios:41
_Myt * open(const char *_Filename, ios_base::openmode _Mode, int _Prot=(int) ios_base::_Openprot)
Definition: fstream:262
_Check_return_ _In_z_ wchar_t const * _Mode
Definition: corecrt_wstdio.h:133
_Pre_notnull_ _In_opt_z_ wchar_t const _In_opt_z_ wchar_t const _In_opt_z_ wchar_t const _Filename
Definition: corecrt_wstdlib.h:366
_Myfb _Filebuffer
Definition: fstream:1332
void __CLR_OR_THIS_CALL setstate(iostate _State, bool _Reraise=false)
Definition: ios:55
template<class _Elem, class _Traits>
void basic_fstream< _Elem, _Traits >::open ( const wstring _Str,
ios_base::openmode  _Mode = ios_base::in | ios_base::out,
int  _Prot = (int)ios_base::_Openprot 
)
inline
1256  { // open a wide-named C stream -- EXTENSION
1257  open(_Str.c_str(), _Mode, _Prot);
1258  }
void open(const wchar_t *_Filename, ios_base::openmode _Mode=ios_base::in|ios_base::out, int _Prot=(int) ios_base::_Openprot)
Definition: fstream:1243
_Ret_z_ const _Elem * c_str() const _NOEXCEPT
Definition: xstring:3001
_Check_return_ _In_z_ wchar_t const * _Mode
Definition: corecrt_wstdio.h:133
template<class _Elem, class _Traits>
void basic_fstream< _Elem, _Traits >::open ( const char _Filename,
ios_base::openmode  _Mode = ios_base::in | ios_base::out,
int  _Prot = (int)ios_base::_Openprot 
)
inline
1304  { // open a C stream with specified mode
1305  if (_Filebuffer.open(_Filename, _Mode, _Prot) == 0)
1307  else
1308  _Myios::clear(); // added with C++11
1309  }
static constexpr _Iostate failbit
Definition: xiosbase:88
void __CLR_OR_THIS_CALL clear(iostate _State=goodbit, bool _Reraise=false)
Definition: ios:41
_Myt * open(const char *_Filename, ios_base::openmode _Mode, int _Prot=(int) ios_base::_Openprot)
Definition: fstream:262
_Check_return_ _In_z_ wchar_t const * _Mode
Definition: corecrt_wstdio.h:133
_Pre_notnull_ _In_opt_z_ wchar_t const _In_opt_z_ wchar_t const _In_opt_z_ wchar_t const _Filename
Definition: corecrt_wstdlib.h:366
_Myfb _Filebuffer
Definition: fstream:1332
void __CLR_OR_THIS_CALL setstate(iostate _State, bool _Reraise=false)
Definition: ios:55
template<class _Elem, class _Traits>
void basic_fstream< _Elem, _Traits >::open ( const string _Str,
ios_base::openmode  _Mode = ios_base::in | ios_base::out,
int  _Prot = (int)ios_base::_Openprot 
)
inline
1314  { // open a C stream with specified mode
1315  open(_Str.c_str(), _Mode, _Prot);
1316  }
void open(const wchar_t *_Filename, ios_base::openmode _Mode=ios_base::in|ios_base::out, int _Prot=(int) ios_base::_Openprot)
Definition: fstream:1243
_Ret_z_ const _Elem * c_str() const _NOEXCEPT
Definition: xstring:3001
_Check_return_ _In_z_ wchar_t const * _Mode
Definition: corecrt_wstdio.h:133
template<class _Elem, class _Traits>
_Myt& basic_fstream< _Elem, _Traits >::operator= ( _Myt &&  _Right)
inline
1217  { // move from _Right
1219  return (*this);
1220  }
void _Assign_rv(_Myt &&_Right)
Definition: fstream:1222
void __CLR_OR_THIS_CALL move(_Myt &_Right)
Definition: ios:134
constexpr const _Ty &() _Right
Definition: algorithm:3723
template<class _Elem, class _Traits>
_Myt& basic_fstream< _Elem, _Traits >::operator= ( const _Myt )
delete
template<class _Elem, class _Traits>
_Myfb* basic_fstream< _Elem, _Traits >::rdbuf ( ) const
inline
1292  { // return pointer to file buffer
1293  return ((_Myfb *)&_Filebuffer);
1294  }
_Myfb _Filebuffer
Definition: fstream:1332
basic_filebuf< _Elem, _Traits > _Myfb
Definition: fstream:1144
template<class _Elem, class _Traits>
void basic_fstream< _Elem, _Traits >::swap ( _Myt _Right)
inline
1232  { // swap with _Right
1233  if (this != _STD addressof(_Right))
1234  { // different, swap base and buffer
1236  _Filebuffer.swap(_Right._Filebuffer);
1237  }
1238  }
_STD_BEGIN constexpr _Ty * addressof(_Ty &_Val) _NOEXCEPT
Definition: xstddef:628
_Myfb _Filebuffer
Definition: fstream:1332
void swap(_Myt &_Right)
Definition: fstream:189
void __CLR_OR_THIS_CALL swap(_Myt &_Right)
Definition: istream:961
constexpr const _Ty &() _Right
Definition: algorithm:3723

Member Data Documentation

template<class _Elem, class _Traits>
_Myfb basic_fstream< _Elem, _Traits >::_Filebuffer
private

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