![]() |
AGX Dynamics 2.40.0.0
|
Templated stack array class. More...
#include <StackArray.h>
Public Member Functions | |
StackArray () | |
Implementations. | |
StackArray (size_t size, const T &defaultValue=T()) | |
StackArray (std::initializer_list< T > values) | |
T & | at (size_t i) |
const T & | at (size_t i) const |
T & | back () |
const T & | back () const |
const T * | begin () const noexcept |
T * | begin () noexcept |
void | clear () |
bool | empty () const |
Is the StackArray empty? | |
const T * | end () const noexcept |
T * | end () noexcept |
void | erase (size_t index) |
T & | front () |
const T & | front () const |
template<size_t N2> | |
StackArray< T, N > & | operator= (const StackArray< T, N2 > &rhs) |
T & | operator[] (size_t i) |
const T & | operator[] (size_t i) const |
void | pop_back () |
void | push_back (const T &value) |
size_t | size () const |
Get the size of the array (number of filled slots). | |
Templated stack array class.
Should be used for POD classes/structs only.
Definition at line 33 of file agx/StackArray.h.
agx::StackArray< T, N >::StackArray |
agx::StackArray< T, N >::StackArray | ( | size_t | size, |
const T & | defaultValue = T() |
||
) |
Definition at line 138 of file agx/StackArray.h.
References agxAssert, and agx::StackArray< T, N >::size().
|
inline |
Definition at line 148 of file agx/StackArray.h.
References agxAssert, m_elements, and m_size.
T & agx::StackArray< T, N >::at | ( | size_t | i | ) |
Definition at line 187 of file agx/StackArray.h.
References agxAssert, m_elements, and m_size.
const T & agx::StackArray< T, N >::at | ( | size_t | i | ) | const |
Definition at line 195 of file agx/StackArray.h.
References agxAssert, m_elements, and m_size.
T & agx::StackArray< T, N >::back |
Definition at line 225 of file agx/StackArray.h.
References agxAssert, m_elements, and m_size.
const T & agx::StackArray< T, N >::back |
Definition at line 233 of file agx/StackArray.h.
References agxAssert, m_elements, and m_size.
|
noexcept |
Definition at line 263 of file agx/StackArray.h.
References m_elements.
|
noexcept |
void agx::StackArray< T, N >::clear |
Definition at line 218 of file agx/StackArray.h.
References m_size.
bool agx::StackArray< T, N >::empty |
|
noexcept |
Definition at line 275 of file agx/StackArray.h.
References agx::begin().
|
noexcept |
void agx::StackArray< T, N >::erase | ( | size_t | index | ) |
Definition at line 293 of file agx/StackArray.h.
References agxAssert, m_elements, and m_size.
T & agx::StackArray< T, N >::front |
Definition at line 241 of file agx/StackArray.h.
References agxAssert, m_elements, and m_size.
const T & agx::StackArray< T, N >::front |
Definition at line 249 of file agx/StackArray.h.
References agxAssert, m_elements, and m_size.
StackArray< T, N > & agx::StackArray< T, N >::operator= | ( | const StackArray< T, N2 > & | rhs | ) |
Definition at line 127 of file agx/StackArray.h.
References agxAssert, and agx::StackArray< T, N >::size().
T & agx::StackArray< T, N >::operator[] | ( | size_t | i | ) |
Definition at line 171 of file agx/StackArray.h.
References agxAssert, m_elements, and m_size.
const T & agx::StackArray< T, N >::operator[] | ( | size_t | i | ) | const |
Definition at line 179 of file agx/StackArray.h.
References agxAssert, m_elements, and m_size.
void agx::StackArray< T, N >::pop_back |
Definition at line 210 of file agx/StackArray.h.
void agx::StackArray< T, N >::push_back | ( | const T & | value | ) |
Definition at line 202 of file agx/StackArray.h.
References agxAssert, m_elements, and m_size.
Referenced by agxCollide::Polynomial< N >::findRealRootsInInterval(), and agxCollide::Polynomial< N >::findRootsOfQuadraticInInterval().
size_t agx::StackArray< T, N >::size |
Get the size of the array (number of filled slots).
Definition at line 157 of file agx/StackArray.h.
References m_size.
Referenced by agx::StackArray< T, N >::StackArray(), agxCollide::Polynomial< N >::findRealRootsInInterval(), agx::operator<<(), and agx::StackArray< T, N >::operator=().