Public Types | Public Member Functions | List of all members
gtsam::FastList< VALUE > Class Template Reference

#include <FastList.h>

Inheritance diagram for gtsam::FastList< VALUE >:
Inheritance graph
[legend]

Public Types

typedef std::list< VALUE, typename internal::FastDefaultAllocator< VALUE >::typeBase
 

Public Member Functions

 FastList ()
 
 FastList (const Base &x)
 
 FastList (const FastList< VALUE > &x)
 
template<typename INPUTITERATOR >
 FastList (INPUTITERATOR first, INPUTITERATOR last)
 
 FastList (std::initializer_list< VALUE > l)
 Construct from c++11 initializer list: More...
 
 operator std::list< VALUE > () const
 

Detailed Description

template<typename VALUE>
class gtsam::FastList< VALUE >

FastList is a thin wrapper around std::list that uses the boost fast_pool_allocator instead of the default STL allocator. This is just a convenience to avoid having lengthy types in the code. Through timing, we've seen that the fast_pool_allocator can lead to speedups of several percent.

Definition at line 43 of file FastList.h.

Member Typedef Documentation

◆ Base

template<typename VALUE >
typedef std::list<VALUE, typename internal::FastDefaultAllocator<VALUE>::type> gtsam::FastList< VALUE >::Base

Definition at line 47 of file FastList.h.

Constructor & Destructor Documentation

◆ FastList() [1/5]

template<typename VALUE >
gtsam::FastList< VALUE >::FastList ( )
inline

Default constructor

Definition at line 50 of file FastList.h.

◆ FastList() [2/5]

template<typename VALUE >
template<typename INPUTITERATOR >
gtsam::FastList< VALUE >::FastList ( INPUTITERATOR  first,
INPUTITERATOR  last 
)
inlineexplicit

Constructor from a range, passes through to base class

Definition at line 54 of file FastList.h.

◆ FastList() [3/5]

template<typename VALUE >
gtsam::FastList< VALUE >::FastList ( const FastList< VALUE > &  x)
inline

Copy constructor from another FastList

Definition at line 57 of file FastList.h.

◆ FastList() [4/5]

template<typename VALUE >
gtsam::FastList< VALUE >::FastList ( const Base x)
inline

Copy constructor from the base list class

Definition at line 60 of file FastList.h.

◆ FastList() [5/5]

template<typename VALUE >
gtsam::FastList< VALUE >::FastList ( std::initializer_list< VALUE >  l)
inline

Construct from c++11 initializer list:

Definition at line 63 of file FastList.h.

Member Function Documentation

◆ operator std::list< VALUE >()

template<typename VALUE >
gtsam::FastList< VALUE >::operator std::list< VALUE > ( ) const
inline

Conversion to a standard STL container

Definition at line 77 of file FastList.h.


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


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:15:23