g2o
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | Static Public Attributes | Private Types | Static Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
g2o::ceres::internal::FixedArray< T, N, A > Class Template Reference

#include <fixed_array.h>

Collaboration diagram for g2o::ceres::internal::FixedArray< T, N, A >:
Collaboration graph
[legend]

Classes

class  EmptyInlinedStorage
 
class  NonEmptyInlinedStorage
 
class  Storage
 
struct  StorageElementWrapper
 

Public Types

using allocator_type = typename AllocatorTraits::allocator_type
 
using value_type = typename AllocatorTraits::value_type
 
using pointer = typename AllocatorTraits::pointer
 
using const_pointer = typename AllocatorTraits::const_pointer
 
using reference = value_type &
 
using const_reference = const value_type &
 
using size_type = typename AllocatorTraits::size_type
 
using difference_type = typename AllocatorTraits::difference_type
 
using iterator = pointer
 
using const_iterator = const_pointer
 
using reverse_iterator = std::reverse_iterator< iterator >
 
using const_reverse_iterator = std::reverse_iterator< const_iterator >
 

Public Member Functions

 FixedArray (const FixedArray &other, const allocator_type &a=allocator_type())
 
 FixedArray (FixedArray &&other, const allocator_type &a=allocator_type()) noexcept
 
 FixedArray (size_type n, const allocator_type &a=allocator_type())
 
 FixedArray (size_type n, const value_type &val, const allocator_type &a=allocator_type())
 
 FixedArray (std::initializer_list< value_type > init_list, const allocator_type &a=allocator_type())
 
template<typename Iterator , EnableIfForwardIterator< Iterator > * = nullptr>
 FixedArray (Iterator first, Iterator last, const allocator_type &a=allocator_type())
 
 ~FixedArray () noexcept
 
void operator= (FixedArray &&)=delete
 
void operator= (const FixedArray &)=delete
 
size_type size () const
 
constexpr size_type max_size () const
 
bool empty () const
 
size_t memsize () const
 
const_pointer data () const
 
pointer data ()
 
reference operator[] (size_type i)
 
const_reference operator[] (size_type i) const
 
reference front ()
 
const_reference front () const
 
reference back ()
 
const_reference back () const
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator cbegin () const
 
iterator end ()
 
const_iterator end () const
 
const_iterator cend () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator crbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
const_reverse_iterator crend () const
 
void fill (const value_type &val)
 

Static Public Attributes

static constexpr size_type inline_elements
 

Private Types

using AllocatorTraits = std::allocator_traits< A >
 
template<typename Iterator >
using EnableIfForwardIterator = typename std::enable_if< std::is_convertible< typename std::iterator_traits< Iterator >::iterator_category, std::forward_iterator_tag >::value >::type
 
using StorageElement = typename std::conditional< std::is_array< value_type >::value, StorageElementWrapper< value_type >, value_type >::type
 
using InlinedStorage = typename std::conditional< inline_elements==0, EmptyInlinedStorage, NonEmptyInlinedStorage >::type
 

Static Private Member Functions

static constexpr bool DefaultConstructorIsNonTrivial ()
 
static pointer AsValueType (pointer ptr)
 
static pointer AsValueType (StorageElementWrapper< value_type > *ptr)
 

Private Attributes

Storage storage_
 

Static Private Attributes

static constexpr size_t kInlineBytesDefault = 256
 

Friends

bool operator== (const FixedArray &lhs, const FixedArray &rhs)
 
bool operator!= (const FixedArray &lhs, const FixedArray &rhs)
 
bool operator< (const FixedArray &lhs, const FixedArray &rhs)
 
bool operator> (const FixedArray &lhs, const FixedArray &rhs)
 
bool operator<= (const FixedArray &lhs, const FixedArray &rhs)
 
bool operator>= (const FixedArray &lhs, const FixedArray &rhs)
 

Detailed Description

template<typename T, size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
class g2o::ceres::internal::FixedArray< T, N, A >

Definition at line 85 of file fixed_array.h.

Member Typedef Documentation

