annotate lib/swig/swigwin-2.0.11/Lib/std/std_streambuf.i @ 1980:c1c74df0a33e

changing most of auto types to their actual types
author Grumpy7
date Wed, 30 Oct 2013 00:47:37 -0700
parents b3009adc0e2f
children
rev   line source
1899
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
1 %include <std_ios.i>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
2 %{
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
3 #ifndef SWIG_STD_NOMODERN_STL
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
4 #include <streambuf>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
5 #else
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
6 #include <streambuf.h>
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
7 #endif
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
8 %}
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
9
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
10 namespace std {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
11
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
12 template<typename _CharT, typename _Traits = char_traits<_CharT> >
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
13 class basic_streambuf
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
14 {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
15 public:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
16 // Types:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
17 typedef _CharT char_type;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
18 typedef _Traits traits_type;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
19 typedef typename traits_type::int_type int_type;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
20 typedef typename traits_type::pos_type pos_type;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
21 typedef typename traits_type::off_type off_type;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
22
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
23 public:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
24 virtual
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
25 ~basic_streambuf();
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
26
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
27 // Locales:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
28 locale
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
29 pubimbue(const locale &__loc);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
30
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
31 locale
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
32 getloc() const;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
33
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
34 // Buffer and positioning:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
35 basic_streambuf<_CharT, _Traits>*
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
36 pubsetbuf(char_type* __s, streamsize __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
37
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
38 pos_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
39 pubseekoff(off_type __off, ios_base::seekdir __way,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
40 ios_base::openmode __mode = std::ios_base::in | std::ios_base::out);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
41
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
42 pos_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
43 pubseekpos(pos_type __sp,
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
44 ios_base::openmode __mode = std::ios_base::in | std::ios_base::out);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
45
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
46 int
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
47 pubsync() ;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
48
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
49 // Get and put areas:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
50 // Get area:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
51 streamsize
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
52 in_avail();
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
53
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
54 int_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
55 snextc();
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
56
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
57 int_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
58 sbumpc();
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
59
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
60 int_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
61 sgetc();
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
62
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
63 streamsize
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
64 sgetn(char_type* __s, streamsize __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
65
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
66 // Putback:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
67 int_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
68 sputbackc(char_type __c);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
69
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
70 int_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
71 sungetc();
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
72
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
73 // Put area:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
74 int_type
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
75 sputc(char_type __c);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
76
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
77 streamsize
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
78 sputn(const char_type* __s, streamsize __n);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
79
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
80 protected:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
81 basic_streambuf();
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
82
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
83 private:
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
84 basic_streambuf(const basic_streambuf&);
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
85
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
86 };
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
87 }
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
88
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
89 namespace std {
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
90 %template(streambuf) basic_streambuf<char>;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
91 #if defined(SWIG_WCHAR)
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
92 %template(wstreambuf) basic_streambuf<wchar_t>;
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
93 #endif
b3009adc0e2f Adding swig, gitignore, hgignore
Nomad
parents:
diff changeset
94 }