epoc32/include/stdapis/stlportv5/stl/_iosfwd.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 epoc32/include/stdapis/stlport/stl/_iosfwd.h@2fe1408b6811
child 4 837f303aceeb
permissions -rw-r--r--
Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
williamr@2
     1
# ifndef _STLP_INTERNAL_IOSFWD
williamr@2
     2
#  define _STLP_INTERNAL_IOSFWD
williamr@2
     3
williamr@2
     4
#if defined(__sgi) && !defined(__GNUC__) && !defined(_STANDARD_C_PLUS_PLUS)
williamr@2
     5
#error This header file requires the -LANG:std option
williamr@2
     6
#endif
williamr@2
     7
williamr@2
     8
// This file provides forward declarations of the most important I/O
williamr@2
     9
// classes.  Note that almost all of those classes are class templates,
williamr@2
    10
// with default template arguments.  According to the C++ standard, 
williamr@2
    11
// if a class template is declared more than once in the same scope
williamr@2
    12
// then only one of those declarations may have default arguments.  
williamr@2
    13
williamr@2
    14
// <iosfwd> contains the same declarations as other headers, and including
williamr@2
    15
// both <iosfwd> and (say) <iostream> is permitted.  This means that only
williamr@2
    16
// one header may contain those default template arguments.
williamr@2
    17
williamr@2
    18
// In this implementation, the declarations in <iosfwd> contain default
williamr@2
    19
// template arguments.  All of the other I/O headers include <iosfwd>.
williamr@2
    20
williamr@2
    21
#ifndef _STLP_CHAR_TRAITS_H
williamr@2
    22
# include <stl/char_traits.h>
williamr@2
    23
#endif
williamr@2
    24
williamr@2
    25
_STLP_BEGIN_NAMESPACE
williamr@2
    26
williamr@2
    27
class _STLP_CLASS_DECLSPEC ios_base;
williamr@2
    28
williamr@2
    29
template <class _CharT, __DFL_TMPL_PARAM(_Traits , char_traits<_CharT>) >
williamr@2
    30
class basic_ios;
williamr@2
    31
williamr@2
    32
template <class _CharT, __DFL_TMPL_PARAM(_Traits , char_traits<_CharT>) >
williamr@2
    33
class basic_streambuf;
williamr@2
    34
williamr@2
    35
template <class _CharT, __DFL_TMPL_PARAM(_Traits , char_traits<_CharT>) >
williamr@2
    36
class basic_istream;
williamr@2
    37
williamr@2
    38
template <class _CharT, __DFL_TMPL_PARAM(_Traits , char_traits<_CharT>) >
williamr@2
    39
class basic_ostream;
williamr@2
    40
williamr@2
    41
template <class _CharT, __DFL_TMPL_PARAM(_Traits , char_traits<_CharT>) >
williamr@2
    42
class basic_iostream;
williamr@2
    43
williamr@2
    44
template <class _CharT, __DFL_TMPL_PARAM( _Traits , char_traits<_CharT>),
williamr@2
    45
          __DFL_TMPL_PARAM(_Allocator , allocator<_CharT>) >
williamr@2
    46
class basic_stringbuf;
williamr@2
    47
williamr@2
    48
template <class _CharT, __DFL_TMPL_PARAM(_Traits , char_traits<_CharT>),
williamr@2
    49
          __DFL_TMPL_PARAM(_Allocator , allocator<_CharT>) >
williamr@2
    50
class basic_istringstream;
williamr@2
    51
williamr@2
    52
template <class _CharT, __DFL_TMPL_PARAM(_Traits , char_traits<_CharT>),
williamr@2
    53
          __DFL_TMPL_PARAM(_Allocator , allocator<_CharT>) >
williamr@2
    54
class basic_ostringstream;
williamr@2
    55
williamr@2
    56
template <class _CharT, __DFL_TMPL_PARAM(_Traits , char_traits<_CharT>),
williamr@2
    57
          __DFL_TMPL_PARAM(_Allocator , allocator<_CharT>) >
williamr@2
    58
class basic_stringstream;
williamr@2
    59
williamr@2
    60
template <class _CharT, __DFL_TMPL_PARAM(_Traits , char_traits<_CharT>) >
williamr@2
    61
class basic_filebuf;
williamr@2
    62
williamr@2
    63
template <class _CharT, __DFL_TMPL_PARAM(_Traits , char_traits<_CharT>) >
williamr@2
    64
class basic_ifstream;
williamr@2
    65
williamr@2
    66
template <class _CharT, __DFL_TMPL_PARAM(_Traits , char_traits<_CharT>) >
williamr@2
    67
class basic_ofstream;
williamr@2
    68
williamr@2
    69
template <class _CharT, __DFL_TMPL_PARAM(_Traits , char_traits<_CharT>) >
williamr@2
    70
class basic_fstream;
williamr@2
    71
williamr@2
    72
template <class _CharT, __DFL_TMPL_PARAM(_Traits , char_traits<_CharT>) >
williamr@2
    73
class istreambuf_iterator;
williamr@2
    74
williamr@2
    75
template <class _CharT, __DFL_TMPL_PARAM(_Traits , char_traits<_CharT>) >
williamr@2
    76
class ostreambuf_iterator;
williamr@2
    77
williamr@2
    78
typedef basic_ios<char, char_traits<char> >    ios;
williamr@2
    79
williamr@2
    80
# ifndef _STLP_NO_WCHAR_T
williamr@2
    81
typedef basic_ios<wchar_t, char_traits<wchar_t> > wios;
williamr@2
    82
# endif
williamr@2
    83
williamr@2
    84
// Forward declaration of class locale, and of the most important facets.
williamr@2
    85
class locale;
williamr@2
    86
