Public Member Functions | Private Attributes | Static 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 Tback ()
 
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE Tback () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tbegin ()
 
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE Tbegin () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tdata ()
 
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE Tdata () const
 
template<class X >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void emplace_back (const X &x)
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE bool empty () const
 
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Tend ()
 
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE Tend () 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 Toperator[] (size_t i)
 
EIGEN_DEVICE_FUNC const EIGEN_STRONG_INLINE Toperator[] (size_t i) const
 
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

Tdata_
 
size_t reserve_
 
size_t size_
 

Static Private Attributes

static const size_t alignment = EIGEN_PLAIN_ENUM_MAX(EIGEN_ALIGNOF(T), sizeof(void*))
 

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

◆ MaxSizeVector() [1/2]

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

Definition at line 36 of file MaxSizeVector.h.

◆ MaxSizeVector() [2/2]

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.

◆ ~MaxSizeVector()

Definition at line 62 of file MaxSizeVector.h.

Member Function Documentation

◆ back() [1/2]

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

Definition at line 109 of file MaxSizeVector.h.

◆ back() [2/2]

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

Definition at line 115 of file MaxSizeVector.h.

◆ begin() [1/2]

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

Definition at line 139 of file MaxSizeVector.h.

◆ begin() [2/2]

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

Definition at line 145 of file MaxSizeVector.h.

◆ data() [1/2]

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

Definition at line 133 of file MaxSizeVector.h.

◆ data() [2/2]

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

Definition at line 136 of file MaxSizeVector.h.

◆ emplace_back()

template<typename T >
template<class X >
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE void Eigen::MaxSizeVector< T >::emplace_back ( const X x)
inline

Definition at line 90 of file MaxSizeVector.h.

◆ empty()

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

Definition at line 130 of file MaxSizeVector.h.

◆ end() [1/2]

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

Definition at line 142 of file MaxSizeVector.h.

◆ end() [2/2]

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

Definition at line 148 of file MaxSizeVector.h.

◆ operator[]() [1/2]

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

Definition at line 103 of file MaxSizeVector.h.

◆ operator[]() [2/2]

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

Definition at line 97 of file MaxSizeVector.h.

◆ pop_back()

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

Definition at line 121 of file MaxSizeVector.h.

◆ push_back()

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

Definition at line 82 of file MaxSizeVector.h.

◆ resize()

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

Definition at line 69 of file MaxSizeVector.h.

◆ size()

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

Definition at line 127 of file MaxSizeVector.h.

Member Data Documentation

◆ alignment

template<typename T >
const size_t Eigen::MaxSizeVector< T >::alignment = EIGEN_PLAIN_ENUM_MAX(EIGEN_ALIGNOF(T), sizeof(void*))
staticprivate

Definition at line 32 of file MaxSizeVector.h.

◆ data_

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

Definition at line 153 of file MaxSizeVector.h.

◆ reserve_

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

Definition at line 151 of file MaxSizeVector.h.

◆ size_

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

Definition at line 152 of file MaxSizeVector.h.


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


gtsam
Author(s):
autogenerated on Thu Dec 19 2024 04:10:06