NCBI C++ ToolKit
Public Types | Public Member Functions | Static Public Attributes | Private Attributes | List of all members
compile_time_bits::simple_backend< std::pair< _SizeType, _ArrayType > > Class Template Reference

Search Toolkit Book for compile_time_bits::simple_backend_3_01std::pair_3_01_SizeType_00_01_ArrayType_01_4_01_4

#include <util/impl/compile_time_bits.hpp>

+ Collaboration diagram for compile_time_bits::simple_backend< std::pair< _SizeType, _ArrayType > >:

Public Types

using index_type = typename _ArrayType::value_type
 

Public Member Functions

constexpr simple_backend ()=default
 
constexpr simple_backend (const std::pair< _SizeType, _ArrayType > &init)
 
constexpr auto realsize () const noexcept
 
constexpr auto indexsize () const noexcept
 
constexpr auto get_values () const noexcept
 
constexpr auto get_index () const noexcept
 

Static Public Attributes

static constexpr auto capacity = array_size<_ArrayType>::value
 

Private Attributes

_ArrayType m_array
 
std::size_t m_realsize {0}
 

Detailed Description

template<typename _SizeType, typename _ArrayType>
class compile_time_bits::simple_backend< std::pair< _SizeType, _ArrayType > >

Definition at line 482 of file compile_time_bits.hpp.

Member Typedef Documentation

◆ index_type

template<typename _SizeType , typename _ArrayType >
using compile_time_bits::simple_backend< std::pair< _SizeType, _ArrayType > >::index_type = typename _ArrayType::value_type

Definition at line 487 of file compile_time_bits.hpp.

Constructor & Destructor Documentation

◆ simple_backend() [1/2]

template<typename _SizeType , typename _ArrayType >
constexpr compile_time_bits::simple_backend< std::pair< _SizeType, _ArrayType > >::simple_backend ( )
constexprdefault

◆ simple_backend() [2/2]

template<typename _SizeType , typename _ArrayType >
constexpr compile_time_bits::simple_backend< std::pair< _SizeType, _ArrayType > >::simple_backend ( const std::pair< _SizeType, _ArrayType > &  init)
inlineconstexpr

Definition at line 489 of file compile_time_bits.hpp.

Member Function Documentation

◆ get_index()

template<typename _SizeType , typename _ArrayType >
constexpr auto compile_time_bits::simple_backend< std::pair< _SizeType, _ArrayType > >::get_index ( ) const
inlineconstexprnoexcept

Definition at line 498 of file compile_time_bits.hpp.

◆ get_values()

template<typename _SizeType , typename _ArrayType >
constexpr auto compile_time_bits::simple_backend< std::pair< _SizeType, _ArrayType > >::get_values ( ) const
inlineconstexprnoexcept

Definition at line 497 of file compile_time_bits.hpp.

◆ indexsize()

template<typename _SizeType , typename _ArrayType >
constexpr auto compile_time_bits::simple_backend< std::pair< _SizeType, _ArrayType > >::indexsize ( ) const
inlineconstexprnoexcept

Definition at line 496 of file compile_time_bits.hpp.

◆ realsize()

template<typename _SizeType , typename _ArrayType >
constexpr auto compile_time_bits::simple_backend< std::pair< _SizeType, _ArrayType > >::realsize ( ) const
inlineconstexprnoexcept

Definition at line 495 of file compile_time_bits.hpp.

Member Data Documentation

◆ capacity

template<typename _SizeType , typename _ArrayType >
constexpr auto compile_time_bits::simple_backend< std::pair< _SizeType, _ArrayType > >::capacity = array_size<_ArrayType>::value
staticconstexpr

Definition at line 494 of file compile_time_bits.hpp.

◆ m_array

template<typename _SizeType , typename _ArrayType >
_ArrayType compile_time_bits::simple_backend< std::pair< _SizeType, _ArrayType > >::m_array
private

Definition at line 500 of file compile_time_bits.hpp.

◆ m_realsize

template<typename _SizeType , typename _ArrayType >
std::size_t compile_time_bits::simple_backend< std::pair< _SizeType, _ArrayType > >::m_realsize {0}
private

Definition at line 501 of file compile_time_bits.hpp.


The documentation for this class was generated from the following file:
Modified on Wed May 01 14:23:06 2024 by modify_doxy.py rev. 669887