OGRE  1.8
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::HashedVector< T > Class Template Reference

A hashed vector. More...

#include <OgreCommon.h>

Public Types

typedef VectorImpl::const_iterator const_iterator
 
typedef VectorImpl::const_reference const_reference
 
typedef
VectorImpl::const_reverse_iterator 
const_reverse_iterator
 
typedef VectorImpl::difference_type difference_type
 
typedef VectorImpl::iterator iterator
 
typedef VectorImpl::pointer pointer
 
typedef VectorImpl::reference reference
 
typedef
VectorImpl::reverse_iterator 
reverse_iterator
 
typedef VectorImpl::size_type size_type
 
typedef VectorImpl::value_type value_type
 
typedef std::vector< T,
STLAllocator< T,
GeneralAllocPolicy > > 
VectorImpl
 

Public Member Functions

 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 ()
 
reference at (size_type n)
 
const_reference at (size_type n) const
 
reference back ()
 
const_reference back () const
 
iterator begin ()
 
const_iterator begin () const
 
size_type capacity () const
 
void clear ()
 
void dirtyHash ()
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
iterator erase (iterator pos)
 
iterator erase (iterator first, iterator last)
 
reference front ()
 
const_reference front () const
 
uint32 getHash () const
 Get the hash value. More...
 
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)
 
bool isHashDirty () const
 
size_type max_size () const
 
bool operator< (const HashedVector< T > &b)
 
HashedVector< T > & operator= (const HashedVector< T > &rhs)
 
bool operator== (const HashedVector< T > &b)
 
reference operator[] (size_type n)
 
const_reference operator[] (size_type n) const
 
void pop_back ()
 
void push_back (const T &t)
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
void reserve (size_t t)
 
void resize (size_type n, const T &t=T())
 
size_type size () const
 
void swap (HashedVector< T > &rhs)
 

Protected Member Functions

void addToHash (const T &newPtr) const
 
void recalcHash () const
 

Protected Attributes

VectorImpl mList
 
uint32 mListHash
 
bool mListHashDirty
 

Detailed Description

template<typename T>
class Ogre::HashedVector< T >

A hashed vector.

Definition at line 335 of file OgreCommon.h.

Member Typedef Documentation

template<typename T>
typedef VectorImpl::const_iterator Ogre::HashedVector< T >::const_iterator

Definition at line 365 of file OgreCommon.h.

template<typename T>
typedef VectorImpl::const_reference Ogre::HashedVector< T >::const_reference

Definition at line 361 of file OgreCommon.h.

template<typename T>
typedef VectorImpl::const_reverse_iterator Ogre::HashedVector< T >::const_reverse_iterator

Definition at line 367 of file OgreCommon.h.

template<typename T>
typedef VectorImpl::difference_type Ogre::HashedVector< T >::difference_type

Definition at line 363 of file OgreCommon.h.

template<typename T>
typedef VectorImpl::iterator Ogre::HashedVector< T >::iterator

Definition at line 364 of file OgreCommon.h.

template<typename T>
typedef VectorImpl::pointer Ogre::HashedVector< T >::pointer

Definition at line 359 of file OgreCommon.h.

template<typename T>
typedef VectorImpl::reference Ogre::HashedVector< T >::reference

Definition at line 360 of file OgreCommon.h.

template<typename T>
typedef VectorImpl::reverse_iterator Ogre::HashedVector< T >::reverse_iterator

Definition at line 366 of file OgreCommon.h.

template<typename T>
typedef VectorImpl::size_type Ogre::HashedVector< T >::size_type

Definition at line 362 of file OgreCommon.h.

template<typename T>
typedef VectorImpl::value_type Ogre::HashedVector< T >::value_type

Definition at line 358 of file OgreCommon.h.

template<typename T>
typedef std::vector<T, STLAllocator<T, GeneralAllocPolicy> > Ogre::HashedVector< T >::VectorImpl

Definition at line 338 of file OgreCommon.h.

Constructor & Destructor Documentation

template<typename T>
Ogre::HashedVector< T >::HashedVector ( )
inline

Definition at line 414 of file OgreCommon.h.

template<typename T>
Ogre::HashedVector< T >::HashedVector ( size_type  n)
inline

Definition at line 415 of file OgreCommon.h.

template<typename T>
Ogre::HashedVector< T >::HashedVector ( size_type  n,
const T &  t 
)
inline

Definition at line 416 of file OgreCommon.h.

template<typename T>
Ogre::HashedVector< T >::HashedVector ( const HashedVector< T > &  rhs)
inline

Definition at line 417 of file OgreCommon.h.

template<typename T>
template<class InputIterator >
Ogre::HashedVector< T >::HashedVector ( InputIterator  a,
InputIterator  b 
)
inline

Definition at line 421 of file OgreCommon.h.

template<typename T>
Ogre::HashedVector< T >::~HashedVector ( )
inline

Definition at line 427 of file OgreCommon.h.

Member Function Documentation

template<typename T>
void Ogre::HashedVector< T >::addToHash ( const T &  newPtr) const
inlineprotected
template<typename T>
reference Ogre::HashedVector< T >::at ( size_type  n)
inline

Definition at line 407 of file OgreCommon.h.

template<typename T>
const_reference Ogre::HashedVector< T >::at ( size_type  n) const
inline

Definition at line 413 of file OgreCommon.h.

template<typename T>
reference Ogre::HashedVector< T >::back ( )
inline

