Fabcoin Core  0.16.2
P2P Digital Currency
Classes | Public Member Functions | Private Attributes | List of all members
cl::vector< T, N > Class Template Reference

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

#include <cl.hpp>

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

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
 
 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
 

Private Attributes

T data_ [N]
 
unsigned int size_
 
bool empty_
 

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 440 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 447 of file cl.hpp.

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 ( const vector< T, N > &  vec)
inline

Definition at line 485 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 494 of file cl.hpp.

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

Definition at line 447 of file cl.hpp.

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 ( const vector< T, N > &  vec)
inline

Definition at line 485 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 494 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 ( I  start,
I  end 
)
inline

Definition at line 561 of file cl.hpp.

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

Definition at line 561 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 668 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 668 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 678 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 678 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 653 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 653 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 545 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 545 of file cl.hpp.

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

Definition at line 459 of file cl.hpp.

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

Definition at line 459 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 535 of file cl.hpp.

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

Definition at line 535 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 658 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 658 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 663 of file cl.hpp.

Here is the caller graph for this function:

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

Definition at line 663 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 673 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 673 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 540 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 540 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 533 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 533 of file cl.hpp.

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

Definition at line 532 of file cl.hpp.

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

Definition at line 532 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 503 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 503 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 519 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 519 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 550 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 550 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 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 555 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 474 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 474 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 465 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 465 of file cl.hpp.

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

Definition at line 454 of file cl.hpp.

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

Definition at line 454 of file cl.hpp.

Member Data Documentation

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

Definition at line 443 of file cl.hpp.

template<typename T, unsigned int N = __MAX_DEFAULT_VECTOR_SIZE>
bool cl::vector< T, N >::empty_
private

Definition at line 445 of file cl.hpp.

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

Definition at line 444 of file cl.hpp.


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