OGRE 14.3
Object-Oriented Graphics Rendering Engine
|
VectorSet is basically a helper to use a vector as a small set container. More...
#include <OgreVectorSet.h>
Public Types | |
typedef SmallVector< T, S >::iterator | iterator |
Public Types inherited from Ogre::SmallVectorImpl< T > | |
typedef SuperClass::iterator | iterator |
typedef SuperClass::size_type | size_type |
Public Types inherited from Ogre::SmallVectorTemplateCommon< T > | |
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 | value_type |
Additional Inherited Members | |
Static Public Member Functions inherited from Ogre::SmallVectorTemplateBase< T, isPodLike< T >::value > | |
static void | destroy_range (T *S, T *E) |
static void | uninitialized_copy (It1 I, It1 E, It2 Dest) |
uninitialized_copy - Copy the range [I, E) onto the uninitialized memory starting with "Dest", constructing elements into it as needed. | |
VectorSet is basically a helper to use a vector as a small set container.
Also these functions keep the code clean and fast. You can insert in O(1) time, if you know that it doesn't exists. You can remove in O(1) time, if you know the position of the item.
typedef SmallVector<T,S>::iterator Ogre::VectorSet< T, S >::iterator |
References OgreAssertDbg.
VectorSet< T, S >::iterator Ogre::VectorSet< T, S >::add | ( | const T & | item | ) |
References OgreAssertDbg.
References OgreAssertDbg.
VectorSet< T, S >::iterator Ogre::VectorSet< T, S >::find | ( | const T & | item | ) |
VectorSet< T, S >::iterator Ogre::VectorSet< T, S >::findExists | ( | const T & | item | ) |
References OgreAssertDbg.