Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::TemplatedMapGetter< T, fixed > Struct Template Reference

A helper functor so we can template functions to use either a perfect map or a fixed size map. More...

#include <duckdb.hpp>

Static Public Member Functions

static key_type GetKey (const iterator &it)
 
static key_type GetKey (const const_iterator &it)
 
static mapped_type & GetValue (iterator &it)
 
static const mapped_type & GetValue (const const_iterator &it)
 

Private Types

using key_type = idx_t
 
using mapped_type = T
 
using fixed_size_map_type = fixed_size_map_t< mapped_type >
 
using perfect_map_type = perfect_map_t< mapped_type >
 
using map_type = typename std::conditional< fixed, fixed_size_map_type, perfect_map_type >::type
 
using iterator = typename map_type::iterator
 
using const_iterator = typename map_type::const_iterator
 

Static Private Member Functions

static key_type GetKeyInternal (const typename perfect_map_type::iterator &it)
 
static key_type GetKeyInternal (const typename perfect_map_type::const_iterator &it)
 
static mapped_type & GetValueInternal (typename perfect_map_type::iterator &it)
 
static const mapped_type & GetValueInternal (const typename perfect_map_type::const_iterator &it)
 
static key_type GetKeyInternal (const typename fixed_size_map_type::iterator &it)
 
static key_type GetKeyInternal (const typename fixed_size_map_type::const_iterator &it)
 
static mapped_type & GetValueInternal (typename fixed_size_map_type::iterator &it)
 
static const mapped_type & GetValueInternal (const typename fixed_size_map_type::const_iterator &it)
 

Detailed Description

template<class T, bool fixed>
struct duckdb::TemplatedMapGetter< T, fixed >

A helper functor so we can template functions to use either a perfect map or a fixed size map.

Member Function Documentation

◆ GetKey() [1/2]

template<class T , bool fixed>
static key_type duckdb::TemplatedMapGetter< T, fixed >::GetKey ( const iterator &  it)
inlinestatic
46706 {
46707 return GetKeyInternal(it);
46708 }

◆ GetKey() [2/2]

template<class T , bool fixed>
static key_type duckdb::TemplatedMapGetter< T, fixed >::GetKey ( const const_iterator &  it)
inlinestatic
46710 {
46711 return GetKeyInternal(it);
46712 }

◆ GetValue() [1/2]

template<class T , bool fixed>
static mapped_type & duckdb::TemplatedMapGetter< T, fixed >::GetValue ( iterator &  it)
inlinestatic
46714 {
46715 return GetValueInternal(it);
46716 }

◆ GetValue() [2/2]

template<class T , bool fixed>
static const mapped_type & duckdb::TemplatedMapGetter< T, fixed >::GetValue ( const const_iterator &  it)
inlinestatic
46718 {
46719 return GetValueInternal(it);
46720 }

◆ GetKeyInternal() [1/4]

template<class T , bool fixed>
static key_type duckdb::TemplatedMapGetter< T, fixed >::GetKeyInternal ( const typename perfect_map_type::iterator &  it)
inlinestaticprivate
46727 {
46728 return it->first;
46729 }

◆ GetKeyInternal() [2/4]

template<class T , bool fixed>
static key_type duckdb::TemplatedMapGetter< T, fixed >::GetKeyInternal ( const typename perfect_map_type::const_iterator &  it)
inlinestaticprivate
46731 {
46732 return it->first;
46733 }

◆ GetValueInternal() [1/4]

template<class T , bool fixed>
static mapped_type & duckdb::TemplatedMapGetter< T, fixed >::GetValueInternal ( typename perfect_map_type::iterator &  it)
inlinestaticprivate
46735 {
46736 return it->second;
46737 }

◆ GetValueInternal() [2/4]

template<class T , bool fixed>
static const mapped_type & duckdb::TemplatedMapGetter< T, fixed >::GetValueInternal ( const typename perfect_map_type::const_iterator &  it)
inlinestaticprivate
46739 {
46740 return it->second;
46741 }

◆ GetKeyInternal() [3/4]

template<class T , bool fixed>
static key_type duckdb::TemplatedMapGetter< T, fixed >::GetKeyInternal ( const typename fixed_size_map_type::iterator &  it)
inlinestaticprivate
46743 {
46744 return it.GetKey();
46745 }

◆ GetKeyInternal() [4/4]

template<class T , bool fixed>
static key_type duckdb::TemplatedMapGetter< T, fixed >::GetKeyInternal ( const typename fixed_size_map_type::const_iterator &  it)
inlinestaticprivate
46747 {
46748 return it.GetKey();
46749 }

◆ GetValueInternal() [3/4]

template<class T , bool fixed>
static mapped_type & duckdb::TemplatedMapGetter< T, fixed >::GetValueInternal ( typename fixed_size_map_type::iterator &  it)
inlinestaticprivate
46751 {
46752 return it.GetValue();
46753 }

◆ GetValueInternal() [4/4]

template<class T , bool fixed>
static const mapped_type & duckdb::TemplatedMapGetter< T, fixed >::GetValueInternal ( const typename fixed_size_map_type::const_iterator &  it)
inlinestaticprivate
46755 {
46756 return it.GetValue();
46757 }

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