1 \section{\class{wxVector<T>
}}\label{wxvector
}
3 wxVector is a template which implements most of the std::vector
4 class and can be used like. If wxWidgets is compiled in STL mode,
5 wxVector will just be a typedef to std::vector. You should
6 refer to the STL documentation for further information.
8 \wxheading{Derived from
}
12 \wxheading{Include files
}
18 \helpref{Container classes overview
}{wxcontaineroverview
},
19 \helpref{wxList<T>
}{wxlist
},
20 \helpref{wxArray<T>
}{wxvector
}
22 \membersection{wxVector<T>::wxVector<T>
}\label{wxvectorwxvector
}
24 \func{}{wxVector<T>
}{\void}
26 \func{}{wxVector<T>
}{\param{const wxVector<T>\&
}{c
}}
30 \membersection{wxVector<T>::
\destruct{wxVector<T>
}}\label{wxvectordtor
}
32 \func{}{\destruct{wxVector<T>
}}{\void}
36 \membersection{wxVector<T>::operator=
}\label{wxvectoroperatorassign
}
38 \func{wxVector<T>\& operator
}{operator=
}{\param{const wxVector<T>\&
}{vb
}}
42 \membersection{wxVector<T>::at
}\label{wxvectorat
}
44 \constfunc{const value
\_type\&
}{at
}{\param{size
\_type }{idx
}}
46 \func{value
\_type\&
}{at
}{\param{size
\_type }{idx
}}
48 Returns item at position
{\it idx
}.
50 \membersection{wxVector<T>::back
}\label{wxvectorback
}
52 \constfunc{const value
\_type\&
}{back
}{\void}
54 \func{value
\_type\&
}{back
}{\void}
58 \membersection{wxVector<T>::begin
}\label{wxvectorbegin
}
60 \constfunc{const
\_iterator}{begin
}{\void}
62 \func{iterator
}{begin
}{\void}
64 Return iterator to beginning of the vector.
66 \membersection{wxVector<T>::capacity
}\label{wxvectorcapacity
}
68 \constfunc{size
\_type}{capacity
}{\void}
71 \membersection{wxVector<T>::clear
}\label{wxvectorclear
}
73 \func{void
}{clear
}{\void}
77 \membersection{wxVector<T>::empty
}\label{wxvectorempty
}
79 \constfunc{bool
}{empty
}{\void}
81 Returns true if the vector is empty.
83 \membersection{wxVector<T>::end
}\label{wxvectorend
}
85 \constfunc{const
\_iterator}{end
}{\void}
87 \func{iterator
}{end
}{\void}
89 Returns iterator to the end of the vector.
91 \membersection{wxVector<T>::erase
}\label{wxvectorerase
}
93 \func{iterator
}{erase
}{\param{iterator
}{it
}}
95 \func{iterator
}{erase
}{\param{iterator
}{first
},
\param{iterator
}{last
}}
99 \membersection{wxVector<T>::front
}\label{wxvectorfront
}
101 \constfunc{const value
\_type\&
}{front
}{\void}
103 \func{value
\_type\&
}{front
}{\void}
107 \membersection{wxVector<T>::insert
}\label{wxvectorinsert
}
109 \func{iterator
}{insert
}{\param{iterator
}{it
},
\param{const value
\_type\&
}{v = value
\_type()
}}
111 Insert an item. When using values other than built-in integrals
112 or classes with reference counting this can be a very inefficient
115 \membersection{wxVector<T>::operator
[]}\label{wxvectoroperatorunknown
}
117 \constfunc{const value
\_type\&
}{operator
[]}{\param{size
\_type }{idx
}}
119 \func{value
\_type\&
}{operator
[]}{\param{size
\_type }{idx
}}
121 Returns item at position
{\it idx
}.
123 \membersection{wxVector<T>::pop
\_back}\label{wxvectorpopback
}
125 \func{void
}{pop
\_back}{\void}
127 Removes the last item.
129 \membersection{wxVector<T>::push
\_back}\label{wxvectorpushback
}
131 \func{void
}{push
\_back}{\param{const value
\_type\&
}{v
}}
133 Adds an item to the end of the vector.
135 \membersection{wxVector<T>::reserve
}\label{wxvectorreserve
}
137 \func{void
}{reserve
}{\param{size
\_type }{n
}}
139 Reserves more memory of
{\it n
} is greater then
140 \helpref{size
}{wxvectorsize
}. Other this call has
143 \membersection{wxVector<T>::size
}\label{wxvectorsize
}
145 \constfunc{size
\_type}{size
}{\void}
147 Returns the size of the vector.