Classes | Public Member Functions | Friends

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

#include <jsvector.h>

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

List of all members.

Classes

struct  BufferPtrs

Public Member Functions

 Vector (AllocPolicy=AllocPolicy())
 ~Vector ()
size_t length () const
bool empty () const
size_t capacity () const
T * begin ()
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)
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)
void popBack ()
T * extractRawBuffer ()
void replaceRawBuffer (T *p, size_t length)

Friends

struct VectorImpl< T, N, AllocPolicy, sElemIsPod >

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


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 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 >
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 (  )  [inline]
template<class T, size_t N, class AllocPolicy>
const 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<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 AllocPolicy>
size_t js::Vector< T, N, AllocPolicy >::length (  )  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 AllocPolicy>
const T& js::Vector< T, N, AllocPolicy >::operator[] ( size_t  i  )  const [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 >
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 AP >
bool js::Vector< T, N, AP >::resize ( 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]

Member Data Documentation

template<class T, size_t N, class AllocPolicy>
char js::Vector< T, N, AllocPolicy >::mBuf[sInlineBytes]
template<class T, size_t N, class AllocPolicy>
BufferPtrs js::Vector< T, N, AllocPolicy >::ptrs

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