Classes | Public Types | Public Member Functions | Private Attributes | Static Private Attributes | List of all members
ceres::internal::FixedArray< T, inline_elements > Class Template Reference

#include <fixed_array.h>

Classes

struct  InnerContainer
 

Public Types

typedef T const * const_iterator
 
typedef T const & const_reference
 
typedef std::ptrdiff_t difference_type
 
typedef Titerator
 
typedef Tpointer
 
typedef Treference
 
typedef size_t size_type
 
typedef T value_type
 

Public Member Functions

iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
 FixedArray (size_type n)
 
const Tget () const
 
Tget ()
 
size_t memsize () const
 
Toperator[] (size_type i)
 
const Toperator[] (size_type i) const
 
size_type size () const
 
 ~FixedArray ()
 

Private Attributes

InnerContainer *const array_
 
ManualConstructor< InnerContainerinline_space_ [kInlineElements]
 
size_type const size_
 

Static Private Attributes

static const size_type kInlineElements = S2
 
static const size_type S1
 
static const size_type S2 = (S1 <= 0) ? 1 : S1
 

Detailed Description

template<typename T, ssize_t inline_elements = -1>
class ceres::internal::FixedArray< T, inline_elements >

Definition at line 78 of file fixed_array.h.

Member Typedef Documentation

◆ const_iterator

template<typename T, ssize_t inline_elements = -1>
typedef T const* ceres::internal::FixedArray< T, inline_elements >::const_iterator

Definition at line 83 of file fixed_array.h.

◆ const_reference

template<typename T, ssize_t inline_elements = -1>
typedef T const& ceres::internal::FixedArray< T, inline_elements >::const_reference

Definition at line 85 of file fixed_array.h.

◆ difference_type

template<typename T, ssize_t inline_elements = -1>
typedef std::ptrdiff_t ceres::internal::FixedArray< T, inline_elements >::difference_type

Definition at line 87 of file fixed_array.h.

◆ iterator

template<typename T, ssize_t inline_elements = -1>
typedef T* ceres::internal::FixedArray< T, inline_elements >::iterator

Definition at line 82 of file fixed_array.h.

◆ pointer

template<typename T, ssize_t inline_elements = -1>
typedef T* ceres::internal::FixedArray< T, inline_elements >::pointer

Definition at line 86 of file fixed_array.h.

◆ reference

template<typename T, ssize_t inline_elements = -1>
typedef T& ceres::internal::FixedArray< T, inline_elements >::reference

Definition at line 84 of file fixed_array.h.

◆ size_type

template<typename T, ssize_t inline_elements = -1>
typedef size_t ceres::internal::FixedArray< T, inline_elements >::size_type

Definition at line 88 of file fixed_array.h.

◆ value_type

template<typename T, ssize_t inline_elements = -1>
typedef T ceres::internal::FixedArray< T, inline_elements >::value_type

Definition at line 81 of file fixed_array.h.

Constructor & Destructor Documentation

◆ FixedArray()

template<typename T, ssize_t inline_elements = -1>
ceres::internal::FixedArray< T, S >::FixedArray ( size_type  n)
inlineexplicit

Definition at line 163 of file fixed_array.h.

◆ ~FixedArray()

template<class T , ssize_t S>
ceres::internal::FixedArray< T, S >::~FixedArray ( )
inline

Definition at line 177 of file fixed_array.h.

Member Function Documentation

◆ begin() [1/2]

template<typename T, ssize_t inline_elements = -1>
iterator ceres::internal::FixedArray< T, inline_elements >::begin ( )
inline

Definition at line 126 of file fixed_array.h.

◆ begin() [2/2]

template<typename T, ssize_t inline_elements = -1>
const_iterator ceres::internal::FixedArray< T, inline_elements >::begin ( ) const
inline

Definition at line 129 of file fixed_array.h.

◆ end() [1/2]

template<typename T, ssize_t inline_elements = -1>
iterator ceres::internal::FixedArray< T, inline_elements >::end ( )
inline

Definition at line 127 of file fixed_array.h.

◆ end() [2/2]

template<typename T, ssize_t inline_elements = -1>
const_iterator ceres::internal::FixedArray< T, inline_elements >::end ( ) const
inline

Definition at line 130 of file fixed_array.h.

◆ get() [1/2]

template<typename T, ssize_t inline_elements = -1>
const T* ceres::internal::FixedArray< T, inline_elements >::get ( ) const
inline

Definition at line 109 of file fixed_array.h.

◆ get() [2/2]

template<typename T, ssize_t inline_elements = -1>
T* ceres::internal::FixedArray< T, inline_elements >::get ( )
inline

Definition at line 110 of file fixed_array.h.

◆ memsize()

template<typename T, ssize_t inline_elements = -1>
size_t ceres::internal::FixedArray< T, inline_elements >::memsize ( ) const
inline

Definition at line 106 of file fixed_array.h.

◆ operator[]() [1/2]

template<typename T, ssize_t inline_elements = -1>
T& ceres::internal::FixedArray< T, inline_elements >::operator[] ( size_type  i)
inline

Definition at line 114 of file fixed_array.h.

◆ operator[]() [2/2]

template<typename T, ssize_t inline_elements = -1>
const T& ceres::internal::FixedArray< T, inline_elements >::operator[] ( size_type  i) const
inline

Definition at line 121 of file fixed_array.h.

◆ size()

template<typename T, ssize_t inline_elements = -1>
size_type ceres::internal::FixedArray< T, inline_elements >::size ( ) const
inline

Definition at line 103 of file fixed_array.h.

Member Data Documentation

◆ array_

template<typename T, ssize_t inline_elements = -1>
InnerContainer* const ceres::internal::FixedArray< T, inline_elements >::array_
private

Definition at line 153 of file fixed_array.h.

◆ inline_space_

template<typename T, ssize_t inline_elements = -1>
ManualConstructor<InnerContainer> ceres::internal::FixedArray< T, inline_elements >::inline_space_[kInlineElements]
private

Definition at line 157 of file fixed_array.h.

◆ kInlineElements

template<typename T, ssize_t inline_elements = -1>
const size_type ceres::internal::FixedArray< T, inline_elements >::kInlineElements = S2
staticprivate

Definition at line 150 of file fixed_array.h.

◆ S1

template<typename T, ssize_t inline_elements = -1>
const size_type ceres::internal::FixedArray< T, inline_elements >::S1
staticprivate
Initial value:
= ((inline_elements < 0)
? (256/sizeof(T)) : inline_elements)

Definition at line 147 of file fixed_array.h.

◆ S2

template<typename T, ssize_t inline_elements = -1>
const size_type ceres::internal::FixedArray< T, inline_elements >::S2 = (S1 <= 0) ? 1 : S1
staticprivate

Definition at line 149 of file fixed_array.h.

◆ size_

template<typename T, ssize_t inline_elements = -1>
size_type const ceres::internal::FixedArray< T, inline_elements >::size_
private

Definition at line 152 of file fixed_array.h.


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


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:41:10