|
AGX Dynamics
2.37.3.2
|
Vector containing 'raw' data. More...
#include <Vector.h>
Inheritance diagram for agx::VectorPOD< T, Allocator >:Public Types | |
| typedef const T * | const_iterator |
| typedef const T * | const_pointer |
| typedef const T & | const_reference |
| typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
| typedef ptrdiff_t | difference_type |
| typedef T * | iterator |
| typedef T * | pointer |
| typedef T & | reference |
| typedef std::reverse_iterator< iterator > | reverse_iterator |
| typedef size_t | size_type |
| typedef T | Type |
| typedef T | value_type |
Public Types inherited from agx::Container | |
| enum | ClearPolicy { SHRINK_BUFFER, SHRINK_BUFFER_AVERAGED, MAINTAIN_BUFFER } |
| agxData::Values from this enumeration is passed to the subclasses' 'clear' method in order to control what should become of the container's memory. More... | |
Public Member Functions | |
| VectorPOD (const Allocator &allocator=Allocator()) | |
| VectorPOD (size_t size, const T &value=T(), const Allocator &allocator=Allocator()) | |
| VectorPOD (const_iterator first, const_iterator end, const Allocator &allocator=Allocator()) | |
| VectorPOD (std::initializer_list< T > values, const Allocator &allocator=Allocator()) | |
| VectorPOD (const VectorPOD< T, Allocator > &other) | |
| VectorPOD (VectorPOD< T, Allocator > &&other) | |
| ~VectorPOD () | |
| Allocator & | allocator () |
| const Allocator & | allocator () const |
| T & | at (size_t index) const |
| T & | back () const |
| iterator | begin () |
| const_iterator | begin () const |
| void | clear (ClearPolicy policy=SHRINK_BUFFER_AVERAGED) |
| Remove all elements, optionally with maintained buffer allocation. More... | |
| template<typename T2 > | |
| bool | contains (const T2 &element) const |
| Test if the vector contains a certain element. More... | |
| bool | contains (const T &element) const |
| iterator | end () |
| const_iterator | end () const |
| iterator | erase (iterator position) |
| STL erase functionality. More... | |
| iterator | erase (iterator start, iterator end) |
| void | erase (size_t index) |
| Erase elements using indices instead of iterators. More... | |
| void | erase (size_t start, size_t end) |
| iterator | eraseFast (const_iterator position) |
| Fast erase, replacing the erased element with the last element. More... | |
| void | eraseFast (size_t index) |
| template<typename T2 > | |
| size_t | find (const T2 &element) const |
| Find the index to a matching element, return size() if not found. More... | |
| bool | findAndErase (const T &element, bool searchMultiple=false) |
| Find and erase an element. More... | |
| T & | front () const |
| T * | increment (size_t numElements=1) |
| Resize using a increment. More... | |
| iterator | insert (iterator position, const T &value) |
| void | insert (size_t index, const T &value) |
| template<typename InputIterator > | |
| void | insert (const_iterator it, InputIterator first, InputIterator last) |
| void | insert (const_iterator it, std::initializer_list< T > ilist) |
| bool | operator!= (const VectorPOD< T, Allocator > &other) const |
| VectorPOD< T, Allocator > & | operator= (const VectorPOD< T, Allocator > &other) |
| bool | operator== (const VectorPOD< T, Allocator > &other) const |
| Compare with other vector, return true if same size and all pairs are equal. More... | |
| T & | operator[] (size_t i) const |
| void | pop_back () |
| T * | ptr () |
| Get access to the internal data buffer. More... | |
| const T * | ptr () const |
| void | push_back (const T &value) |
| void | push_back (T &&value) |
| reverse_iterator | rbegin () |
| const_reverse_iterator | rbegin () const |
| reverse_iterator | rend () |
| const_reverse_iterator | rend () const |
| void | reserve (size_t size) |
| Reserve capacity in the vector. More... | |
| void | reserveAtLeast (size_t size) |
| Reserve capacity in the vector. More... | |
| void | resize (size_t size) |
| Resize the vector, which then enables direct addressing using the bracket '[]' operator. More... | |
| void | resize (size_t size, const T &value) |
| void | shrink_to_fit () |
| Reduce the capacity of the vector to the actual size (number of elements) More... | |
| void | swap (VectorPOD &other) |
Public Member Functions inherited from agx::Container | |
| size_t | capacity () const |
| Returns the size of the memory are used by the container to store its elements. More... | |
| bool | empty () const |
| void * | ptr () |
| const void * | ptr () const |
| size_t | size () const |
Additional Inherited Members | |
Protected Member Functions inherited from agx::Container | |
| Container () | |
| Container (Container &&other) | |
| Container (const Container &other) | |
| ~Container () | |
Protected Attributes inherited from agx::Container | |
| void * | m_buffer |
| size_t | m_capacity |
| size_t | m_size |
Vector containing 'raw' data.
Same interface as normal vectors, but no element constructors or destructors are executed. New elements are however initialized by basic memory copying from a default instance.
| typedef const T* agx::VectorPOD< T, Allocator >::const_iterator |
| typedef const T* agx::VectorPOD< T, Allocator >::const_pointer |
| typedef const T& agx::VectorPOD< T, Allocator >::const_reference |
| typedef std::reverse_iterator<const_iterator> agx::VectorPOD< T, Allocator >::const_reverse_iterator |
| typedef ptrdiff_t agx::VectorPOD< T, Allocator >::difference_type |
| typedef T* agx::VectorPOD< T, Allocator >::iterator |
| typedef T* agx::VectorPOD< T, Allocator >::pointer |
| typedef T& agx::VectorPOD< T, Allocator >::reference |
| typedef std::reverse_iterator<iterator> agx::VectorPOD< T, Allocator >::reverse_iterator |
| typedef size_t agx::VectorPOD< T, Allocator >::size_type |
| typedef T agx::VectorPOD< T, Allocator >::Type |
| typedef T agx::VectorPOD< T, Allocator >::value_type |
|
explicit |
|
explicit |
|
explicit |
| agx::VectorPOD< T, A >::VectorPOD | ( | std::initializer_list< T > | values, |
| const A & | allocator = Allocator() |
||
| ) |
| agx::VectorPOD< T, A >::VectorPOD | ( | const VectorPOD< T, A > & | other | ) |
| agx::VectorPOD< T, A >::VectorPOD | ( | VectorPOD< T, A > && | other | ) |
| agx::VectorPOD< T, A >::~VectorPOD | ( | ) |
| A & agx::VectorPOD< T, A >::allocator | ( | ) |
| const A & agx::VectorPOD< T, A >::allocator | ( | ) | const |
| T & agx::VectorPOD< T, A >::at | ( | size_t | index | ) | const |
| T & agx::VectorPOD< T, A >::back | ( | ) | const |
Definition at line 1354 of file Vector.h.
Referenced by agx::Event::trigger().
| VectorPOD< T, A >::iterator agx::VectorPOD< T, A >::begin | ( | ) |
Definition at line 1609 of file Vector.h.
Referenced by agx::begin().
| VectorPOD< T, A >::const_iterator agx::VectorPOD< T, A >::begin | ( | ) | const |
| void agx::VectorPOD< T, A >::clear | ( | ClearPolicy | policy = SHRINK_BUFFER_AVERAGED | ) |
Remove all elements, optionally with maintained buffer allocation.
Definition at line 1149 of file Vector.h.
Referenced by agx::Job::clearChildDependencies(), agx::Job::init(), and agx::Job::removeAllDependencies().
| bool agx::VectorPOD< T, A >::contains | ( | const T2 & | element | ) | const |
Test if the vector contains a certain element.
Definition at line 1452 of file Vector.h.
Referenced by agx::Job::hasDependency().
| bool agx::VectorPOD< T, A >::contains | ( | const T & | element | ) | const |
| VectorPOD< T, A >::iterator agx::VectorPOD< T, A >::end | ( | ) |
Definition at line 1612 of file Vector.h.
Referenced by agx::end().
| VectorPOD< T, A >::const_iterator agx::VectorPOD< T, A >::end | ( | ) | const |
| VectorPOD< T, A >::iterator agx::VectorPOD< T, A >::erase | ( | iterator | position | ) |
| VectorPOD< T, A >::iterator agx::VectorPOD< T, A >::erase | ( | iterator | start, |
| iterator | end | ||
| ) |
| void agx::VectorPOD< T, A >::erase | ( | size_t | index | ) |
| void agx::VectorPOD< T, A >::erase | ( | size_t | start, |
| size_t | end | ||
| ) |
| VectorPOD< T, A >::iterator agx::VectorPOD< T, A >::eraseFast | ( | const_iterator | position | ) |
| void agx::VectorPOD< T, A >::eraseFast | ( | size_t | index | ) |
| size_t agx::VectorPOD< T, A >::find | ( | const T2 & | element | ) | const |
| bool agx::VectorPOD< T, A >::findAndErase | ( | const T & | element, |
| bool | searchMultiple = false |
||
| ) |
Find and erase an element.
| element | - Element to search for and erase |
| searchMultiple | Set to true if search should continue after element is found, otherwise the search terminates on first match. |
Definition at line 1478 of file Vector.h.
Referenced by agx::Job::removeDependency().
| T & agx::VectorPOD< T, A >::front | ( | ) | const |
| T * agx::VectorPOD< T, A >::increment | ( | size_t | numElements = 1 | ) |
| VectorPOD< T, A >::iterator agx::VectorPOD< T, A >::insert | ( | iterator | position, |
| const T & | value | ||
| ) |
| void agx::VectorPOD< T, A >::insert | ( | size_t | index, |
| const T & | value | ||
| ) |
| void agx::VectorPOD< T, A >::insert | ( | const_iterator | it, |
| InputIterator | first, | ||
| InputIterator | last | ||
| ) |
| void agx::VectorPOD< T, A >::insert | ( | const_iterator | it, |
| std::initializer_list< T > | ilist | ||
| ) |
| bool agx::VectorPOD< T, A >::operator!= | ( | const VectorPOD< T, A > & | other | ) | const |
| VectorPOD< T, A > & agx::VectorPOD< T, A >::operator= | ( | const VectorPOD< T, A > & | other | ) |
| bool agx::VectorPOD< T, A >::operator== | ( | const VectorPOD< T, A > & | other | ) | const |
| T & agx::VectorPOD< T, A >::operator[] | ( | size_t | i | ) | const |
| void agx::VectorPOD< T, A >::pop_back | ( | ) |
Definition at line 1386 of file Vector.h.
Referenced by agx::Event::trigger().
| T * agx::VectorPOD< T, A >::ptr | ( | ) |
Get access to the internal data buffer.
Definition at line 1324 of file Vector.h.
Referenced by agxData::Array< JacobianElementT >::Array(), agxData::BufferT< T >::commit(), and agx::VectorPOD< agx::Vec6 >::operator=().
| const T * agx::VectorPOD< T, A >::ptr | ( | ) | const |
| void agx::VectorPOD< T, A >::push_back | ( | const T & | value | ) |
Definition at line 1362 of file Vector.h.
Referenced by agx::Job::addDependency(), agxSDK::copyVectors(), and agxOSG::MeshExtractor::triangle().
| void agx::VectorPOD< T, A >::push_back | ( | T && | value | ) |
| VectorPOD< T, A >::reverse_iterator agx::VectorPOD< T, A >::rbegin | ( | ) |
| VectorPOD< T, A >::const_reverse_iterator agx::VectorPOD< T, A >::rbegin | ( | ) | const |
| VectorPOD< T, A >::reverse_iterator agx::VectorPOD< T, A >::rend | ( | ) |
| VectorPOD< T, A >::const_reverse_iterator agx::VectorPOD< T, A >::rend | ( | ) | const |
| void agx::VectorPOD< T, A >::reserve | ( | size_t | size | ) |
| void agx::VectorPOD< T, A >::reserveAtLeast | ( | size_t | size | ) |
Reserve capacity in the vector.
Let vector grow in same way as push_back() does.
| void agx::VectorPOD< T, A >::resize | ( | size_t | size | ) |
| void agx::VectorPOD< T, A >::resize | ( | size_t | size, |
| const T & | value | ||
| ) |
| void agx::VectorPOD< T, A >::shrink_to_fit | ( | ) |
| void agx::VectorPOD< T, A >::swap | ( | VectorPOD< T, Allocator > & | other | ) |
Definition at line 1660 of file Vector.h.
Referenced by agx::swap().