Torque2D Reference
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
VectorPtr< T > Class Template Reference

Template for vectors of pointers. More...

#include <vector.h>

+ Inheritance diagram for VectorPtr< T >:

Public Member Functions

 VectorPtr ()
 
 VectorPtr (const char *fileName, const U32 lineNum)
 
- Public Member Functions inherited from Vector< void * >
 Vector (const U32 initialSize=0)
 
 Vector (const U32 initialSize, const char *fileName, const U32 lineNum)
 
 Vector (const char *fileName, const U32 lineNum)
 
 Vector (const Vector &)
 
 ~Vector ()
 
void setFileAssociation (const char *file, const U32 line)
 
void insert (U32)
 
void erase (U32)
 
U32 memSize () const
 
void ** address () const
 
U32 setSize (U32)
 
void increment (U32=1)
 
void increment (const void **array, U32=1)
 
void decrement (U32=1)
 
void erase_fast (U32)
 
void erase_fast (iterator)
 
void clear ()
 
void compact ()
 
void sort (compare_func f)
 
void *& first ()
 
const void *& first () const
 
void *& last ()
 
const void *& last () const
 
void set (void *addr, U32 sz)
 
void merge (const Vector &p)
 
Vector< void * > & operator= (const Vector< void * > &p)
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
S32 size () const
 
bool empty () const
 
bool contains (const void *&) const
 
void insert (iterator, const void *&)
 
void erase (iterator)
 
void *& front ()
 
const void *& front () const
 
void *& back ()
 
const void *& back () const
 
void push_front (const void *&)
 
void push_back (const void *&)
 
U32 push_front_unique (const void *&)
 
U32 push_back_unique (const void *&)
 
S32 find_next (const void *&, U32 start=0) const
 
void pop_front ()
 
void pop_back ()
 
void *& operator[] (U32)
 
const void *& operator[] (U32) const
 
void *& operator[] (S32 i)
 
const void *& operator[] (S32 i) const
 
void *& at (U32)
 
const void *& at (U32) const
 
void reserve (U32)
 
U32 capacity () const
 

STL interface

typedef T value_type
 
typedef T & reference
 
typedef const T & const_reference
 
typedef T * iterator
 
typedef const T * const_iterator
 
typedef U32 difference_type
 
typedef U32 size_type
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
void insert (iterator, const T &)
 
void insert (int idx)
 
void erase (iterator)
 
T & front ()
 
const T & front () const
 
T & back ()
 
const T & back () const
 
void push_front (const T &)
 
void push_back (const T &)
 
T & operator[] (U32)
 
const T & operator[] (U32) const
 

Extended interface

typedef Vector< void * > Parent
 
T & first ()
 
T & last ()
 
const T & first () const
 
const T & last () const
 
void erase_fast (U32)
 
void erase_fast (iterator)
 

Additional Inherited Members

- Public Types inherited from Vector< void * >
typedef void * value_type
 
typedef void *& reference
 
typedef const void *& const_reference
 
typedef void ** iterator
 
typedef const void ** const_iterator
 
typedef S32 difference_type
 
typedef U32 size_type
 
typedef difference_type(QSORT_CALLBACK * compare_func )(const void **a, const void **b)
 
- Protected Member Functions inherited from Vector< void * >
bool resize (U32)
 
void destroy (U32 start, U32 end)
 Destructs elements from start to end-1 More...
 
void construct (U32 start, U32 end)
 Constructs elements from start to end-1 More...
 
void construct (U32 start, U32 end, const void **array)
 
- Protected Attributes inherited from Vector< void * >
U32 mElementCount
 
U32 mArraySize
 
void ** mArray
 
const char * mFileAssociation
 
U32 mLineAssociation
 

Detailed Description

template<class T>
class VectorPtr< T >

Template for vectors of pointers.

Member Typedef Documentation

typedef const T* const_iterator
typedef const T& const_reference
typedef U32 difference_type
typedef T* iterator
typedef Vector<void*> Parent
typedef T& reference
typedef U32 size_type
typedef T value_type

Constructor & Destructor Documentation

VectorPtr ( )
inline
VectorPtr ( const char *  fileName,
const U32  lineNum 
)
inline

Member Function Documentation

T & back ( )
inline
const T & back ( ) const
inline
VectorPtr< T >::iterator begin ( )
inline
VectorPtr< T >::const_iterator begin ( ) const
inline
VectorPtr< T >::iterator end ( void  )
inline
VectorPtr< T >::const_iterator end ( void  ) const
inline
void erase ( iterator  i)
inline
void erase_fast ( U32  index)
inline
void erase_fast ( iterator  i)
inline
T & first ( )
inline
const T & first ( ) const
inline
T & front ( )
inline
const T & front ( ) const
inline
void insert ( iterator  i,
const T &  x 
)
inline
void insert ( int  idx)
inline
T & last ( )
inline
const T & last ( ) const
inline
T & operator[] ( U32  index)
inline
const T & operator[] ( U32  index) const
inline
void push_back ( const T &  x)
inline
void push_front ( const T &  x)
inline

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