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>
}{wxarray
}
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
}}
97 Erase items. When using values other than built-in integrals
98 or classes with reference counting this can be an inefficient
101 \membersection{wxVector<T>::front
}\label{wxvectorfront
}
103 \constfunc{const value
\_type\&
}{front
}{\void}
105 \func{value
\_type\&
}{front
}{\void}
109 \membersection{wxVector<T>::insert
}\label{wxvectorinsert
}
111 \func{iterator
}{insert
}{\param{iterator
}{it
},
\param{const value
\_type\&
}{v = value
\_type()
}}
113 Insert an item. When using values other than built-in integrals
114 or classes with reference counting this can be an inefficient
117 \membersection{wxVector<T>::operator
[]}\label{wxvectoroperatorunknown
}
119 \constfunc{const value
\_type\&
}{operator
[]}{\param{size
\_type }{idx
}}
121 \func{value
\_type\&
}{operator
[]}{\param{size
\_type }{idx
}}
123 Returns item at position
{\it idx
}.
125 \membersection{wxVector<T>::pop
\_back}\label{wxvectorpopback
}
127 \func{void
}{pop
\_back}{\void}
129 Removes the last item.
131 \membersection{wxVector<T>::push
\_back}\label{wxvectorpushback
}
133 \func{void
}{push
\_back}{\param{const value
\_type\&
}{v
}}
135 Adds an item to the end of the vector.
137 \membersection{wxVector<T>::reserve
}\label{wxvectorreserve
}
139 \func{void
}{reserve
}{\param{size
\_type }{n
}}
141 Reserves more memory of
{\it n
} is greater then
142 \helpref{size
}{wxvectorsize
}. Other this call has
145 \membersection{wxVector<T>::size
}\label{wxvectorsize
}
147 \constfunc{size
\_type}{size
}{\void}
149 Returns the size of the vector.