Definition at line 444 of file OgreCommon.h.

template<typename T>
const_reference Ogre::HashedVector< T >::back ( ) const
inline

Definition at line 450 of file OgreCommon.h.

template<typename T>
iterator Ogre::HashedVector< T >::begin ( )
inline

Definition at line 378 of file OgreCommon.h.

template<typename T>
const_iterator Ogre::HashedVector< T >::begin ( ) const
inline

Definition at line 385 of file OgreCommon.h.

template<typename T>
size_type Ogre::HashedVector< T >::capacity ( ) const
inline

Definition at line 398 of file OgreCommon.h.

template<typename T>
void Ogre::HashedVector< T >::clear ( )
inline

Definition at line 505 of file OgreCommon.h.

template<typename T>
bool Ogre::HashedVector< T >::empty ( ) const
inline

Definition at line 399 of file OgreCommon.h.

template<typename T>
iterator Ogre::HashedVector< T >::end ( )
inline

Definition at line 384 of file OgreCommon.h.

Referenced by Ogre::HashedVector< Light * >::insert().

template<typename T>
const_iterator Ogre::HashedVector< T >::end ( ) const
inline

Definition at line 386 of file OgreCommon.h.

template<typename T>
iterator Ogre::HashedVector< T >::erase ( iterator  pos)
inline

Definition at line 493 of file OgreCommon.h.

template<typename T>
iterator Ogre::HashedVector< T >::erase ( iterator  first,
iterator  last 
)
inline

Definition at line 499 of file OgreCommon.h.

template<typename T>
reference Ogre::HashedVector< T >::front ( )
inline

Definition at line 437 of file OgreCommon.h.

template<typename T>
const_reference Ogre::HashedVector< T >::front ( ) const
inline

Definition at line 443 of file OgreCommon.h.

template<typename T>
uint32 Ogre::HashedVector< T >::getHash ( ) const
inline

Get the hash value.

Definition at line 531 of file OgreCommon.h.

template<typename T>
iterator Ogre::HashedVector< T >::insert ( iterator  pos,
const T &  t 
)
inline

Definition at line 468 of file OgreCommon.h.

template<typename T>
template<class InputIterator >
void Ogre::HashedVector< T >::insert ( iterator  pos,
InputIterator  f,
InputIterator  l 
)
inline

Definition at line 480 of file OgreCommon.h.

template<typename T>
void Ogre::HashedVector< T >::insert ( iterator  pos,
size_type  n,
const T &  x 
)
inline

Definition at line 487 of file OgreCommon.h.

template<typename T>
bool Ogre::HashedVector< T >::isHashDirty ( ) const
inline
template<typename T>
size_type Ogre::HashedVector< T >::max_size ( ) const
inline

Definition at line 397 of file OgreCommon.h.

template<typename T>
bool Ogre::HashedVector< T >::operator< ( const HashedVector< T > &  b)
inline

Definition at line 526 of file OgreCommon.h.

template<typename T>
HashedVector<T>& Ogre::HashedVector< T >::operator= ( const HashedVector< T > &  rhs)
inline

Definition at line 428 of file OgreCommon.h.

template<typename T>
bool Ogre::HashedVector< T >::operator== ( const HashedVector< T > &  b)
inline

Definition at line 523 of file OgreCommon.h.

template<typename T>
reference Ogre::HashedVector< T >::operator[] ( size_type  n)
inline

Definition at line 400 of file OgreCommon.h.

template<typename T>
const_reference Ogre::HashedVector< T >::operator[] ( size_type  n) const
inline

Definition at line 406 of file OgreCommon.h.

template<typename T>
void Ogre::HashedVector< T >::pop_back ( )
inline

Definition at line 458 of file OgreCommon.h.

template<typename T>
void Ogre::HashedVector< T >::push_back ( const T &  t)
inline

Definition at line 451 of file OgreCommon.h.

template<typename T>
reverse_iterator Ogre::HashedVector< T >::rbegin ( )
inline

Definition at line 387 of file OgreCommon.h.

template<typename T>
const_reverse_iterator Ogre::HashedVector< T >::rbegin ( ) const
inline

Definition at line 394 of file OgreCommon.h.

template<typename T>
void Ogre::HashedVector< T >::recalcHash ( ) const
inlineprotected

Definition at line 348 of file OgreCommon.h.

Referenced by Ogre::HashedVector< Light * >::getHash().

template<typename T>
reverse_iterator Ogre::HashedVector< T >::rend ( )
inline

Definition at line 393 of file OgreCommon.h.

template<typename T>
const_reverse_iterator Ogre::HashedVector< T >::rend ( ) const
inline

Definition at line 395 of file OgreCommon.h.

template<typename T>
void Ogre::HashedVector< T >::reserve ( size_t  t)
inline

Definition at line 436 of file OgreCommon.h.

template<typename T>
void Ogre::HashedVector< T >::resize ( size_type  n,
const T &  t = T() 
)
inline

Definition at line 512 of file OgreCommon.h.

template<typename T>
size_type Ogre::HashedVector< T >::size ( ) const
inline

Definition at line 396 of file OgreCommon.h.

Referenced by Ogre::HashedVector< Light * >::resize().

template<typename T>
void Ogre::HashedVector< T >::swap ( HashedVector< T > &  rhs)
inline

Definition at line 463 of file OgreCommon.h.

Member Data Documentation


The documentation for this class was generated from the following file: