GTSAM  4.0.2
C++ library for smoothing and mapping (SAM)
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]
Collaboration diagram for gtsam::FastList< VALUE >:
Collaboration graph
[legend]

Public Types

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

Public Member Functions

 FastList ()
 
template<typename INPUTITERATOR >
 FastList (INPUTITERATOR first, INPUTITERATOR last)
 
 FastList (const FastList< VALUE > &x)
 
 FastList (const Base &x)
 
 FastList (std::initializer_list< VALUE > l)
 Construct from c++11 initializer list:
 
 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.

Constructor & Destructor Documentation

◆ FastList() [1/4]

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

Default constructor

◆ FastList() [2/4]

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

Constructor from a range, passes through to base class

◆ FastList() [3/4]

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

Copy constructor from another FastList

◆ FastList() [4/4]

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

Copy constructor from the base list class

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


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