◆ allocator_type

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
using g2o::ceres::internal::FixedArray< T, N, A >::allocator_type = typename AllocatorTraits::allocator_type

Definition at line 103 of file fixed_array.h.

◆ AllocatorTraits

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
using g2o::ceres::internal::FixedArray< T, N, A >::AllocatorTraits = std::allocator_traits<A>
private

Definition at line 91 of file fixed_array.h.

◆ const_iterator

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
using g2o::ceres::internal::FixedArray< T, N, A >::const_iterator = const_pointer

Definition at line 112 of file fixed_array.h.

◆ const_pointer

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
using g2o::ceres::internal::FixedArray< T, N, A >::const_pointer = typename AllocatorTraits::const_pointer

Definition at line 106 of file fixed_array.h.

◆ const_reference

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
using g2o::ceres::internal::FixedArray< T, N, A >::const_reference = const value_type&

Definition at line 108 of file fixed_array.h.

◆ const_reverse_iterator

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
using g2o::ceres::internal::FixedArray< T, N, A >::const_reverse_iterator = std::reverse_iterator<const_iterator>

Definition at line 114 of file fixed_array.h.

◆ difference_type

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
using g2o::ceres::internal::FixedArray< T, N, A >::difference_type = typename AllocatorTraits::difference_type

Definition at line 110 of file fixed_array.h.

◆ EnableIfForwardIterator

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
template<typename Iterator >
using g2o::ceres::internal::FixedArray< T, N, A >::EnableIfForwardIterator = typename std::enable_if<std::is_convertible< typename std::iterator_traits<Iterator>::iterator_category, std::forward_iterator_tag>::value>::type
private

Definition at line 95 of file fixed_array.h.

◆ InlinedStorage

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
using g2o::ceres::internal::FixedArray< T, N, A >::InlinedStorage = typename std::conditional<inline_elements == 0, EmptyInlinedStorage, NonEmptyInlinedStorage>::type
private

Definition at line 392 of file fixed_array.h.

◆ iterator

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
using g2o::ceres::internal::FixedArray< T, N, A >::iterator = pointer

Definition at line 111 of file fixed_array.h.

◆ pointer

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
using g2o::ceres::internal::FixedArray< T, N, A >::pointer = typename AllocatorTraits::pointer

Definition at line 105 of file fixed_array.h.

◆ reference

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
using g2o::ceres::internal::FixedArray< T, N, A >::reference = value_type&

Definition at line 107 of file fixed_array.h.

◆ reverse_iterator

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
using g2o::ceres::internal::FixedArray< T, N, A >::reverse_iterator = std::reverse_iterator<iterator>

Definition at line 113 of file fixed_array.h.

◆ size_type

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
using g2o::ceres::internal::FixedArray< T, N, A >::size_type = typename AllocatorTraits::size_type

Definition at line 109 of file fixed_array.h.

◆ StorageElement

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
using g2o::ceres::internal::FixedArray< T, N, A >::StorageElement = typename std::conditional<std::is_array<value_type>::value, StorageElementWrapper<value_type>, value_type>::type
private

Definition at line 355 of file fixed_array.h.

◆ value_type

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
using g2o::ceres::internal::FixedArray< T, N, A >::value_type = typename AllocatorTraits::value_type

Definition at line 104 of file fixed_array.h.

Constructor & Destructor Documentation

◆ FixedArray() [1/6]

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
g2o::ceres::internal::FixedArray< T, N, A >::FixedArray ( const FixedArray< T, N, A > &  other,
const allocator_type a = allocator_type() 
)
inline

Definition at line 120 of file fixed_array.h.

122 : FixedArray(other.begin(), other.end(), a) {}
FixedArray(const FixedArray &other, const allocator_type &a=allocator_type())

◆ FixedArray() [2/6]

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
g2o::ceres::internal::FixedArray< T, N, A >::FixedArray ( FixedArray< T, N, A > &&  other,
const allocator_type a = allocator_type() 
)
inlinenoexcept

Definition at line 124 of file fixed_array.h.

126 : FixedArray(std::make_move_iterator(other.begin()),
127 std::make_move_iterator(other.end()), a) {}

