Home | History | Annotate | Download | only in src

Lines Matching full:list

7 //       notice, this list of conditions and the following disclaimer.
9 // copyright notice, this list of conditions and the following
31 #include "list.h"
38 void List<T, P>::Add(const T& element) {
42 List<T, P>::ResizeAdd(element);
48 void List<T, P>::AddAll(const List<T, P>& other) {
61 void List<T, P>::ResizeAdd(const T& element) {
67 void List<T, P>::ResizeAddInternal(const T& element) {
69 // Grow the list capacity by 50%, but make sure to let it grow
72 // Since the element reference could be an element of the list, copy
81 void List<T, P>::Resize(int new_capacity) {
82 T* new_data = List<T, P>::NewData(new_capacity);
84 List<T, P>::DeleteData(data_);
91 Vector<T> List<T, P>::AddBlock(T value, int count) {
99 T List<T, P>::Remove(int i) {
111 void List<T, P>::Clear() {
118 void List<T, P>::Rewind(int pos) {
124 void List<T, P>::Iterate(void (*callback)(T* x)) {
130 bool List<T, P>::Contains(const T& elm) {
140 void List<T, P>::Sort(int (*cmp)(const T* x, const T* y)) {
150 void List<T, P>::Sort() {
156 void List<T, P>::Initialize(int capacity) {