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_ifstream< _Elem, _Traits > Class Template Reference
Inheritance diagram for basic_ifstream< _Elem, _Traits >:
basic_istream< _Elem, _Traits > basic_ios< _Elem, _Traits > ios_base _Iosb< int >

Public Types

typedef basic_ifstream< _Elem, _Traits > _Myt
 
typedef basic_istream< _Elem, _Traits > _Mybase
 
typedef basic_filebuf< _Elem, _Traits > _Myfb
 
typedef basic_ios< _Elem, _Traits > _Myios
 
- 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 _STD streamoff streamoff
 
typedef _STD streampos streampos
 
typedef void(__CLRCALL_OR_CDECLevent_callback) (event, ios_base &, int)
 
typedef unsigned int io_state
 
typedef unsigned int open_mode
 
typedef unsigned int seek_dir
 
- Public Types inherited from _Iosb< int >
enum  _Dummy_enum
 
enum  _Fmtflags
 
enum  _Iostate
 
enum  _Openmode
 
enum  _Seekdir
 
enum  
 

Public Member Functions

 basic_ifstream ()
 
 basic_ifstream (const char *_Filename, ios_base::openmode _Mode=ios_base::in, int _Prot=(int) ios_base::_Openprot)
 
 basic_ifstream (const string &_Str, ios_base::openmode _Mode=ios_base::in, int _Prot=(int) ios_base::_Openprot)
 
 basic_ifstream (const wchar_t *_Filename, ios_base::openmode _Mode=ios_base::in, int _Prot=(int) ios_base::_Openprot)
 
 basic_ifstream (const wstring &_Str, ios_base::openmode _Mode=ios_base::in, int _Prot=(int) ios_base::_Openprot)
 
 basic_ifstream (_Filet *_File)
 
 basic_ifstream (_Myt &&_Right)
 
_Mytoperator= (_Myt &&_Right)
 
void _Assign_rv (_Myt &&_Right)
 
void swap (_Myt &_Right)
 
 basic_ifstream (const _Myt &)=delete
 
_Mytoperator= (const _Myt &)=delete
 
void open (const wchar_t *_Filename, ios_base::openmode _Mode=ios_base::in, int _Prot=(int) ios_base::_Openprot)
 
void open (const wstring &_Str, ios_base::openmode _Mode=ios_base::in, int _Prot=(int) ios_base::_Openprot)
 
void open (const wchar_t *_Filename, ios_base::open_mode _Mode)
 
virtual __CLR_OR_THIS_CALL ~basic_ifstream () _NOEXCEPT
 
_Myfbrdbuf () const
 
bool is_open () const
 
void open (const char *_Filename, ios_base::openmode _Mode=ios_base::in, int _Prot=(int) ios_base::_Openprot)
 
void open (const string &_Str, ios_base::openmode _Mode=ios_base::in, int _Prot=(int) ios_base::_Openprot)
 
void open (const char *_Filename, ios_base::open_mode _Mode)
 
void close ()
 
- 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>> (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 clear (io_state _State)
 
void __CLR_OR_THIS_CALL setstate (iostate _State, bool _Reraise=false)
 
void __CLR_OR_THIS_CALL setstate (io_state _State)
 
_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
 _BITMASK (_Fmtflags, fmtflags)
 
 _BITMASK (_Iostate, iostate)
 
 _BITMASK (_Openmode, openmode)
 
 _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)
 
void __CLR_OR_THIS_CALL clear (io_state _State)
 
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)
 
void __CLR_OR_THIS_CALL setstate (io_state _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)
 
void __CLR_OR_THIS_CALL exceptions (io_state _State)
 
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
 

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 const _Fmtflags skipws
 
static const _Fmtflags unitbuf
 
static const _Fmtflags uppercase
 
static const _Fmtflags showbase
 
static const _Fmtflags showpoint
 
static const _Fmtflags showpos
 
static const _Fmtflags left
 
