#include <array.h>
Classes | |
| class | iterator |
Public Member Functions | |
| iterator | begin () |
| void | clear () |
| iterator | end () |
| FastArray (int capacity=10000) | |
| T & | getNext () |
| bool | hasSpace () |
| T & | operator[] (int x) |
| void | push_back (const T &t) |
| int | size () |
| void | sort (int(*comp)(const void *, const void *)) |
| ~FastArray () | |
Private Attributes | |
| int | _capacity |
| T * | _data |
| iterator | _end |
| int | _size |
Definition at line 22 of file array.h.
| mongo::FastArray< T >::FastArray | ( | int | capacity = 10000 |
) | [inline] |
| mongo::FastArray< T >::~FastArray | ( | ) | [inline] |
| iterator mongo::FastArray< T >::begin | ( | ) | [inline] |
| void mongo::FastArray< T >::clear | ( | ) | [inline] |
| iterator mongo::FastArray< T >::end | ( | ) | [inline] |
| T& mongo::FastArray< T >::getNext | ( | ) | [inline] |
| bool mongo::FastArray< T >::hasSpace | ( | ) | [inline] |
| T& mongo::FastArray< T >::operator[] | ( | int | x | ) | [inline] |
| void mongo::FastArray< T >::push_back | ( | const T & | t | ) | [inline] |
| int mongo::FastArray< T >::size | ( | ) | [inline] |
| void mongo::FastArray< T >::sort | ( | int(*)(const void *, const void *) | comp | ) | [inline] |
int mongo::FastArray< T >::_capacity [private] |
T* mongo::FastArray< T >::_data [private] |
iterator mongo::FastArray< T >::_end [private] |
int mongo::FastArray< T >::_size [private] |