OGRE-Next
2.3
Object-Oriented Graphics Rendering Engine
|
Compact implementation similar to std::array. More...
#include <OgreStackVector.h>
Public Types | |
typedef const T * | const_iterator |
typedef T * | iterator |
typedef T | value_type |
Public Member Functions | |
StackVector () | |
template<size_t C> | |
StackVector (const StackVector< T, C > ©) | |
StackVector (size_t count, const T &value) | |
Creates an array pushing the value N times. More... | |
~StackVector () | |
void | appendPOD (const_iterator otherBegin, const_iterator otherEnd) |
T & | back () |
const T & | back () const |
iterator | begin () |
const_iterator | begin () const |
size_t | capacity () const |
void | clear () |
T * | data () |
const T * | data () const |
void | destroy () |
bool | empty () const |
iterator | end () |
const_iterator | end () const |
iterator | erase (iterator first, iterator last) |
iterator | erase (iterator toErase) |
iterator | erasePOD (iterator first, iterator last) |
T & | front () |
const T & | front () const |
iterator | insert (iterator where, const T &val) |
iterator | insertPOD (iterator where, const_iterator otherBegin, const_iterator otherEnd) |
otherBegin & otherEnd must not overlap with this->begin() and this->end() More... | |
template<size_t C> | |
void | operator= (const StackVector< T, C > ©) |
T & | operator[] (size_t idx) |
const T & | operator[] (size_t idx) const |
void | pop_back () |
void | push_back (const T &val) |
void | resize (size_t newSize, const T &value=T()) |
void | resizePOD (size_t newSize, const T &value=T()) |
size_t | size () const |
Compact implementation similar to std::array.
It will assert on buffer overflows, but it asserts are disabled, it will let them happen.
typedef const T* Ogre::StackVector< T, Capacity >::const_iterator |
typedef T* Ogre::StackVector< T, Capacity >::iterator |
typedef T Ogre::StackVector< T, Capacity >::value_type |
|
inline |
|
inline |
References OGRE_ASSERT_LOW.
|
inline |
Creates an array pushing the value N times.
|
inline |
References Ogre::StackVector< T, Capacity >::destroy().
|
inline |
References OGRE_ASSERT_LOW.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by Ogre::StackVector< T, Capacity >::operator=().
|
inline |
|
inline |
Referenced by Ogre::StackVector< T, Capacity >::~StackVector().
|
inline |
|
inline |
|
inline |
|
inline |
References Ogre::StackVector< T, Capacity >::end().
|
inline |
|
inline |
References Ogre::StackVector< T, Capacity >::end().
|
inline |
|
inline |
|
inline |
References OGRE_ASSERT_LOW.
|
inline |
otherBegin & otherEnd must not overlap with this->begin() and this->end()
References OGRE_ASSERT_LOW.
|
inline |
|
inline |
|
inline |
|
inline |
References OGRE_ASSERT_LOW.
|
inline |
References OGRE_ASSERT_LOW.
|
inline |
References OGRE_ASSERT_LOW.
|
inline |
References OGRE_ASSERT_LOW.
|
inline |
Referenced by Ogre::StackVector< T, Capacity >::operator=().