annotate lib/swig/swigwin-2.0.11/Lib/std/std_iostream.i @ 2562:b8a56afc6ba1

new var no_actors, lights_flag, debug_lights, StationaryLights and MobileLights
author Ritor1
date Sun, 17 May 2015 22:42:13 +0600
parents b3009adc0e2f
children
rev   line source
1899
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
1 /*
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
2 For wchar support, you need to include the wchar.i file
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
3 before this file, ie:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
4
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
5 %include <wchar.i>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
6 %include <std_iostream.i>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
7
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
8 or equivalently, just include
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
9
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
10 %include <std_wiostream.i>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
11 */
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
12
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
13 %include <std_ios.i>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
14 %include <std_basic_string.i>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
15 %include <std_string.i>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
16 #if defined(SWIG_WCHAR)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
17 %include <std_wstring.i>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
18 #endif
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
19
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
20 %{
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
21 #include <iostream>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
22 %}
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
23
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
24
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
25 namespace std
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
26 {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
27 // 27.6.2.1 Template class basic_ostream
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
28 template<typename _CharT, typename _Traits = char_traits<_CharT> >
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
29 class basic_ostream : virtual public basic_ios<_CharT, _Traits>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
30 {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
31 public:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
32 // Types (inherited from basic_ios (27.4.4)):
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
33 typedef _CharT char_type;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
34 typedef typename _Traits::int_type int_type;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
35 typedef typename _Traits::pos_type pos_type;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
36 typedef typename _Traits::off_type off_type;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
37 typedef _Traits traits_type;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
38
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
39 // 27.6.2.2 Constructor/destructor:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
40 explicit
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
41 basic_ostream(basic_streambuf<_CharT, _Traits>* __sb);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
42
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
43 virtual
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
44 ~basic_ostream();
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
45
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
46 // 27.6.2.5 Formatted output:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
47 // 27.6.2.5.3 basic_ostream::operator<<
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
48 basic_ostream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
49 operator<<(basic_ostream<_CharT, _Traits>& (*__pf)(basic_ostream<_CharT, _Traits>&));
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
50
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
51
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
52 basic_ostream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
53 operator<<(basic_ios<_CharT, _Traits>& (*__pf)(basic_ios<_CharT, _Traits>&));
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
54
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
55
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
56 basic_ostream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
57 operator<<(ios_base& (*__pf) (ios_base&));
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
58
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
59 // 27.6.2.5.2 Arithmetic Inserters
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
60
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
61 basic_ostream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
62 operator<<(long __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
63
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
64 basic_ostream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
65 operator<<(unsigned long __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
66
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
67 basic_ostream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
68 operator<<(bool __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
69
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
70 basic_ostream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
71 operator<<(short __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
72
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
73 basic_ostream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
74 operator<<(unsigned short __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
75
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
76 basic_ostream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
77 operator<<(int __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
78
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
79 basic_ostream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
80 operator<<(unsigned int __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
81
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
82 basic_ostream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
83 operator<<(long long __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
84
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
85 basic_ostream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
86 operator<<(unsigned long long __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
87
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
88 basic_ostream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
89 operator<<(double __f);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
90
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
91 basic_ostream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
92 operator<<(float __f);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
93
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
94 basic_ostream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
95 operator<<(long double __f);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
96
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
97 basic_ostream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
98 operator<<(const void* __p);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
99
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
100 basic_ostream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
101 operator<<(basic_streambuf<_CharT, _Traits>* __sb);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
102
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
103 %extend {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
104 std::basic_ostream<_CharT, _Traits >&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
105 operator<<(const std::basic_string<_CharT,_Traits, std::allocator<_CharT> >& s)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
106 {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
107 *self << s;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
108 return *self;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
109 }
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
110 }
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
111
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
112 // Unformatted output:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
113 basic_ostream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
114 put(char_type __c);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
115
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
116 basic_ostream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
117 write(const char_type* __s, streamsize __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
118
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
119 basic_ostream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
120 flush();
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
121
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
122 // Seeks:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
123 pos_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
124 tellp();
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
125
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
126 basic_ostream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
127 seekp(pos_type);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
128
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
129 basic_ostream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
130 seekp(off_type, ios_base::seekdir);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
131
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
132 };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
133
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
134 // 27.6.1.1 Template class basic_istream
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
135 template<typename _CharT, typename _Traits = char_traits<_CharT> >
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
136 class basic_istream : virtual public basic_ios<_CharT, _Traits>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
137 {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
138 public:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
139 // Types (inherited from basic_ios (27.4.4)):
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
140 typedef _CharT char_type;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
141 typedef typename _Traits::int_type int_type;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
142 typedef typename _Traits::pos_type pos_type;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
143 typedef typename _Traits::off_type off_type;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
144 typedef _Traits traits_type;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
145
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
146
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
147 public:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
148 // 27.6.1.1.1 Constructor/destructor:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
149 explicit
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
150 basic_istream(basic_streambuf<_CharT, _Traits>* __sb);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
151
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
152 virtual
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
153 ~basic_istream();
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
154
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
155 // 27.6.1.2.3 basic_istream::operator>>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
156 basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
157 operator>>(basic_istream<_CharT, _Traits>& (*__pf)(basic_istream<_CharT, _Traits>&));
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
158
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
159 basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
160 operator>>(basic_ios<_CharT, _Traits>& (*__pf)(basic_ios<_CharT, _Traits>&));
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
161
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
162 basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
163 operator>>(ios_base& (*__pf)(ios_base&));
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
164
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
165 // 27.6.1.2.2 Arithmetic Extractors
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
166 basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
167 operator>>(bool& __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
168
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
169 basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
170 operator>>(short& __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
171
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
172 basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
173 operator>>(unsigned short& __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
174
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
175 basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
176 operator>>(int& __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
177
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
178 basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
179 operator>>(unsigned int& __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
180
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
181 basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
182 operator>>(long& __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
183
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
184 basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
185 operator>>(unsigned long& __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
186
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
187 basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
188 operator>>(long long& __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
189
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
190 basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
191 operator>>(unsigned long long& __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
192
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
193 basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
194 operator>>(float& __f);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
195
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
196 basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
197 operator>>(double& __f);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
198
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
199 basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
200 operator>>(long double& __f);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
201
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
202 basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
203 operator>>(void*& __p);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
204
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
205 basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
206 operator>>(basic_streambuf<_CharT, _Traits>* __sb);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
207
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
208 // 27.6.1.3 Unformatted input:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
209 inline streamsize
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
210 gcount(void) const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
211
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
212 int_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
213 get(void);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
214
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
215 basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
216 get(char_type& __c);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
217
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
218 basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
219 get(char_type* __s, streamsize __n, char_type __delim);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
220
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
221 inline basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
222 get(char_type* __s, streamsize __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
223
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
224 basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
225 get(basic_streambuf<_CharT, _Traits>& __sb, char_type __delim);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
226
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
227 inline basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
228 get(basic_streambuf<_CharT, _Traits>& __sb);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
229
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
230 basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
231 getline(char_type* __s, streamsize __n, char_type __delim);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
232
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
233 inline basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
234 getline(char_type* __s, streamsize __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
235
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
236 basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
237 ignore(streamsize __n = 1, int_type __delim = _Traits::eof());
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
238
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
239 int_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
240 peek(void);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
241
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
242 basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
243 read(char_type* __s, streamsize __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
244
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
245 streamsize
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
246 readsome(char_type* __s, streamsize __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
247
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
248 basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
249 putback(char_type __c);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
250
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
251 basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
252 unget(void);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
253
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
254 int
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
255 sync(void);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
256
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
257 pos_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
258 tellg(void);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
259
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
260 basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
261 seekg(pos_type);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
262
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
263 basic_istream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
264 seekg(off_type, ios_base::seekdir);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
265 };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
266
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
267 // 27.6.1.5 Template class basic_iostream
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
268 template<typename _CharT, typename _Traits = char_traits<_CharT> >
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
269 class basic_iostream
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
270 : public basic_istream<_CharT, _Traits>,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
271 public basic_ostream<_CharT, _Traits>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
272 {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
273 public:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
274 typedef _CharT char_type;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
275 typedef typename _Traits::int_type int_type;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
276 typedef typename _Traits::pos_type pos_type;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
277 typedef typename _Traits::off_type off_type;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
278 typedef _Traits traits_type;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
279
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
280 explicit
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
281 basic_iostream(basic_streambuf<_CharT, _Traits>* __sb);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
282
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
283 virtual
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
284 ~basic_iostream();
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
285 };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
286
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
287 typedef basic_ostream<char> ostream ;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
288 typedef basic_istream<char> istream;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
289 typedef basic_iostream<char> iostream;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
290
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
291 extern istream cin;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
292 extern ostream cout;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
293 extern ostream cerr;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
294 extern ostream clog;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
295
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
296 #if defined(SWIG_WCHAR)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
297 typedef basic_ostream<wchar_t> wostream;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
298 typedef basic_istream<wchar_t> wistream;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
299 typedef basic_iostream<wchar_t> wiostream;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
300
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
301 extern wistream wcin;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
302 extern wostream wcout;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
303 extern wostream wcerr;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
304 extern wostream wclog;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
305 #endif
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
306
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
307 template<typename _CharT, typename _Traits = char_traits<_CharT> >
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
308 std::basic_ostream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
309 endl(std::basic_ostream<_CharT, _Traits>&);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
310
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
311 template<typename _CharT, typename _Traits = char_traits<_CharT> >
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
312 std::basic_ostream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
313 ends(std::basic_ostream<_CharT, _Traits>&);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
314
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
315 template<typename _CharT, typename _Traits = char_traits<_CharT> >
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
316 std::basic_ostream<_CharT, _Traits>&
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
317 flush(std::basic_ostream<_CharT, _Traits>&);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
318 }
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
319
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
320 namespace std {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
321 %template(ostream) basic_ostream<char>;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
322 %template(istream) basic_istream<char>;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
323 %template(iostream) basic_iostream<char>;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
324
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
325 %template(endl) endl<char, std::char_traits<char> >;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
326 %template(ends) ends<char, std::char_traits<char> >;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
327 %template(flush) flush<char, std::char_traits<char> >;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
328
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
329 #if defined(SWIG_WCHAR)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
330 %template(wostream) basic_ostream<wchar_t>;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
331 %template(wistream) basic_istream<wchar_t>;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
332 %template(wiostream) basic_iostream<wchar_t>;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
333
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
334 %template(wendl) endl<wchar_t, std::char_traits<wchar_t> >;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
335 %template(wends) ends<wchar_t, std::char_traits<wchar_t> >;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
336 %template(wflush) flush<wchar_t, std::char_traits<wchar_t> >;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
337 #endif
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
338 }
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
339