◆ FixedArray() [3/6]

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
g2o::ceres::internal::FixedArray< T, N, A >::FixedArray ( size_type  n,
const allocator_type a = allocator_type() 
)
inlineexplicit

◆ FixedArray() [4/6]

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
g2o::ceres::internal::FixedArray< T, N, A >::FixedArray ( size_type  n,
const value_type val,
const allocator_type a = allocator_type() 
)
inline

◆ FixedArray() [5/6]

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
g2o::ceres::internal::FixedArray< T, N, A >::FixedArray ( std::initializer_list< value_type init_list,
const allocator_type a = allocator_type() 
)
inline

Definition at line 146 of file fixed_array.h.

148 : FixedArray(init_list.begin(), init_list.end(), a) {}

◆ FixedArray() [6/6]

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
template<typename Iterator , EnableIfForwardIterator< Iterator > * = nullptr>
g2o::ceres::internal::FixedArray< T, N, A >::FixedArray ( Iterator  first,
Iterator  last,
const allocator_type a = allocator_type() 
)
inline

Definition at line 154 of file fixed_array.h.

156 : storage_(std::distance(first, last), a) {
157 CopyRange(storage_.alloc(), storage_.begin(), first, last);
158 }
void CopyRange(Allocator &alloc, Iterator destination, InputIterator first, InputIterator last)
Definition memory.h:66

References g2o::ceres::internal::FixedArray< T, N, A >::Storage::alloc(), g2o::ceres::internal::FixedArray< T, N, A >::Storage::begin(), g2o::ceres::internal::CopyRange(), and g2o::ceres::internal::FixedArray< T, N, A >::storage_.

◆ ~FixedArray()

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
g2o::ceres::internal::FixedArray< T, N, A >::~FixedArray ( )
inlinenoexcept

Member Function Documentation

◆ AsValueType() [1/2]

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
static pointer g2o::ceres::internal::FixedArray< T, N, A >::AsValueType ( pointer  ptr)
inlinestaticprivate

◆ AsValueType() [2/2]

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
static pointer g2o::ceres::internal::FixedArray< T, N, A >::AsValueType ( StorageElementWrapper< value_type > *  ptr)
inlinestaticprivate

Definition at line 361 of file fixed_array.h.

361 {
362 return std::addressof(ptr->array);
363 }

References g2o::ceres::internal::FixedArray< T, N, A >::StorageElementWrapper< OuterT, InnerT, InnerN >::array.

◆ back() [1/2]

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
reference g2o::ceres::internal::FixedArray< T, N, A >::back ( )
inline

Definition at line 229 of file fixed_array.h.

229{ return *(end() - 1); }

References g2o::ceres::internal::FixedArray< T, N, A >::end().

◆ back() [2/2]

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
const_reference g2o::ceres::internal::FixedArray< T, N, A >::back ( ) const
inline

Definition at line 233 of file fixed_array.h.

233{ return *(end() - 1); }

References g2o::ceres::internal::FixedArray< T, N, A >::end().

◆ begin() [1/2]

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
iterator g2o::ceres::internal::FixedArray< T, N, A >::begin ( )
inline

◆ begin() [2/2]

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
const_iterator g2o::ceres::internal::FixedArray< T, N, A >::begin ( ) const
inline

Definition at line 242 of file fixed_array.h.

242{ return data(); }

References g2o::ceres::internal::FixedArray< T, N, A >::data().

◆ cbegin()

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
const_iterator g2o::ceres::internal::FixedArray< T, N, A >::cbegin ( ) const
inline

Definition at line 247 of file fixed_array.h.

247{ return begin(); }

References g2o::ceres::internal::FixedArray< T, N, A >::begin().

◆ cend()

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
const_iterator g2o::ceres::internal::FixedArray< T, N, A >::cend ( ) const
inline

Definition at line 261 of file fixed_array.h.

261{ return end(); }

References g2o::ceres::internal::FixedArray< T, N, A >::end().

◆ crbegin()

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
const_reverse_iterator g2o::ceres::internal::FixedArray< T, N, A >::crbegin ( ) const
inline

