cl::vector< T, N > Class Template Reference

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

#include <cl.hpp>

Collaboration diagram for cl::vector< T, N >:
Collaboration graph
[legend]

List of all members.

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
Toperator[] (int index)
T operator[] (int index) const
template<class I >
void assign (I start, I end)
iterator begin (void)
iterator end (void)
Tfront (void)
Tback (void)
const Tfront (void) const
const Tback (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.


Constructor & Destructor Documentation

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

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]
template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
const T& cl::vector< T, N >::back ( void   )  const [inline]
template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
T& cl::vector< T, N >::back ( void   )  [inline]
template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
iterator cl::vector< T, N >::begin ( void   )  [inline]
template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
unsigned int cl::vector< T, N >::capacity (  )  const [inline]
template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
void cl::vector< T, N >::clear ( void   )  [inline]

Here is the caller graph for this function:

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

Here is the caller graph for this function:

template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
iterator cl::vector< T, N >::end ( void   )  [inline]
template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
const T& cl::vector< T, N >::front ( void   )  const [inline]
template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
T& cl::vector< T, N >::front ( void   )  [inline]
template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
unsigned int cl::vector< T, N >::max_size ( void   )  const [inline]
template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
cl::vector< T, N >::operator const T * (  )  const [inline]
template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
cl::vector< T, N >::operator T * (  )  [inline]
template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
vector<T, N>& cl::vector< T, N >::operator= ( const vector< T, N > &  rhs  )  [inline]
template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
bool cl::vector< T, N >::operator== ( vector< T, N > &  vec  )  [inline]
template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
T cl::vector< T, N >::operator[] ( int  index  )  const [inline]
template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
T& cl::vector< T, N >::operator[] ( int  index  )  [inline]
template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
void cl::vector< T, N >::pop_back ( void   )  [inline]
template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
void cl::vector< T, N >::push_back ( const T x  )  [inline]

Here is the caller graph for this function:

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

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 3 Jun 2020 for ModFEM by  doxygen 1.6.1