Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: swig/Lib/std/std_container.i

Issue 553095: Checkin swig binaries for win, linux and Mac... (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: '' Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « swig/Lib/std/std_common.i ('k') | swig/Lib/std/std_deque.i » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 %include <std_common.i>
2 %include <exception.i>
3 %include <std_alloc.i>
4
5 %{
6 #include <algorithm>
7 %}
8
9 // Common container methods
10
11 %define %std_container_methods(container...)
12 container();
13 container(const container&);
14
15 bool empty() const;
16 size_type size() const;
17 void clear();
18
19 void swap(container& v);
20
21 allocator_type get_allocator() const;
22
23 #ifdef SWIG_EXPORT_ITERATOR_METHODS
24 class iterator;
25 class reverse_iterator;
26 class const_iterator;
27 class const_reverse_iterator;
28
29 const_iterator begin() const;
30 const_iterator end() const;
31 const_reverse_iterator rbegin() const;
32 const_reverse_iterator rend() const;
33 #endif
34
35 %enddef
36
37 // Common sequence
38
39 %define %std_sequence_methods_common(sequence)
40
41 %std_container_methods(%arg(sequence));
42
43 sequence(size_type size);
44 void pop_back();
45
46 void resize(size_type new_size);
47
48 #ifdef SWIG_EXPORT_ITERATOR_METHODS
49 iterator erase(iterator pos);
50 iterator erase(iterator first, iterator last);
51 #endif
52
53 %enddef
54
55
56 %define %std_sequence_methods(sequence)
57
58 %std_sequence_methods_common(%arg(sequence));
59
60 sequence(size_type size, const value_type& value);
61 void push_back(const value_type& x);
62
63 const value_type& front() const;
64 const value_type& back() const;
65
66 void assign(size_type n, const value_type& x);
67
68 void resize(size_type new_size, const value_type& x);
69
70 #ifdef SWIG_EXPORT_ITERATOR_METHODS
71 iterator insert(iterator pos, const value_type& x);
72 void insert(iterator pos, size_type n, const value_type& x);
73 #endif
74
75 %enddef
76
77 %define %std_sequence_methods_val(sequence...)
78
79 %std_sequence_methods_common(%arg(sequence));
80
81 sequence(size_type size, value_type value);
82 void push_back(value_type x);
83
84 value_type front() const;
85 value_type back() const;
86
87 void assign(size_type n, value_type x);
88
89 void resize(size_type new_size, value_type x);
90
91 #ifdef SWIG_EXPORT_ITERATOR_METHODS
92 iterator insert(iterator pos, value_type x);
93 void insert(iterator pos, size_type n, value_type x);
94 #endif
95
96 %enddef
97
98
99 //
100 // Ignore member methods for Type with no default constructor
101 //
102 %define %std_nodefconst_type(Type...)
103 %feature("ignore") std::vector<Type >::vector(size_type size);
104 %feature("ignore") std::vector<Type >::resize(size_type size);
105 %feature("ignore") std::deque<Type >::deque(size_type size);
106 %feature("ignore") std::deque<Type >::resize(size_type size);
107 %feature("ignore") std::list<Type >::list(size_type size);
108 %feature("ignore") std::list<Type >::resize(size_type size);
109 %enddef
OLDNEW
« no previous file with comments | « swig/Lib/std/std_common.i ('k') | swig/Lib/std/std_deque.i » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698