Public Member Functions | Private Attributes | List of all members
Eigen::MaxSizeVector< T > Class Template Reference

The MaxSizeVector class. More...

#include <MaxSizeVector.h>

Public Member Functions

EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T & back ()
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const T & back () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T * begin ()
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const T * begin () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T * data ()
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const T * data () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE bool empty () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T * end ()
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const T * end () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE MaxSizeVector (size_t n)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE MaxSizeVector (size_t n, const T &init)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const T & operator[] (size_t i) const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T & operator[] (size_t i)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void pop_back ()
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void push_back (const T &t)
 
void resize (size_t n)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE size_t size () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE ~MaxSizeVector ()
 

Private Attributes

T * data_
 
size_t reserve_
 
size_t size_
 

Detailed Description

template<typename T>
class Eigen::MaxSizeVector< T >

The MaxSizeVector class.

The MaxSizeVector provides a subset of std::vector functionality.

The goal is to provide basic std::vector operations when using std::vector is not an option (e.g. on GPU or when compiling using FMA/AVX, as this can cause either compilation failures or illegal instruction failures).

Beware: The constructors are not API compatible with these of std::vector.

Definition at line 31 of file MaxSizeVector.h.

Constructor & Destructor Documentation

template<typename T>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::MaxSizeVector< T >::MaxSizeVector ( size_t  n)
inlineexplicit

Definition at line 35 of file MaxSizeVector.h.

template<typename T>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::MaxSizeVector< T >::MaxSizeVector ( size_t  n,
const T &  init 
)
inline

Definition at line 44 of file MaxSizeVector.h.

template<typename T>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Eigen::MaxSizeVector< T >::~MaxSizeVector ( )
inline

Definition at line 51 of file MaxSizeVector.h.

Member Function Documentation

template<typename T>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T& Eigen::MaxSizeVector< T >::back ( )
inline

Definition at line 89 of file MaxSizeVector.h.

template<typename T>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const T& Eigen::MaxSizeVector< T >::back ( ) const
inline

Definition at line 95 of file MaxSizeVector.h.

template<typename T>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T* Eigen::MaxSizeVector< T >::begin ( )
inline

Definition at line 122 of file MaxSizeVector.h.

template<typename T>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const T* Eigen::MaxSizeVector< T >::begin ( ) const
inline

Definition at line 128 of file MaxSizeVector.h.

template<typename T>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T* Eigen::MaxSizeVector< T >::data ( )
inline

Definition at line 116 of file MaxSizeVector.h.

template<typename T>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const T* Eigen::MaxSizeVector< T >::data ( ) const
inline

Definition at line 119 of file MaxSizeVector.h.

template<typename T>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE bool Eigen::MaxSizeVector< T >::empty ( ) const
inline

Definition at line 113 of file MaxSizeVector.h.

template<typename T>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T* Eigen::MaxSizeVector< T >::end ( )
inline

Definition at line 125 of file MaxSizeVector.h.

template<typename T>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const T* Eigen::MaxSizeVector< T >::end ( ) const
inline

Definition at line 131 of file MaxSizeVector.h.

template<typename T>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const T& Eigen::MaxSizeVector< T >::operator[] ( size_t  i) const
inline

Definition at line 77 of file MaxSizeVector.h.

template<typename T>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE T& Eigen::MaxSizeVector< T >::operator[] ( size_t  i)
inline

Definition at line 83 of file MaxSizeVector.h.

template<typename T>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Eigen::MaxSizeVector< T >::pop_back ( )
inline

Definition at line 101 of file MaxSizeVector.h.

template<typename T>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Eigen::MaxSizeVector< T >::push_back ( const T &  t)
inline

Definition at line 71 of file MaxSizeVector.h.

template<typename T>
void Eigen::MaxSizeVector< T >::resize ( size_t  n)
inline

Definition at line 58 of file MaxSizeVector.h.

template<typename T>
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE size_t Eigen::MaxSizeVector< T >::size ( ) const
inline

Definition at line 110 of file MaxSizeVector.h.

Member Data Documentation

template<typename T>
T* Eigen::MaxSizeVector< T >::data_
private

Definition at line 136 of file MaxSizeVector.h.

template<typename T>
size_t Eigen::MaxSizeVector< T >::reserve_
private

Definition at line 134 of file MaxSizeVector.h.

template<typename T>
size_t Eigen::MaxSizeVector< T >::size_
private

Definition at line 135 of file MaxSizeVector.h.


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


hebiros
Author(s): Xavier Artache , Matthew Tesch
autogenerated on Thu Sep 3 2020 04:10:11