Public Types | Public Member Functions | Friends

js::Vector< T, N, AllocPolicy > Class Template Reference

#include <jsvector.h>

Inheritance diagram for js::Vector< T, N, AllocPolicy >:
Collaboration diagram for js::Vector< T, N, AllocPolicy >:

List of all members.

Public Types

enum  { InlineLength = N }
typedef T ElementType

Public Member Functions

 Vector (AllocPolicy=AllocPolicy())
 ~Vector ()
const AllocPolicyallocPolicy () const
size_t length () const
bool empty () const
size_t capacity () const
T * begin () const
T * end ()
const T * end () const
T & operator[] (size_t i)
const T & operator[] (size_t i) const
T & back ()
const T & back () const
bool reserve (size_t capacity)
void shrinkBy (size_t incr)
bool growBy (size_t incr)
bool resize (size_t newLength)
bool growByUninitialized (size_t incr)
bool resizeUninitialized (size_t newLength)
void clear ()
bool append (const T &t)
bool appendN (const T &t, size_t n)
template<class U >
bool append (const U *begin, const U *end)
template<class U >
bool append (const U *begin, size_t length)
template<class U , size_t O, class BP >
bool append (const Vector< U, O, BP > &other)
void popBack ()
popCopy ()
T * extractRawBuffer ()
void replaceRawBuffer (T *p, size_t length)
bool insert (T *p, const T &val)
void erase (T *t)

Friends

struct VectorImpl< T, N, AllocPolicy, sElemIsPod >

template<class T, size_t N, class AllocPolicy>
class js::Vector< T, N, AllocPolicy >


Member Typedef Documentation

template<class T, size_t N, class AllocPolicy>
typedef T js::Vector< T, N, AllocPolicy >::ElementType

Member Enumeration Documentation

template<class T, size_t N, class AllocPolicy>
anonymous enum
Enumerator:
InlineLength 

Constructor & Destructor Documentation

template<class T , size_t N, class AllocPolicy>
js::Vector< T, N, AllocPolicy >::Vector ( AllocPolicy  ap = AllocPolicy()  )  [inline]
template<class T , size_t N, class AP >
js::Vector< T, N, AP >::~Vector (  )  [inline]

Member Function Documentation

template<class T, size_t N, class AllocPolicy>
const AllocPolicy& js::Vector< T, N, AllocPolicy >::allocPolicy (  )  const [inline]
template<class T, size_t N, class AP >
bool js::Vector< T, N, AP >::append ( const T &  t  )  [inline]
template<class T , size_t N, class AP >
template<class U >
bool js::Vector< T, N, AP >::append ( const U *  begin,
const U *  end 
) [inline]
template<class T , size_t N, class AP >
template<class U >
bool js::Vector< T, N, AP >::append ( const U *  begin,
size_t  length 
) [inline]
template<class T , size_t N, class AP >
template<class U , size_t O, class BP >
bool js::Vector< T, N, AP >::append ( const Vector< U, O, BP > &  other  )  [inline]
template<class T, size_t N, class AP >
bool js::Vector< T, N, AP >::appendN ( const T &  t,
size_t  n 
) [inline]
template<class T, size_t N, class AllocPolicy>
T& js::Vector< T, N, AllocPolicy >::back (  )  [inline]
template<class T, size_t N, class AllocPolicy>
const T& js::Vector< T, N, AllocPolicy >::back (  )  const [inline]
template<class T, size_t N, class AllocPolicy>
T* js::Vector< T, N, AllocPolicy >::begin (  )  const [inline]
template<class T, size_t N, class AllocPolicy>
size_t js::Vector< T, N, AllocPolicy >::capacity (  )  const [inline]
template<class T , size_t N, class AP >
void js::Vector< T, N, AP >::clear (  )  [inline]
template<class T, size_t N, class AllocPolicy>
bool js::Vector< T, N, AllocPolicy >::empty (  )  const [inline]
template<class T, size_t N, class AllocPolicy>
T* js::Vector< T, N, AllocPolicy >::end (  )  [inline]
template<class T, size_t N, class AllocPolicy>
const T* js::Vector< T, N, AllocPolicy >::end (  )  const [inline]
template<typename T, size_t N, class AP >
void js::Vector< T, N, AP >::erase ( T *  t  )  [inline]
template<class T , size_t N, class AP >
T * js::Vector< T, N, AP >::extractRawBuffer (  )  [inline]
template<class T , size_t N, class AP >
bool js::Vector< T, N, AP >::growBy ( size_t  incr  )  [inline]
template<class T , size_t N, class AP >
bool js::Vector< T, N, AP >::growByUninitialized ( size_t  incr  )  [inline]
template<class T, size_t N, class AP >
bool js::Vector< T, N, AP >::insert ( T *  p,
const T &  val 
) [inline]
template<class T, size_t N, class AllocPolicy>
size_t js::Vector< T, N, AllocPolicy >::length (  )  const [inline]
template<class T, size_t N, class AllocPolicy>
const T& js::Vector< T, N, AllocPolicy >::operator[] ( size_t  i  )  const [inline]
template<class T, size_t N, class AllocPolicy>
T& js::Vector< T, N, AllocPolicy >::operator[] ( size_t  i  )  [inline]
template<class T , size_t N, class AP >
void js::Vector< T, N, AP >::popBack (  )  [inline]
template<class T , size_t N, class AP >
T js::Vector< T, N, AP >::popCopy (  )  [inline]
template<class T, size_t N, class AP >
void js::Vector< T, N, AP >::replaceRawBuffer ( T *  p,
size_t  length 
) [inline]
template<class T , size_t N, class AP >
bool js::Vector< T, N, AP >::reserve ( size_t  capacity  )  [inline]
template<class T, size_t N, class AllocPolicy>
bool js::Vector< T, N, AllocPolicy >::resize ( size_t  newLength  ) 
template<class T , size_t N, class AP >
bool js::Vector< T, N, AP >::resizeUninitialized ( size_t  newLength  )  [inline]
template<class T , size_t N, class AP >
void js::Vector< T, N, AP >::shrinkBy ( size_t  incr  )  [inline]

Friends And Related Function Documentation

template<class T, size_t N, class AllocPolicy>
friend struct VectorImpl< T, N, AllocPolicy, sElemIsPod > [friend]

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