A hashed vector. More...
#include <OgreCommon.h>
Public Types | |
typedef std::vector< T, STLAllocator< T, GeneralAllocPolicy > > | VectorImpl |
typedef VectorImpl::value_type | value_type |
typedef VectorImpl::pointer | pointer |
typedef VectorImpl::reference | reference |
typedef VectorImpl::const_reference | const_reference |
typedef VectorImpl::size_type | size_type |
typedef VectorImpl::difference_type | difference_type |
typedef VectorImpl::iterator | iterator |
typedef VectorImpl::const_iterator | const_iterator |
typedef VectorImpl::reverse_iterator | reverse_iterator |
typedef VectorImpl::const_reverse_iterator | const_reverse_iterator |
Public Member Functions | |
void | dirtyHash () |
bool | isHashDirty () const |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
reverse_iterator | rbegin () |
reverse_iterator | rend () |
const_reverse_iterator | rbegin () const |
const_reverse_iterator | rend () const |
size_type | size () const |
size_type | max_size () const |
size_type | capacity () const |
bool | empty () const |
reference | operator[] (size_type n) |
const_reference | operator[] (size_type n) const |
reference | at (size_type n) |
const_reference | at (size_type n) const |
HashedVector () | |
HashedVector (size_type n) | |
HashedVector (size_type n, const T &t) | |
HashedVector (const HashedVector< T > &rhs) | |
template<class InputIterator > | |
HashedVector (InputIterator a, InputIterator b) | |
~HashedVector () | |
HashedVector< T > & | operator= (const HashedVector< T > &rhs) |
void | reserve (size_t t) |
reference | front () |
const_reference | front () const |
reference | back () |
const_reference | back () const |
void | push_back (const T &t) |
void | pop_back () |
void | swap (HashedVector< T > &rhs) |
iterator | insert (iterator pos, const T &t) |
template<class InputIterator > | |
void | insert (iterator pos, InputIterator f, InputIterator l) |
void | insert (iterator pos, size_type n, const T &x) |
iterator | erase (iterator pos) |
iterator | erase (iterator first, iterator last) |
void | clear () |
void | resize (size_type n, const T &t=T()) |
bool | operator== (const HashedVector< T > &b) |
bool | operator< (const HashedVector< T > &b) |
uint32 | getHash () const |
Get the hash value. | |
Protected Member Functions | |
void | addToHash (const T &newPtr) const |
void | recalcHash () const |
Protected Attributes | |
VectorImpl | mList |
uint32 | mListHash |
bool | mListHashDirty |
A hashed vector.
Definition at line 333 of file OgreCommon.h.
typedef VectorImpl::const_iterator Ogre::HashedVector< T >::const_iterator |
Definition at line 363 of file OgreCommon.h.
typedef VectorImpl::const_reference Ogre::HashedVector< T >::const_reference |
Definition at line 359 of file OgreCommon.h.
typedef VectorImpl::const_reverse_iterator Ogre::HashedVector< T >::const_reverse_iterator |
Definition at line 365 of file OgreCommon.h.
typedef VectorImpl::difference_type Ogre::HashedVector< T >::difference_type |
Definition at line 361 of file OgreCommon.h.
typedef VectorImpl::iterator Ogre::HashedVector< T >::iterator |
Definition at line 362 of file OgreCommon.h.
typedef VectorImpl::pointer Ogre::HashedVector< T >::pointer |
Definition at line 357 of file OgreCommon.h.
typedef VectorImpl::reference Ogre::HashedVector< T >::reference |
Definition at line 358 of file OgreCommon.h.
typedef VectorImpl::reverse_iterator Ogre::HashedVector< T >::reverse_iterator |
Definition at line 364 of file OgreCommon.h.
typedef VectorImpl::size_type Ogre::HashedVector< T >::size_type |
Definition at line 360 of file OgreCommon.h.
typedef VectorImpl::value_type Ogre::HashedVector< T >::value_type |
Definition at line 356 of file OgreCommon.h.
typedef std::vector<T, STLAllocator<T, GeneralAllocPolicy> > Ogre::HashedVector< T >::VectorImpl |
Definition at line 336 of file OgreCommon.h.
Ogre::HashedVector< T >::HashedVector | ( | ) |
Definition at line 412 of file OgreCommon.h.
Ogre::HashedVector< T >::HashedVector | ( | size_type | n | ) |
Definition at line 413 of file OgreCommon.h.
Ogre::HashedVector< T >::HashedVector | ( | size_type | n, | |
const T & | t | |||
) |
Definition at line 414 of file OgreCommon.h.
Ogre::HashedVector< T >::HashedVector | ( | const HashedVector< T > & | rhs | ) |
Definition at line 415 of file OgreCommon.h.
Ogre::HashedVector< T >::HashedVector | ( | InputIterator | a, | |
InputIterator | b | |||
) |
Definition at line 419 of file OgreCommon.h.
Ogre::HashedVector< T >::~HashedVector | ( | ) |
Definition at line 425 of file OgreCommon.h.
void Ogre::HashedVector< T >::addToHash | ( | const T & | newPtr | ) | const [protected] |
Definition at line 342 of file OgreCommon.h.
Referenced by Ogre::HashedVector< Light * >::insert(), Ogre::HashedVector< Light * >::push_back(), and Ogre::HashedVector< Light * >::recalcHash().
const_reference Ogre::HashedVector< T >::at | ( | size_type | n | ) | const |
Definition at line 411 of file OgreCommon.h.
reference Ogre::HashedVector< T >::at | ( | size_type | n | ) |
Definition at line 405 of file OgreCommon.h.
const_reference Ogre::HashedVector< T >::back | ( | ) | const |
Definition at line 448 of file OgreCommon.h.
reference Ogre::HashedVector< T >::back | ( | ) |
Definition at line 442 of file OgreCommon.h.
const_iterator Ogre::HashedVector< T >::begin | ( | ) | const |
Definition at line 383 of file OgreCommon.h.
iterator Ogre::HashedVector< T >::begin | ( | ) |
Definition at line 376 of file OgreCommon.h.
size_type Ogre::HashedVector< T >::capacity | ( | ) | const |
Definition at line 396 of file OgreCommon.h.
void Ogre::HashedVector< T >::clear | ( | ) |
Definition at line 503 of file OgreCommon.h.
void Ogre::HashedVector< T >::dirtyHash | ( | ) |
Definition at line 367 of file OgreCommon.h.
Referenced by Ogre::HashedVector< Light * >::at(), Ogre::HashedVector< Light * >::back(), Ogre::HashedVector< Light * >::begin(), Ogre::HashedVector< Light * >::erase(), Ogre::HashedVector< Light * >::front(), Ogre::HashedVector< Light * >::HashedVector(), Ogre::HashedVector< Light * >::insert(), Ogre::HashedVector< Light * >::operator[](), Ogre::HashedVector< Light * >::pop_back(), Ogre::HashedVector< Light * >::rbegin(), Ogre::HashedVector< Light * >::resize(), and Ogre::HashedVector< Light * >::swap().
bool Ogre::HashedVector< T >::empty | ( | ) | const |
Definition at line 397 of file OgreCommon.h.
const_iterator Ogre::HashedVector< T >::end | ( | ) | const |
Definition at line 384 of file OgreCommon.h.
iterator Ogre::HashedVector< T >::end | ( | ) |
Definition at line 382 of file OgreCommon.h.
Referenced by Ogre::HashedVector< Light * >::insert().
iterator Ogre::HashedVector< T >::erase | ( | iterator | first, | |
iterator | last | |||
) |
Definition at line 497 of file OgreCommon.h.
iterator Ogre::HashedVector< T >::erase | ( | iterator | pos | ) |
Definition at line 491 of file OgreCommon.h.
const_reference Ogre::HashedVector< T >::front | ( | ) | const |
Definition at line 441 of file OgreCommon.h.
reference Ogre::HashedVector< T >::front | ( | ) |
Definition at line 435 of file OgreCommon.h.
uint32 Ogre::HashedVector< T >::getHash | ( | ) | const |
Get the hash value.
Definition at line 529 of file OgreCommon.h.
void Ogre::HashedVector< T >::insert | ( | iterator | pos, | |
size_type | n, | |||
const T & | x | |||
) |
Definition at line 485 of file OgreCommon.h.
void Ogre::HashedVector< T >::insert | ( | iterator | pos, | |
InputIterator | f, | |||
InputIterator | l | |||
) |
Definition at line 478 of file OgreCommon.h.
iterator Ogre::HashedVector< T >::insert | ( | iterator | pos, | |
const T & | t | |||
) |
Definition at line 466 of file OgreCommon.h.
bool Ogre::HashedVector< T >::isHashDirty | ( | ) | const |
Definition at line 371 of file OgreCommon.h.
Referenced by Ogre::HashedVector< Light * >::getHash(), and Ogre::HashedVector< Light * >::push_back().
size_type Ogre::HashedVector< T >::max_size | ( | ) | const |
Definition at line 395 of file OgreCommon.h.
bool Ogre::HashedVector< T >::operator< | ( | const HashedVector< T > & | b | ) |
Definition at line 524 of file OgreCommon.h.
HashedVector<T>& Ogre::HashedVector< T >::operator= | ( | const HashedVector< T > & | rhs | ) |
Definition at line 426 of file OgreCommon.h.
bool Ogre::HashedVector< T >::operator== | ( | const HashedVector< T > & | b | ) |
Definition at line 521 of file OgreCommon.h.
const_reference Ogre::HashedVector< T >::operator[] | ( | size_type | n | ) | const |
Definition at line 404 of file OgreCommon.h.
reference Ogre::HashedVector< T >::operator[] | ( | size_type | n | ) |
Definition at line 398 of file OgreCommon.h.
void Ogre::HashedVector< T >::pop_back | ( | ) |
Definition at line 456 of file OgreCommon.h.
void Ogre::HashedVector< T >::push_back | ( | const T & | t | ) |
Definition at line 449 of file OgreCommon.h.
const_reverse_iterator Ogre::HashedVector< T >::rbegin | ( | ) | const |
Definition at line 392 of file OgreCommon.h.
reverse_iterator Ogre::HashedVector< T >::rbegin | ( | ) |
Definition at line 385 of file OgreCommon.h.
void Ogre::HashedVector< T >::recalcHash | ( | ) | const [protected] |
Definition at line 346 of file OgreCommon.h.
Referenced by Ogre::HashedVector< Light * >::getHash().
const_reverse_iterator Ogre::HashedVector< T >::rend | ( | ) | const |
Definition at line 393 of file OgreCommon.h.
reverse_iterator Ogre::HashedVector< T >::rend | ( | ) |
Definition at line 391 of file OgreCommon.h.
void Ogre::HashedVector< T >::reserve | ( | size_t | t | ) |
Definition at line 434 of file OgreCommon.h.
void Ogre::HashedVector< T >::resize | ( | size_type | n, | |
const T & | t = T() | |||
) |
Definition at line 510 of file OgreCommon.h.
size_type Ogre::HashedVector< T >::size | ( | ) | const |
Definition at line 394 of file OgreCommon.h.
Referenced by Ogre::HashedVector< Light * >::resize().
void Ogre::HashedVector< T >::swap | ( | HashedVector< T > & | rhs | ) |
Definition at line 461 of file OgreCommon.h.
VectorImpl Ogre::HashedVector< T >::mList [protected] |
Definition at line 338 of file OgreCommon.h.
Referenced by Ogre::HashedVector< Light * >::at(), Ogre::HashedVector< Light * >::back(), Ogre::HashedVector< Light * >::begin(), Ogre::HashedVector< Light * >::capacity(), Ogre::HashedVector< Light * >::clear(), Ogre::HashedVector< Light * >::empty(), Ogre::HashedVector< Light * >::end(), Ogre::HashedVector< Light * >::erase(), Ogre::HashedVector< Light * >::front(), Ogre::HashedVector< Light * >::insert(), Ogre::HashedVector< Light * >::max_size(), Ogre::HashedVector< Light * >::operator=(), Ogre::HashedVector< Light * >::operator[](), Ogre::HashedVector< Light * >::pop_back(), Ogre::HashedVector< Light * >::push_back(), Ogre::HashedVector< Light * >::rbegin(), Ogre::HashedVector< Light * >::recalcHash(), Ogre::HashedVector< Light * >::rend(), Ogre::HashedVector< Light * >::reserve(), Ogre::HashedVector< Light * >::resize(), Ogre::HashedVector< Light * >::size(), and Ogre::HashedVector< Light * >::swap().
uint32 Ogre::HashedVector< T >::mListHash [mutable, protected] |
Definition at line 339 of file OgreCommon.h.
Referenced by Ogre::HashedVector< Light * >::addToHash(), Ogre::HashedVector< Light * >::clear(), Ogre::HashedVector< Light * >::getHash(), Ogre::HashedVector< Light * >::operator<(), Ogre::HashedVector< Light * >::operator=(), Ogre::HashedVector< Light * >::operator==(), and Ogre::HashedVector< Light * >::recalcHash().
bool Ogre::HashedVector< T >::mListHashDirty [mutable, protected] |
Definition at line 340 of file OgreCommon.h.
Referenced by Ogre::HashedVector< Light * >::clear(), Ogre::HashedVector< Light * >::dirtyHash(), Ogre::HashedVector< Light * >::isHashDirty(), Ogre::HashedVector< Light * >::operator=(), and Ogre::HashedVector< Light * >::recalcHash().
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Fri May 25 23:37:14 2012