|
The Pedigree Project 0.1
|
A vector / dynamic array. More...
#include <Vector.h>
Inheritance diagram for Vector< T >:
Collaboration diagram for Vector< T >:Classes | |
| struct | ReverseIteratorContainer |
Public Types | |
| typedef T * | Iterator |
| typedef T const * | ConstIterator |
| typedef ReverseIteratorContainer< T * > | ReverseIterator |
| typedef ReverseIteratorContainer< const T * > | ConstReverseIterator |
Public Member Functions | |
| Vector () | |
| Vector (size_t size) | |
| Vector (const Vector &x) | |
| ~Vector () | |
| Vector & | operator= (const Vector &x) |
| T & | operator[] (size_t index) |
| const T & | operator[] (size_t index) const |
| size_t | size () const |
| size_t | count () const |
| void | pushBack (const T &value) |
| template<class... Args> | |
| void | createBack (Args &&... args) |
| void | pushBack (T &&value) |
| T | popBack () |
| void | pushFront (const T &value) |
| void | pushFront (T &&value) |
| T | popFront () |
| void | setAt (size_t idx, const T &value) |
| void | swap (Iterator a, Iterator b) |
| void | swap (Vector &other) noexcept |
| void | insert (size_t index, const T &value) |
| void | clear (bool freeMem=false) |
| void | erase (size_t index) |
| Iterator | erase (Iterator iter) |
| ReverseIterator | erase (ReverseIterator iter) |
| Iterator | begin () |
| ConstIterator | begin () const |
| Iterator | end () |
| ConstIterator | end () const |
| ReverseIterator | rbegin () |
| ConstReverseIterator | rbegin () const |
| ReverseIterator | rend () |
| ConstReverseIterator | rend () const |
| void | assign (const Vector &x) |
| void | reserve (size_t size, bool copy) |
| bool | tryReserve (size_t size, bool copy=true) |
Private Member Functions | |
| void | reserve (size_t size, bool copy, bool free) |
Private Attributes | |
| size_t | m_Size |
| size_t | m_Count |
| size_t | m_Start |
| T * | m_Data |
Static Private Attributes | |
| static const int | m_ReserveFactor = 2 |
A vector / dynamic array.
General Vector template class, aka dynamic array
| typedef T const* Vector< T >::ConstIterator |
| typedef ReverseIteratorContainer<const T*> Vector< T >::ConstReverseIterator |
| typedef T* Vector< T >::Iterator |
| typedef ReverseIteratorContainer<T*> Vector< T >::ReverseIterator |
Get an iterator pointing to the beginning of the Vector
Definition at line 162 of file Vector.h.
Referenced by Process::acquireThread(), Process::acquireThreadById(), Process::beginTermination(), HostedVirtualAddressSpace::clone(), X64VirtualAddressSpace::clone(), RadixTree< T >::cloneNode(), NetworkStack::deRegisterDevice(), Scheduler::drainDeferredTimeAccounting(), IoCommand::execute(), IoPortManager::free(), Process::installTerminalOwner(), Process::publishTerminationReapable(), Device::removeChild(), Device::removeChild(), Process::removeThread(), Device::replaceChild(), Arm64PhysicalMemoryManager::unmapRegion(), Armv7PhysicalMemoryManager::unmapRegion(), and Process::~Process().
Here is the caller graph for this function:
|
inline |
Get an iterator pointing to the last element + 1
Definition at line 172 of file Vector.h.
Referenced by Process::acquireThread(), Process::acquireThreadById(), Process::beginTermination(), HostedVirtualAddressSpace::clone(), X64VirtualAddressSpace::clone(), RadixTree< T >::cloneNode(), NetworkStack::deRegisterDevice(), Scheduler::drainDeferredTimeAccounting(), IoCommand::execute(), IoPortManager::free(), Scheduler::initialise(), X64GdtManager::initialise(), Process::installTerminalOwner(), Process::publishTerminationReapable(), Device::removeChild(), Device::removeChild(), Process::removeThread(), Device::replaceChild(), HostedPhysicalMemoryManager::unmapRegion(), X86CommonPhysicalMemoryManager::unmapRegion(), Arm64PhysicalMemoryManager::unmapRegion(), Armv7PhysicalMemoryManager::unmapRegion(), and Process::~Process().
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
staticprivate |
|
private |
|
private |