epoc32/include/stdapis/stlport/stl/_iosfwd.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
     1.1 --- a/epoc32/include/stdapis/stlport/stl/_iosfwd.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/stdapis/stlport/stl/_iosfwd.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,159 @@
     1.4 -_iosfwd.h
     1.5 +# ifndef _STLP_INTERNAL_IOSFWD
     1.6 +#  define _STLP_INTERNAL_IOSFWD
     1.7 +
     1.8 +#if defined(__sgi) && !defined(__GNUC__) && !defined(_STANDARD_C_PLUS_PLUS)
     1.9 +#error This header file requires the -LANG:std option
    1.10 +#endif
    1.11 +
    1.12 +// This file provides forward declarations of the most important I/O
    1.13 +// classes.  Note that almost all of those classes are class templates,
    1.14 +// with default template arguments.  According to the C++ standard, 
    1.15 +// if a class template is declared more than once in the same scope
    1.16 +// then only one of those declarations may have default arguments.  
    1.17 +
    1.18 +// <iosfwd> contains the same declarations as other headers, and including
    1.19 +// both <iosfwd> and (say) <iostream> is permitted.  This means that only
    1.20 +// one header may contain those default template arguments.
    1.21 +
    1.22 +// In this implementation, the declarations in <iosfwd> contain default
    1.23 +// template arguments.  All of the other I/O headers include <iosfwd>.
    1.24 +
    1.25 +#ifndef _STLP_CHAR_TRAITS_H
    1.26 +# include <stl/char_traits.h>
    1.27 +#endif
    1.28 +
    1.29 +_STLP_BEGIN_NAMESPACE
    1.30 +
    1.31 +class _STLP_CLASS_DECLSPEC ios_base;
    1.32 +
    1.33 +template <class _CharT, __DFL_TMPL_PARAM(_Traits , char_traits<_CharT>) >
    1.34 +class basic_ios;
    1.35 +
    1.36 +template <class _CharT, __DFL_TMPL_PARAM(_Traits , char_traits<_CharT>) >
    1.37 +class basic_streambuf;
    1.38 +
    1.39 +template <class _CharT, __DFL_TMPL_PARAM(_Traits , char_traits<_CharT>) >
    1.40 +class basic_istream;
    1.41 +
    1.42 +template <class _CharT, __DFL_TMPL_PARAM(_Traits , char_traits<_CharT>) >
    1.43 +class basic_ostream;
    1.44 +
    1.45 +template <class _CharT, __DFL_TMPL_PARAM(_Traits , char_traits<_CharT>) >
    1.46 +class basic_iostream;
    1.47 +
    1.48 +template <class _CharT, __DFL_TMPL_PARAM( _Traits , char_traits<_CharT>),
    1.49 +          __DFL_TMPL_PARAM(_Allocator , allocator<_CharT>) >
    1.50 +class basic_stringbuf;
    1.51 +
    1.52 +template <class _CharT, __DFL_TMPL_PARAM(_Traits , char_traits<_CharT>),
    1.53 +          __DFL_TMPL_PARAM(_Allocator , allocator<_CharT>) >
    1.54 +class basic_istringstream;
    1.55 +
    1.56 +template <class _CharT, __DFL_TMPL_PARAM(_Traits , char_traits<_CharT>),
    1.57 +          __DFL_TMPL_PARAM(_Allocator , allocator<_CharT>) >
    1.58 +class basic_ostringstream;
    1.59 +
    1.60 +template <class _CharT, __DFL_TMPL_PARAM(_Traits , char_traits<_CharT>),
    1.61 +          __DFL_TMPL_PARAM(_Allocator , allocator<_CharT>) >
    1.62 +class basic_stringstream;
    1.63 +
    1.64 +template <class _CharT, __DFL_TMPL_PARAM(_Traits , char_traits<_CharT>) >
    1.65 +class basic_filebuf;
    1.66 +
    1.67 +template <class _CharT, __DFL_TMPL_PARAM(_Traits , char_traits<_CharT>) >
    1.68 +class basic_ifstream;
    1.69 +
    1.70 +template <class _CharT, __DFL_TMPL_PARAM(_Traits , char_traits<_CharT>) >
    1.71 +class basic_ofstream;
    1.72 +
    1.73 +template <class _CharT, __DFL_TMPL_PARAM(_Traits , char_traits<_CharT>) >
    1.74 +class basic_fstream;
    1.75 +
    1.76 +template <class _CharT, __DFL_TMPL_PARAM(_Traits , char_traits<_CharT>) >
    1.77 +class istreambuf_iterator;
    1.78 +
    1.79 +template <class _CharT, __DFL_TMPL_PARAM(_Traits , char_traits<_CharT>) >
    1.80 +class ostreambuf_iterator;
    1.81 +
    1.82 +typedef basic_ios<char, char_traits<char> >    ios;
    1.83 +
    1.84 +# ifndef _STLP_NO_WCHAR_T
    1.85 +typedef basic_ios<wchar_t, char_traits<wchar_t> > wios;
    1.86 +# endif
    1.87 +
    1.88 +// Forward declaration of class locale, and of the most important facets.
    1.89 +class locale;
    1.90 +# ifdef _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS
    1.91 +template <class _Facet>
    1.92 +struct _Use_facet {
    1.93 +  const locale& __loc;
    1.94 +  _Use_facet(const locale& __p_loc) : __loc(__p_loc) {}
    1.95 +  inline const _Facet& operator *() const;
    1.96 +};
    1.97 +# define use_facet *_Use_facet
    1.98 +# else
    1.99 +template <class _Facet> inline const _Facet& use_facet(const locale&);
   1.100 +# endif
   1.101 +
   1.102 +template <class _CharT> class ctype;
   1.103 +template <class _CharT> class ctype_byname;
   1.104 +template <class _CharT> class collate;
   1.105 +template <class _CharT> class collate_byname;
   1.106 +
   1.107 +_STLP_TEMPLATE_NULL class _STLP_CLASS_DECLSPEC ctype<char>;
   1.108 +_STLP_TEMPLATE_NULL class _STLP_CLASS_DECLSPEC ctype_byname<char>;
   1.109 +_STLP_TEMPLATE_NULL class _STLP_CLASS_DECLSPEC collate<char>;
   1.110 +_STLP_TEMPLATE_NULL class _STLP_CLASS_DECLSPEC collate_byname<char>;
   1.111 +
   1.112 +#  ifndef _STLP_NO_WCHAR_T
   1.113 +_STLP_TEMPLATE_NULL class _STLP_CLASS_DECLSPEC ctype<wchar_t>;
   1.114 +_STLP_TEMPLATE_NULL class _STLP_CLASS_DECLSPEC ctype_byname<wchar_t>;
   1.115 +_STLP_TEMPLATE_NULL class _STLP_CLASS_DECLSPEC collate<wchar_t>;
   1.116 +_STLP_TEMPLATE_NULL class _STLP_CLASS_DECLSPEC collate_byname<wchar_t>;
   1.117 +#  endif
   1.118 +
   1.119 +# if !(defined (__SUNPRO_CC) && __SUNPRO_CC < 0x500 ) && !defined(_STLP_WINCE)
   1.120 +// Typedefs for ordinary (narrow-character) streams.
   1.121 +_STLP_TEMPLATE_NULL class _STLP_CLASS_DECLSPEC basic_streambuf<char, char_traits<char> >;
   1.122 +# endif
   1.123 +
   1.124 +typedef basic_istream<char, char_traits<char> >   istream;
   1.125 +typedef basic_ostream<char, char_traits<char> >   ostream;
   1.126 +typedef basic_iostream<char, char_traits<char> >  iostream;
   1.127 +typedef basic_streambuf<char,char_traits<char> > streambuf;
   1.128 +
   1.129 +typedef basic_stringbuf<char, char_traits<char>, allocator<char> >     stringbuf;
   1.130 +typedef basic_istringstream<char, char_traits<char>, allocator<char> > istringstream;
   1.131 +typedef basic_ostringstream<char, char_traits<char>, allocator<char> > ostringstream;
   1.132 +typedef basic_stringstream<char, char_traits<char>, allocator<char> >  stringstream;
   1.133 +
   1.134 +typedef basic_filebuf<char, char_traits<char> >  filebuf;
   1.135 +typedef basic_ifstream<char, char_traits<char> > ifstream;
   1.136 +typedef basic_ofstream<char, char_traits<char> > ofstream;
   1.137 +typedef basic_fstream<char, char_traits<char> >  fstream;
   1.138 +
   1.139 +# ifndef _STLP_NO_WCHAR_T
   1.140 +// Typedefs for wide-character streams.
   1.141 +typedef basic_streambuf<wchar_t, char_traits<wchar_t> > wstreambuf;
   1.142 +typedef basic_istream<wchar_t, char_traits<wchar_t> >   wistream;
   1.143 +typedef basic_ostream<wchar_t, char_traits<wchar_t> >   wostream;
   1.144 +typedef basic_iostream<wchar_t, char_traits<wchar_t> >  wiostream;
   1.145 +
   1.146 +typedef basic_stringbuf<wchar_t, char_traits<wchar_t>, allocator<wchar_t> >     wstringbuf;
   1.147 +typedef basic_istringstream<wchar_t, char_traits<wchar_t>, allocator<wchar_t> > wistringstream;
   1.148 +typedef basic_ostringstream<wchar_t, char_traits<wchar_t>, allocator<wchar_t> > wostringstream;
   1.149 +typedef basic_stringstream<wchar_t, char_traits<wchar_t>, allocator<wchar_t> >  wstringstream;
   1.150 +
   1.151 +typedef basic_filebuf<wchar_t, char_traits<wchar_t> >  wfilebuf;
   1.152 +typedef basic_ifstream<wchar_t, char_traits<wchar_t> > wifstream;
   1.153 +typedef basic_ofstream<wchar_t, char_traits<wchar_t> > wofstream;
   1.154 +typedef basic_fstream<wchar_t, char_traits<wchar_t> >  wfstream;
   1.155 +# endif
   1.156 +
   1.157 +_STLP_END_NAMESPACE
   1.158 +
   1.159 +#endif
   1.160 +
   1.161 +// Local Variables:
   1.162 +// mode:C++
   1.163 +// End: