HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cl::vector< T, N > Class Template Reference

Fixed sized vector implementation that mirroring std::vector functionality. More...

#include <cl.hpp>

Classes

class  iterator
 Iterator class for vectors. More...
 

Public Member Functions

 vector ()
 
 ~vector ()
 
unsigned int size (void) const
 
void clear ()
 
void push_back (const T &x)
 
void pop_back (void)
 
 vector (const vector< T, N > &vec)
 
 vector (unsigned int size, const T &val=T())
 
vector< T, N > & operator= (const vector< T, N > &rhs)
 
bool operator== (vector< T, N > &vec)
 
 operator T * ()
 
 operator const T * () const
 
bool empty (void) const
 
unsigned int max_size (void) const
 
unsigned int capacity () const
 
T & operator[] (int index)
 
operator[] (int index) const
 
template<class I >
void assign (I start, I end)
 
iterator begin (void)
 
iterator end (void)
 
T & front (void)
 
T & back (void)
 
const T & front (void) const
 
const T & back (void) const
 

Detailed Description

template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
class cl::vector< T, N >

Fixed sized vector implementation that mirroring std::vector functionality.

Definition at line 445 of file cl.hpp.

Constructor & Destructor Documentation

template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
cl::vector< T, N >::vector ( )
inline

Definition at line 452 of file cl.hpp.

template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
cl::vector< T, N >::~vector ( )
inline

Definition at line 457 of file cl.hpp.

template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
cl::vector< T, N >::vector ( const vector< T, N > &  vec)
inline

Definition at line 490 of file cl.hpp.

template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
cl::vector< T, N >::vector ( unsigned int  size,
const T &  val = T() 
)
inline

Definition at line 499 of file cl.hpp.

Member Function Documentation

template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
template<class I >
void cl::vector< T, N >::assign ( start,
end 
)
inline

Definition at line 566 of file cl.hpp.

template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
T& cl::vector< T, N >::back ( void  )
inline

Definition at line 673 of file cl.hpp.

template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
const T& cl::vector< T, N >::back ( void  ) const
inline

Definition at line 683 of file cl.hpp.

template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
iterator cl::vector< T, N >::begin ( void  )
inline

Definition at line 658 of file cl.hpp.

template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
unsigned int cl::vector< T, N >::capacity ( ) const
inline

Definition at line 550 of file cl.hpp.

template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
void cl::vector< T, N >::clear ( )
inline

Definition at line 464 of file cl.hpp.

template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
bool cl::vector< T, N >::empty ( void  ) const
inline

Definition at line 540 of file cl.hpp.

template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
iterator cl::vector< T, N >::end ( void  )
inline

Definition at line 663 of file cl.hpp.

template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
T& cl::vector< T, N >::front ( void  )
inline

Definition at line 668 of file cl.hpp.

template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
const T& cl::vector< T, N >::front ( void  ) const
inline

Definition at line 678 of file cl.hpp.

template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
unsigned int cl::vector< T, N >::max_size ( void  ) const
inline

Definition at line 545 of file cl.hpp.

template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
cl::vector< T, N >::operator const T * ( ) const
inline

Definition at line 538 of file cl.hpp.

template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
cl::vector< T, N >::operator T * ( )
inline

Definition at line 537 of file cl.hpp.

template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
vector<T, N>& cl::vector< T, N >::operator= ( const vector< T, N > &  rhs)
inline

Definition at line 508 of file cl.hpp.

template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
bool cl::vector< T, N >::operator== ( vector< T, N > &  vec)
inline

Definition at line 524 of file cl.hpp.

template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
T& cl::vector< T, N >::operator[] ( int  index)
inline

Definition at line 555 of file cl.hpp.

template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
T cl::vector< T, N >::operator[] ( int  index) const
inline

Definition at line 560 of file cl.hpp.

template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
void cl::vector< T, N >::pop_back ( void  )
inline

Definition at line 479 of file cl.hpp.

template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
void cl::vector< T, N >::push_back ( const T &  x)
inline

Definition at line 470 of file cl.hpp.

template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
unsigned int cl::vector< T, N >::size ( void  ) const
inline

Definition at line 459 of file cl.hpp.


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