Definition at line 277 of file fixed_array.h.

277{ return rbegin(); }

References g2o::ceres::internal::FixedArray< T, N, A >::rbegin().

◆ crend()

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
const_reverse_iterator g2o::ceres::internal::FixedArray< T, N, A >::crend ( ) const
inline

Definition at line 293 of file fixed_array.h.

293{ return rend(); }

References g2o::ceres::internal::FixedArray< T, N, A >::rend().

◆ data() [1/2]

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
pointer g2o::ceres::internal::FixedArray< T, N, A >::data ( )
inline

◆ data() [2/2]

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
const_pointer g2o::ceres::internal::FixedArray< T, N, A >::data ( ) const
inline

◆ DefaultConstructorIsNonTrivial()

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
static constexpr bool g2o::ceres::internal::FixedArray< T, N, A >::DefaultConstructorIsNonTrivial ( )
inlinestaticconstexprprivate

Definition at line 98 of file fixed_array.h.

98 {
99 return !std::is_trivially_default_constructible<StorageElement>::value;
100 }

Referenced by g2o::ceres::internal::FixedArray< T, N, A >::FixedArray().

◆ empty()

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
bool g2o::ceres::internal::FixedArray< T, N, A >::empty ( ) const
inline

Definition at line 188 of file fixed_array.h.

188{ return size() == 0; }

References g2o::ceres::internal::FixedArray< T, N, A >::size().

◆ end() [1/2]

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
iterator g2o::ceres::internal::FixedArray< T, N, A >::end ( )
inline

◆ end() [2/2]

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
const_iterator g2o::ceres::internal::FixedArray< T, N, A >::end ( ) const
inline

◆ fill()

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
void g2o::ceres::internal::FixedArray< T, N, A >::fill ( const value_type val)
inline

◆ front() [1/2]

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
reference g2o::ceres::internal::FixedArray< T, N, A >::front ( )
inline

Definition at line 220 of file fixed_array.h.

220{ return *begin(); }

References g2o::ceres::internal::FixedArray< T, N, A >::begin().

◆ front() [2/2]

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
const_reference g2o::ceres::internal::FixedArray< T, N, A >::front ( ) const
inline

Definition at line 224 of file fixed_array.h.

224{ return *begin(); }

References g2o::ceres::internal::FixedArray< T, N, A >::begin().

◆ max_size()

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
constexpr size_type g2o::ceres::internal::FixedArray< T, N, A >::max_size ( ) const
inlineconstexpr

Definition at line 181 of file fixed_array.h.

181 {
182 return (std::numeric_limits<difference_type>::max)() / sizeof(value_type);
183 }
typename AllocatorTraits::value_type value_type

◆ memsize()

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
size_t g2o::ceres::internal::FixedArray< T, N, A >::memsize ( ) const
inline

Definition at line 193 of file fixed_array.h.

193{ return size() * sizeof(value_type); }

References g2o::ceres::internal::FixedArray< T, N, A >::size().

◆ operator=() [1/2]

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
void g2o::ceres::internal::FixedArray< T, N, A >::operator= ( const FixedArray< T, N, A > &  )
delete

◆ operator=() [2/2]

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
void g2o::ceres::internal::FixedArray< T, N, A >::operator= ( FixedArray< T, N, A > &&  )
delete

◆ operator[]() [1/2]

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
reference g2o::ceres::internal::FixedArray< T, N, A >::operator[] ( size_type  i)
inline

Definition at line 210 of file fixed_array.h.

210{ return data()[i]; }

References g2o::ceres::internal::FixedArray< T, N, A >::data().

◆ operator[]() [2/2]

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
const_reference g2o::ceres::internal::FixedArray< T, N, A >::operator[] ( size_type  i) const
inline

Definition at line 215 of file fixed_array.h.

215{ return data()[i]; }

References g2o::ceres::internal::FixedArray< T, N, A >::data().

◆ rbegin() [1/2]

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
reverse_iterator g2o::ceres::internal::FixedArray< T, N, A >::rbegin ( )
inline

Definition at line 266 of file fixed_array.h.

266{ return reverse_iterator(end()); }
std::reverse_iterator< iterator > reverse_iterator

References g2o::ceres::internal::FixedArray< T, N, A >::end().

Referenced by g2o::ceres::internal::FixedArray< T, N, A >::crbegin().

◆ rbegin() [2/2]

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
const_reverse_iterator g2o::ceres::internal::FixedArray< T, N, A >::rbegin ( ) const
inline

Definition at line 270 of file fixed_array.h.

270 {
271 return const_reverse_iterator(end());
272 }
std::reverse_iterator< const_iterator > const_reverse_iterator

References g2o::ceres::internal::FixedArray< T, N, A >::end().

◆ rend() [1/2]

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
reverse_iterator g2o::ceres::internal::FixedArray< T, N, A >::rend ( )
inline

◆ rend() [2/2]

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
const_reverse_iterator g2o::ceres::internal::FixedArray< T, N, A >::rend ( ) const
inline

Definition at line 286 of file fixed_array.h.

286 {
288 }

References g2o::ceres::internal::FixedArray< T, N, A >::begin().

◆ size()

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
size_type g2o::ceres::internal::FixedArray< T, N, A >::size ( ) const
inline

Friends And Related Symbol Documentation

◆ operator!=

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
bool operator!= ( const FixedArray< T, N, A > &  lhs,
const FixedArray< T, N, A > &  rhs 
)
friend

Definition at line 306 of file fixed_array.h.

306 {
307 return !(lhs == rhs);
308 }

◆ operator<

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
bool operator< ( const FixedArray< T, N, A > &  lhs,
const FixedArray< T, N, A > &  rhs 
)
friend

Definition at line 310 of file fixed_array.h.

310 {
311 return std::lexicographical_compare(lhs.begin(), lhs.end(), rhs.begin(),
312 rhs.end());
313 }

◆ operator<=

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
bool operator<= ( const FixedArray< T, N, A > &  lhs,
const FixedArray< T, N, A > &  rhs 
)
friend

Definition at line 319 of file fixed_array.h.

319 {
320 return !(rhs < lhs);
321 }

◆ operator==

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
bool operator== ( const FixedArray< T, N, A > &  lhs,
const FixedArray< T, N, A > &  rhs 
)
friend

Definition at line 302 of file fixed_array.h.

302 {
303 return std::equal(lhs.begin(), lhs.end(), rhs.begin(), rhs.end());
304 }

◆ operator>

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
bool operator> ( const FixedArray< T, N, A > &  lhs,
const FixedArray< T, N, A > &  rhs 
)
friend

Definition at line 315 of file fixed_array.h.

315 {
316 return rhs < lhs;
317 }

◆ operator>=

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
bool operator>= ( const FixedArray< T, N, A > &  lhs,
const FixedArray< T, N, A > &  rhs 
)
friend

Definition at line 323 of file fixed_array.h.

323 {
324 return !(lhs < rhs);
325 }

Member Data Documentation

◆ inline_elements

template<typename T , size_t N, typename A >
constexpr FixedArray< T, N, A >::size_type g2o::ceres::internal::FixedArray< T, N, A >::inline_elements
staticconstexpr
Initial value:
=
: static_cast<size_type>(N))
static constexpr size_t kInlineBytesDefault
Definition fixed_array.h:89
typename AllocatorTraits::size_type size_type
static constexpr auto kFixedArrayUseDefault
Definition fixed_array.h:47

Definition at line 116 of file fixed_array.h.

Referenced by g2o::ceres::internal::FixedArray< T, N, A >::Storage::UsingInlinedStorage().

◆ kInlineBytesDefault

template<typename T , size_t N, typename A >
constexpr size_t g2o::ceres::internal::FixedArray< T, N, A >::kInlineBytesDefault = 256
staticconstexprprivate

Definition at line 89 of file fixed_array.h.

◆ storage_

template<typename T , size_t N = kFixedArrayUseDefault, typename A = FixedArrayDefaultAllocator<T>>
Storage g2o::ceres::internal::FixedArray< T, N, A >::storage_
private

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