Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cl::vector< T, N > Class Template Reference

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

#include <JETSCAPE/blob/main/external_packages/clvisc_wrapper/include/cl.hpp>

+ Collaboration diagram for cl::vector< T, N >:

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
 

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

View newest version in sPHENIX GitHub at line 433 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 440 of file cl.hpp.

View newest version in sPHENIX GitHub at line 440 of file cl.hpp

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

Definition at line 445 of file cl.hpp.

View newest version in sPHENIX GitHub at line 445 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 478 of file cl.hpp.

View newest version in sPHENIX GitHub at line 478 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 487 of file cl.hpp.

View newest version in sPHENIX GitHub at line 487 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 554 of file cl.hpp.

View newest version in sPHENIX GitHub at line 554 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 661 of file cl.hpp.

View newest version in sPHENIX GitHub at line 661 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 671 of file cl.hpp.

View newest version in sPHENIX GitHub at line 671 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 646 of file cl.hpp.

View newest version in sPHENIX GitHub at line 646 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 538 of file cl.hpp.

View newest version in sPHENIX GitHub at line 538 of file cl.hpp

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

Definition at line 452 of file cl.hpp.

View newest version in sPHENIX GitHub at line 452 of file cl.hpp

Referenced by cl::vector< ::size_t, N >::assign().

+ 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 528 of file cl.hpp.

View newest version in sPHENIX GitHub at line 528 of file cl.hpp

Referenced by cl::vector< T, N >::iterator::begin(), and cl::vector< T, N >::iterator::end().

+ 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

Definition at line 651 of file cl.hpp.

View newest version in sPHENIX GitHub at line 651 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 656 of file cl.hpp.

View newest version in sPHENIX GitHub at line 656 of file cl.hpp

Referenced by cl::Program::Program().

+ Here is the caller graph for this function:

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

Definition at line 666 of file cl.hpp.

View newest version in sPHENIX GitHub at line 666 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 533 of file cl.hpp.

View newest version in sPHENIX GitHub 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 526 of file cl.hpp.

View newest version in sPHENIX GitHub at line 526 of file cl.hpp

References cl::vector< T, N >::data_.

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

Definition at line 525 of file cl.hpp.

View newest version in sPHENIX GitHub at line 525 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 496 of file cl.hpp.

View newest version in sPHENIX GitHub at line 496 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 512 of file cl.hpp.

View newest version in sPHENIX GitHub at line 512 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 543 of file cl.hpp.

View newest version in sPHENIX GitHub at line 543 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 548 of file cl.hpp.

View newest version in sPHENIX GitHub at line 548 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 467 of file cl.hpp.

View newest version in sPHENIX GitHub at line 467 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 458 of file cl.hpp.

View newest version in sPHENIX GitHub at line 458 of file cl.hpp

Referenced by cl::vector< ::size_t, N >::assign(), cl::NDRange::NDRange(), and cl::vector< ::size_t, N >::vector().

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

View newest version in sPHENIX GitHub at line 447 of file cl.hpp

Referenced by cl::vector< T, N >::iterator::end(), cl::vector< ::size_t, N >::operator==(), cl::vector< ::size_t, N >::push_back(), and cl::vector< ::size_t, N >::vector().

+ Here is the caller graph for this function:

Member Data Documentation

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

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