# ifdef _STLP_NO_EXPLICIT_FUNCTION_TMPL_ARGS
williamr@2
    87
template <class _Facet>
williamr@2
    88
struct _Use_facet {
williamr@2
    89
  const locale& __loc;
williamr@2
    90
  _Use_facet(const locale& __p_loc) : __loc(__p_loc) {}
williamr@2
    91
  inline const _Facet& operator *() const;
williamr@2
    92
};
williamr@2
    93
# define use_facet *_Use_facet
williamr@2
    94
# else
williamr@2
    95
template <class _Facet> inline const _Facet& use_facet(const locale&);
williamr@2
    96
# endif
williamr@2
    97
williamr@2
    98
template <class _CharT> class ctype;
williamr@2
    99
template <class _CharT> class ctype_byname;
williamr@2
   100
template <class _CharT> class collate;
williamr@2
   101
template <class _CharT> class collate_byname;
williamr@2
   102
williamr@2
   103
_STLP_TEMPLATE_NULL class _STLP_CLASS_DECLSPEC ctype<char>;
williamr@2
   104
_STLP_TEMPLATE_NULL class _STLP_CLASS_DECLSPEC ctype_byname<char>;
williamr@2
   105
_STLP_TEMPLATE_NULL class _STLP_CLASS_DECLSPEC collate<char>;
williamr@2
   106
_STLP_TEMPLATE_NULL class _STLP_CLASS_DECLSPEC collate_byname<char>;
williamr@2
   107
williamr@2
   108
#  ifndef _STLP_NO_WCHAR_T
williamr@2
   109
_STLP_TEMPLATE_NULL class _STLP_CLASS_DECLSPEC ctype<wchar_t>;
williamr@2
   110
_STLP_TEMPLATE_NULL class _STLP_CLASS_DECLSPEC ctype_byname<wchar_t>;
williamr@2
   111
_STLP_TEMPLATE_NULL class _STLP_CLASS_DECLSPEC collate<wchar_t>;
williamr@2
   112
_STLP_TEMPLATE_NULL class _STLP_CLASS_DECLSPEC collate_byname<wchar_t>;
williamr@2
   113
#  endif
williamr@2
   114
williamr@2
   115
# if !(defined (__SUNPRO_CC) && __SUNPRO_CC < 0x500 ) && !defined(_STLP_WINCE)
williamr@2
   116
// Typedefs for ordinary (narrow-character) streams.
williamr@2
   117
_STLP_TEMPLATE_NULL class _STLP_CLASS_DECLSPEC basic_streambuf<char, char_traits<char> >;
williamr@2
   118
# endif
williamr@2
   119
williamr@2
   120
typedef basic_istream<char, char_traits<char> >   istream;
williamr@2
   121
typedef basic_ostream<char, char_traits<char> >   ostream;
williamr@2
   122
typedef basic_iostream<char, char_traits<char> >  iostream;
williamr@2
   123
typedef basic_streambuf<char,char_traits<char> > streambuf;
williamr@2
   124
williamr@2
   125
typedef basic_stringbuf<char, char_traits<char>, allocator<char> >     stringbuf;
williamr@2
   126
typedef basic_istringstream<char, char_traits<char>, allocator<char> > istringstream;
williamr@2
   127
typedef basic_ostringstream<char, char_traits<char>, allocator<char> > ostringstream;
williamr@2
   128
typedef basic_stringstream<char, char_traits<char>, allocator<char> >  stringstream;
williamr@2
   129
williamr@2
   130
typedef basic_filebuf<char, char_traits<char> >  filebuf;
williamr@2
   131
typedef basic_ifstream<char, char_traits<char> > ifstream;
williamr@2
   132
typedef basic_ofstream<char, char_traits<char> > ofstream;
williamr@2
   133
typedef basic_fstream<char, char_traits<char> >  fstream;
williamr@2
   134
williamr@2
   135
# ifndef _STLP_NO_WCHAR_T
williamr@2
   136
// Typedefs for wide-character streams.
williamr@2
   137
typedef basic_streambuf<wchar_t, char_traits<wchar_t> > wstreambuf;
williamr@2
   138
typedef basic_istream<wchar_t, char_traits<wchar_t> >   wistream;
williamr@2
   139
typedef basic_ostream<wchar_t, char_traits<wchar_t> >   wostream;
williamr@2
   140
typedef basic_iostream<wchar_t, char_traits<wchar_t> >  wiostream;
williamr@2
   141
williamr@2
   142
typedef basic_stringbuf<wchar_t, char_traits<wchar_t>, allocator<wchar_t> >     wstringbuf;
williamr@2
   143
typedef basic_istringstream<wchar_t, char_traits<wchar_t>, allocator<wchar_t> > wistringstream;
williamr@2
   144
typedef basic_ostringstream<wchar_t, char_traits<wchar_t>, allocator<wchar_t> > wostringstream;
williamr@2
   145
typedef basic_stringstream<wchar_t, char_traits<wchar_t>, allocator<wchar_t> >  wstringstream;
williamr@2
   146
williamr@2
   147
typedef basic_filebuf<wchar_t, char_traits<wchar_t> >  wfilebuf;
williamr@2
   148
typedef basic_ifstream<wchar_t, char_traits<wchar_t> > wifstream;
williamr@2
   149
typedef basic_ofstream<wchar_t, char_traits<wchar_t> > wofstream;
williamr@2
   150
typedef basic_fstream<wchar_t, char_traits<wchar_t> >  wfstream;
williamr@2
   151
# endif
williamr@2
   152
williamr@2
   153
_STLP_END_NAMESPACE
williamr@2
   154
williamr@2
   155
#endif
williamr@2
   156
williamr@2
   157
// Local Variables:
williamr@2
   158
// mode:C++
williamr@2
   159
// End: