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