static const _Fmtflags right
 
static const _Fmtflags internal
 
static const _Fmtflags dec
 
static const _Fmtflags oct
 
static const _Fmtflags hex
 
static const _Fmtflags scientific
 
static const _Fmtflags fixed
 
static const _Fmtflags hexfloat
 
static const _Fmtflags boolalpha
 
static const _Fmtflags _Stdio
 
static const _Fmtflags adjustfield
 
static const _Fmtflags basefield
 
static const _Fmtflags floatfield
 
static const _Iostate goodbit
 
static const _Iostate eofbit
 
static const _Iostate failbit
 
static const _Iostate badbit
 
static const _Iostate _Hardfail
 
static const _Openmode in
 
static const _Openmode out
 
static const _Openmode ate
 
static const _Openmode app
 
static const _Openmode trunc
 
static const _Openmode _Nocreate
 
static const _Openmode _Noreplace
 
static const _Openmode binary
 
static const _Seekdir beg
 
static const _Seekdir cur
 
static const _Seekdir end
 
- 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 ()
 

Member Typedef Documentation

template<class _Elem, class _Traits>
typedef basic_istream<_Elem, _Traits> basic_ifstream< _Elem, _Traits >::_Mybase
template<class _Elem, class _Traits>
typedef basic_filebuf<_Elem, _Traits> basic_ifstream< _Elem, _Traits >::_Myfb
template<class _Elem, class _Traits>
typedef basic_ios<_Elem, _Traits> basic_ifstream< _Elem, _Traits >::_Myios
template<class _Elem, class _Traits>
typedef basic_ifstream<_Elem, _Traits> basic_ifstream< _Elem, _Traits >::_Myt

Constructor & Destructor Documentation

template<class _Elem, class _Traits>
basic_ifstream< _Elem, _Traits >::basic_ifstream ( )
inline
731  : _Mybase(&_Filebuffer)
732  { // construct unopened
733  }
basic_istream< _Elem, _Traits > _Mybase
Definition: fstream:726
_Myfb _Filebuffer
Definition: fstream:904
template<class _Elem, class _Traits>
basic_ifstream< _Elem, _Traits >::basic_ifstream ( const char *  _Filename,
ios_base::openmode  _Mode = ios_base::in,
int  _Prot = (int)ios_base::_Openprot 
)
inlineexplicit
738  : _Mybase(&_Filebuffer)
739  { // construct with named file and specified mode
740  if (_Filebuffer.open(_Filename, _Mode | ios_base::in, _Prot) == 0)
742  }
static const _Iostate failbit
Definition: xiosbase:89
_Check_return_ _In_ int _Mode
Definition: io.h:338
_Myt * open(const char *_Filename, ios_base::openmode _Mode, int _Prot=(int) ios_base::_Openprot)
Definition: fstream:262
basic_istream< _Elem, _Traits > _Mybase
Definition: fstream:726
_Myfb _Filebuffer
Definition: fstream:904
_In_z_ const char * _Filename
Definition: process.h:211
static const _Openmode in
Definition: xiosbase:97
void __CLR_OR_THIS_CALL setstate(iostate _State, bool _Reraise=false)
Definition: ios:54
template<class _Elem, class _Traits>
basic_ifstream< _Elem, _Traits >::basic_ifstream ( const string _Str,
ios_base::openmode  _Mode = ios_base::in,
int  _Prot = (int)ios_base::_Openprot 
)
inlineexplicit
747  : _Mybase(&_Filebuffer)
748  { // construct with named file and specified mode
749  if (_Filebuffer.open(_Str.c_str(), _Mode | ios_base::in, _Prot) == 0)
751  }
static const _Iostate failbit
Definition: xiosbase:89
_Check_return_ _In_ int _Mode
Definition: io.h:338
const _Elem * c_str() const _NOEXCEPT
Definition: xstring:1737
_Myt * open(const char *_Filename, ios_base::openmode _Mode, int _Prot=(int) ios_base::_Openprot)
Definition: fstream:262
basic_istream< _Elem, _Traits > _Mybase
Definition: fstream:726
_Myfb _Filebuffer
Definition: fstream:904
static const _Openmode in
Definition: xiosbase:97
void __CLR_OR_THIS_CALL setstate(iostate _State, bool _Reraise=false)
Definition: ios:54
template<class _Elem, class _Traits>
basic_ifstream< _Elem, _Traits >::basic_ifstream ( const wchar_t _Filename,
ios_base::openmode  _Mode = ios_base::in,
int  _Prot = (int)ios_base::_Openprot 
)
inlineexplicit
756  : _Mybase(&_Filebuffer)
757  { // construct with wide-named file -- EXTENSION
758  if (_Filebuffer.open(_Filename, _Mode | ios_base::in, _Prot) == 0)
760  }
static const _Iostate failbit
Definition: xiosbase:89
_Check_return_ _In_ int _Mode
Definition: io.h:338
_Myt * open(const char *_Filename, ios_base::openmode _Mode, int _Prot=(int) ios_base::_Openprot)
Definition: fstream:262
basic_istream< _Elem, _Traits > _Mybase
Definition: fstream:726
_Myfb _Filebuffer
Definition: fstream:904
_In_z_ const char * _Filename
Definition: process.h:211
static const _Openmode in
Definition: xiosbase:97
void __CLR_OR_THIS_CALL setstate(iostate _State, bool _Reraise=false)
Definition: ios:54
template<class _Elem, class _Traits>
basic_ifstream< _Elem, _Traits >::basic_ifstream ( const wstring _Str,
ios_base::openmode  _Mode = ios_base::in,
int  _Prot = (int)ios_base::_Openprot 
)
inlineexplicit
765  : _Mybase(&_Filebuffer)
766  { // construct with wide-named file -- EXTENSION
767  if (_Filebuffer.open(_Str.c_str(), _Mode | ios_base::in, _Prot) == 0)
769  }
static const _Iostate failbit
Definition: xiosbase:89
_Check_return_ _In_ int _Mode
Definition: io.h:338
const _Elem * c_str() const _NOEXCEPT
Definition: xstring:1737
_Myt * open(const char *_Filename, ios_base::openmode _Mode, int _Prot=(int) ios_base::_Openprot)
Definition: fstream:262
basic_istream< _Elem, _Traits > _Mybase
Definition: fstream:726
_Myfb _Filebuffer
Definition: fstream:904
static const _Openmode in
Definition: xiosbase:97
void __CLR_OR_THIS_CALL setstate(iostate _State, bool _Reraise=false)
Definition: ios:54
template<class _Elem, class _Traits>
basic_ifstream< _Elem, _Traits >::basic_ifstream ( _Filet _File)
inlineexplicit
783  : _Mybase(&_Filebuffer),
784  _Filebuffer(_File)
785  { // construct with specified C stream
786  }
basic_istream< _Elem, _Traits > _Mybase
Definition: fstream:726
_Myfb _Filebuffer
Definition: fstream:904
template<class _Elem, class _Traits>
basic_ifstream< _Elem, _Traits >::basic_ifstream ( _Myt &&  _Right)
inline
789  : _Mybase(&_Filebuffer)
790  { // construct by moving _Right
791  _Assign_rv(_STD forward<_Myt>(_Right));
792  }
basic_istream< _Elem, _Traits > _Mybase
Definition: fstream:726
_Myfb _Filebuffer
Definition: fstream:904
void _Assign_rv(_Myt &&_Right)
Definition: fstream:800
const _Ty & _Right
Definition: algorithm:4087
template<class _Elem, class _Traits>
basic_ifstream< _Elem, _Traits >::basic_ifstream ( const _Myt )
delete
template<class _Elem, class _Traits>
virtual __CLR_OR_THIS_CALL basic_ifstream< _Elem, _Traits >::~basic_ifstream ( )
inlinevirtual
862  { // destroy the object
863  }

Member Function Documentation

template<class _Elem, class _Traits>
void basic_ifstream< _Elem, _Traits >::_Assign_rv ( _Myt &&  _Right)
inline
801  { // assign by moving _Right
802  if (this != &_Right)
803  { // different, worth moving
804  _Filebuffer.close();
805  this->swap(_Right);
806  }
807  }
_Myt * close()
Definition: fstream:334
_Myfb _Filebuffer
Definition: fstream:904
const _Ty & _Right
Definition: algorithm:4087
void swap(_Myt &_Right)
Definition: fstream:809
template<class _Elem, class _Traits>
void basic_ifstream< _Elem, _Traits >::close ( )
inline
898  { // close the C stream
899  if (_Filebuffer.close() == 0)
901  }
static const _Iostate failbit
Definition: xiosbase:89
_Myt * close()
Definition: fstream:334
_Myfb _Filebuffer
Definition: fstream:904
void __CLR_OR_THIS_CALL setstate(iostate _State, bool _Reraise=false)
Definition: ios:54
template<class _Elem, class _Traits>
bool basic_ifstream< _Elem, _Traits >::is_open ( ) const
inline
871  { // test if C stream has been opened
872  return (_Filebuffer.is_open());
873  }
_Myfb _Filebuffer
Definition: fstream:904
bool is_open() const
Definition: fstream:257
template<class _Elem, class _Traits>
void basic_ifstream< _Elem, _Traits >::open ( const wchar_t _Filename,
ios_base::openmode  _Mode = ios_base::in,
int  _Prot = (int)ios_base::_Openprot 
)
inline
824  { // open a wide-named C stream -- EXTENSION
825  if (_Filebuffer.open(_Filename, _Mode | ios_base::in, _Prot) == 0)
827  else
828  _Myios::clear(); // added with C++11
829  }
static const _Iostate failbit
Definition: xiosbase:89
_Check_return_ _In_ int _Mode
Definition: io.h:338
void __CLR_OR_THIS_CALL clear(iostate _State=goodbit, bool _Reraise=false)
Definition: ios:42
_Myt * open(const char *_Filename, ios_base::openmode _Mode, int _Prot=(int) ios_base::_Openprot)
Definition: fstream:262
_Myfb _Filebuffer
Definition: fstream:904
_In_z_ const char * _Filename
Definition: process.h:211
static const _Openmode in
Definition: xiosbase:97
void __CLR_OR_THIS_CALL setstate(iostate _State, bool _Reraise=false)
Definition: ios:54
template<class _Elem, class _Traits>
void basic_ifstream< _Elem, _Traits >::open ( const wstring _Str,
ios_base::openmode  _Mode = ios_base::in,
int  _Prot = (int)ios_base::_Openprot 
)
inline
834  { // open a wide-named C stream -- EXTENSION
835  open(_Str.c_str(), _Mode, _Prot);
836  }
_Check_return_ _In_ int _Mode
Definition: io.h:338
void open(const wchar_t *_Filename, ios_base::openmode _Mode=ios_base::in, int _Prot=(int) ios_base::_Openprot)
Definition: fstream:821
const _Elem * c_str() const _NOEXCEPT
Definition: xstring:1737
template<class _Elem, class _Traits>
void basic_ifstream< _Elem, _Traits >::open ( const wchar_t _Filename,
ios_base::open_mode  _Mode 
)
inline
839  { // open wide-named file (old style) -- EXTENSION
840  open(_Filename, (ios_base::openmode)_Mode);
841  }
_Check_return_ _In_ int _Mode
Definition: io.h:338
void open(const wchar_t *_Filename, ios_base::openmode _Mode=ios_base::in, int _Prot=(int) ios_base::_Openprot)
Definition: fstream:821
_In_z_ const char * _Filename
Definition: process.h:211
template<class _Elem, class _Traits>
void basic_ifstream< _Elem, _Traits >::open ( const char *  _Filename,
ios_base::openmode  _Mode = ios_base::in,
int  _Prot = (int)ios_base::_Openprot 
)
inline
878  { // open a C stream with specified mode
879  if (_Filebuffer.open(_Filename, _Mode | ios_base::in, _Prot) == 0)
881  else
882  _Myios::clear(); // added with C++11
883  }
static const _Iostate failbit
Definition: xiosbase:89
_Check_return_ _In_ int _Mode
Definition: io.h:338
void __CLR_OR_THIS_CALL clear(iostate _State=goodbit, bool _Reraise=false)
Definition: ios:42
_Myt * open(const char *_Filename, ios_base::openmode _Mode, int _Prot=(int) ios_base::_Openprot)
Definition: fstream:262
_Myfb _Filebuffer
Definition: fstream:904
_In_z_ const char * _Filename
Definition: process.h:211
static const _Openmode in
Definition: xiosbase:97
void __CLR_OR_THIS_CALL setstate(iostate _State, bool _Reraise=false)
Definition: ios:54
template<class _Elem, class _Traits>
void basic_ifstream< _Elem, _Traits >::open ( const string _Str,
ios_base::openmode  _Mode = ios_base::in,
int  _Prot = (int)ios_base::_Openprot 
)
inline
888  { // open a C stream with specified mode
889  open(_Str.c_str(), _Mode, _Prot);
890  }
_Check_return_ _In_ int _Mode
Definition: io.h:338
void open(const wchar_t *_Filename, ios_base::openmode _Mode=ios_base::in, int _Prot=(int) ios_base::_Openprot)
Definition: fstream:821
const _Elem * c_str() const _NOEXCEPT
Definition: xstring:1737
template<class _Elem, class _Traits>
void basic_ifstream< _Elem, _Traits >::open ( const char *  _Filename,
ios_base::open_mode  _Mode 
)
inline
893  { // open named file with specified mode (old style)
894  open(_Filename, (ios_base::openmode)_Mode);
895  }
_Check_return_ _In_ int _Mode
Definition: io.h:338
void open(const wchar_t *_Filename, ios_base::openmode _Mode=ios_base::in, int _Prot=(int) ios_base::_Openprot)
Definition: fstream:821
_In_z_ const char * _Filename
Definition: process.h:211
template<class _Elem, class _Traits>
_Myt& basic_ifstream< _Elem, _Traits >::operator= ( _Myt &&  _Right)
inline
795  { // move from _Right
796  _Assign_rv(_STD forward<_Myt>(_Right));
797  return (*this);
798  }
void _Assign_rv(_Myt &&_Right)
Definition: fstream:800
const _Ty & _Right
Definition: algorithm:4087
template<class _Elem, class _Traits>
_Myt& basic_ifstream< _Elem, _Traits >::operator= ( const _Myt )
delete
template<class _Elem, class _Traits>
_Myfb* basic_ifstream< _Elem, _Traits >::rdbuf ( ) const
inline
866  { // return pointer to file buffer
867  return ((_Myfb *)&_Filebuffer);
868  }
basic_filebuf< _Elem, _Traits > _Myfb
Definition: fstream:727
_Myfb _Filebuffer
Definition: fstream:904
template<class _Elem, class _Traits>
void basic_ifstream< _Elem, _Traits >::swap ( _Myt _Right)
inline
810  { // swap with _Right
811  if (this != &_Right)
812  { // different, swap base and buffer
814  _Filebuffer.swap(_Right._Filebuffer);
815  }
816  }
void __CLR_OR_THIS_CALL swap(_Myt &_Right)
Definition: istream:70
_Myfb _Filebuffer
Definition: fstream:904
void swap(_Myt &_Right)
Definition: fstream:189
const _Ty & _Right
Definition: algorithm:4087

Member Data Documentation

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

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