#include <sharelib.h>
Collaboration diagram for Share::Vector< TItem, TAllocator >:

Public Types | |
| typedef pointer | iterator |
| STL vector iterator equivalent. | |
| typedef const_pointer | const_iterator |
| STL vector const_iterator equivalent. | |
Public Member Functions | |
| Vector () | |
| Vector (size_type size) | |
| Vector (const Vector &other) | |
| Vector & | operator= (const Vector &other) |
| ~Vector () | |
| reference | operator[] (size_type index) |
| const_reference | operator[] (size_type index) const |
| bool | operator== (const Vector &other) const |
| bool | operator!= (const Vector &other) const |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
| void | clear () |
| bool | empty () const |
| void | push_back (const_reference item) |
| void | pop_back () |
| size_type | size () const |
| void | resize (size_type newSize, const_reference val=TItem()) |
Light-weight implementation of STL std::vector
| TItem | Type of object stored in container. | |
| TAllocator | Type of allocator for container. Default is std::allocator. For sharing use Share::Allocator instead. |
Definition at line 725 of file sharelib.h.
| typedef pointer Share::Vector< TItem, TAllocator >::iterator |
| typedef const_pointer Share::Vector< TItem, TAllocator >::const_iterator |
| Share::Vector< TItem, TAllocator >::Vector | ( | ) | [inline] |
Construct empty vector
Definition at line 750 of file sharelib.h.
| Share::Vector< TItem, TAllocator >::Vector | ( | size_type | size | ) | [inline] |
Definition at line 758 of file sharelib.h.
| Share::Vector< TItem, TAllocator >::Vector | ( | const Vector< TItem, TAllocator > & | other | ) | [inline] |
Copy constructor
Definition at line 770 of file sharelib.h.
| Share::Vector< TItem, TAllocator >::~Vector | ( | ) | [inline] |
Definition at line 794 of file sharelib.h.
| Vector& Share::Vector< TItem, TAllocator >::operator= | ( | const Vector< TItem, TAllocator > & | other | ) | [inline] |
assignment
Definition at line 781 of file sharelib.h.
References Share::Vector< TItem, TAllocator >::begin(), Share::Vector< TItem, TAllocator >::end(), and Share::Vector< TItem, TAllocator >::size().
| reference Share::Vector< TItem, TAllocator >::operator[] | ( | size_type | index | ) | [inline] |
Indexer
| index | index |
Definition at line 806 of file sharelib.h.
| const_reference Share::Vector< TItem, TAllocator >::operator[] | ( | size_type | index | ) | const [inline] |
Indexer
| index | index |
Definition at line 813 of file sharelib.h.
| bool Share::Vector< TItem, TAllocator >::operator== | ( | const Vector< TItem, TAllocator > & | other | ) | const [inline] |
equivalence
Definition at line 820 of file sharelib.h.
References Share::Vector< TItem, TAllocator >::begin(), and Share::Vector< TItem, TAllocator >::end().
| bool Share::Vector< TItem, TAllocator >::operator!= | ( | const Vector< TItem, TAllocator > & | other | ) | const [inline] |
| iterator Share::Vector< TItem, TAllocator >::begin | ( | ) | [inline] |
Definition at line 841 of file sharelib.h.
Referenced by Share::String< TAllocator >::begin(), Share::Vector< TItem, TAllocator >::operator=(), and Share::Vector< TItem, TAllocator >::operator==().
| iterator Share::Vector< TItem, TAllocator >::end | ( | ) | [inline] |
Definition at line 848 of file sharelib.h.
Referenced by Share::Vector< TItem, TAllocator >::operator=(), and Share::Vector< TItem, TAllocator >::operator==().
| const_iterator Share::Vector< TItem, TAllocator >::begin | ( | ) | const [inline] |
| const_iterator Share::Vector< TItem, TAllocator >::end | ( | ) | const [inline] |
Definition at line 862 of file sharelib.h.
| void Share::Vector< TItem, TAllocator >::clear | ( | ) | [inline] |
Remove all items from vector.
Definition at line 869 of file sharelib.h.
| bool Share::Vector< TItem, TAllocator >::empty | ( | ) | const [inline] |
| void Share::Vector< TItem, TAllocator >::push_back | ( | const_reference | item | ) | [inline] |
Append item to end of vector.
| item | Item to append. |
Definition at line 888 of file sharelib.h.
| void Share::Vector< TItem, TAllocator >::pop_back | ( | ) | [inline] |
Remove last element of vector
Definition at line 898 of file sharelib.h.
| size_type Share::Vector< TItem, TAllocator >::size | ( | ) | const [inline] |
Definition at line 906 of file sharelib.h.
Referenced by Share::Vector< TItem, TAllocator >::operator=().
| void Share::Vector< TItem, TAllocator >::resize | ( | size_type | newSize, | |
| const_reference | val = TItem() | |||
| ) | [inline] |
Resize vector to desired size.
| newSize | Desired size of vector | |
| val | Value to assign to new object if newSize is greater then current size. |
Definition at line 915 of file sharelib.h.
1.5.2