NCBI C++ ToolKit
Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
compile_time_bits::const_bitset< _Bits, T > Class Template Reference

Search Toolkit Book for compile_time_bits::const_bitset

#include <util/impl/ct_bitset_cxx14.hpp>

+ Inheritance diagram for compile_time_bits::const_bitset< _Bits, T >:
+ Collaboration diagram for compile_time_bits::const_bitset< _Bits, T >:

Classes

class  const_iterator
 
struct  range
 

Public Types

using u_type = typename real_underlying_type< T >::type
 
using _Ty = uint64_t
 
using _Array_t = const_array< _Ty, _Words >
 
using traits = bitset_traits< _Ty, _Words, int >
 
using iterator = const_iterator
 
using u_type = typename real_underlying_type< T >::type
 
using _Ty = uint64_t
 
using _Array_t = const_array< _Ty, _Words >
 
using traits = bitset_traits< _Ty, _Words, int >
 
using iterator = const_iterator
 

Public Member Functions

constexpr const_bitset ()=default
 
constexpr const_bitset (std::initializer_list< T > _init)
 
constexpr const_bitset (T _init)
 
template<size_t N>
constexpr const_bitset (char const (&_init)[N])
 
template<size_t N>
constexpr const_bitset (const const_array< char, N > &_init)
 
constexpr const_bitset (const range &_range)
 
constexpr size_t size () const
 
constexpr bool empty () const
 
constexpr bool test (T _Pos) const
 
const_bitsetoperator+= (T value)
 
const_bitsetoperator-= (T value)
 
const_bitsetoperator+= (const const_bitset &_Other)
 
const_bitsetoperator-= (const const_bitset &_Other)
 
bool reset (T _v)
 
bool set (T _v)
 
constexpr bool ct_set (T _v)
 
constexpr const_iterator begin () const
 
constexpr const_iterator end () const
 
constexpr const_iterator cbegin () const
 
constexpr const_iterator cend () const
 
template<class _Ty , class _Alloc >
 operator std::vector< _Ty, _Alloc > () const
 
constexpr const_bitset ()=default
 
constexpr const_bitset (std::initializer_list< T > _init)
 
constexpr const_bitset (T _init)
 
template<size_t N>
constexpr const_bitset (char const (&_init)[N])
 
template<size_t N>
constexpr const_bitset (const const_array< char, N > &_init)
 
constexpr const_bitset (const range &_range)
 
constexpr size_t size () const
 
constexpr bool empty () const
 
constexpr bool test (T _Pos) const
 
const_bitsetoperator+= (T value)
 
const_bitsetoperator-= (T value)
 
const_bitsetoperator+= (const const_bitset &_Other)
 
const_bitsetoperator-= (const const_bitset &_Other)
 
bool reset (T _v)
 
bool set (T _v)
 
constexpr bool ct_set (T _v)
 
constexpr bool ct_test (T _Pos) const
 
constexpr const_iterator cbegin () const noexcept
 
constexpr const_iterator cend () const noexcept
 
constexpr const_iterator begin () const noexcept
 
constexpr const_iterator end () const noexcept
 
template<class _Ty , class _Alloc >
 operator std::vector< _Ty, _Alloc > () const
 

Static Public Member Functions

static constexpr const_bitset set_range (T _from, T _to)
 
static constexpr size_t capacity ()
 
static constexpr const_bitset set_range (T _from, T _to)
 
static constexpr size_t capacity ()
 

Static Public Attributes

static constexpr size_t _Bitsperword = 8 * sizeof(_Ty)
 
static constexpr size_t _Words = (_Bits + _Bitsperword - 1) / _Bitsperword
 

Private Member Functions

constexpr const_bitset (const _Array_t &args)
 
constexpr bool x_test (size_t _Pos) const
 
constexpr bool _Subscript (size_t _Pos) const
 
void _Xran () const
 
constexpr const_bitset (const _Array_t &args)
 
constexpr bool x_test (size_t _Pos) const
 
constexpr bool _Subscript (size_t _Pos) const
 
void _Xran () const
 

Private Attributes

_Array_t _Array {}
 

Detailed Description

template<size_t _Bits, class T>
class compile_time_bits::const_bitset< _Bits, T >

Definition at line 141 of file ct_bitset_cxx14.hpp.

Member Typedef Documentation

◆ _Array_t [1/2]

template<size_t _Bits, class T >
using compile_time_bits::const_bitset< _Bits, T >::_Array_t = const_array<_Ty, _Words>

Definition at line 150 of file ct_bitset_cxx14.hpp.

◆ _Array_t [2/2]

template<size_t _Bits, class T >
using compile_time_bits::const_bitset< _Bits, T >::_Array_t = const_array<_Ty, _Words>

Definition at line 234 of file ct_bitset_cxx17.hpp.

◆ _Ty [1/2]

template<size_t _Bits, class T >
using compile_time_bits::const_bitset< _Bits, T >::_Ty = uint64_t

Definition at line 146 of file ct_bitset_cxx14.hpp.

◆ _Ty [2/2]

template<size_t _Bits, class T >
using compile_time_bits::const_bitset< _Bits, T >::_Ty = uint64_t

Definition at line 230 of file ct_bitset_cxx17.hpp.

◆ iterator [1/2]

template<size_t _Bits, class T >
using compile_time_bits::const_bitset< _Bits, T >::iterator = const_iterator

Definition at line 339 of file ct_bitset_cxx14.hpp.

◆ iterator [2/2]

template<size_t _Bits, class T >
using compile_time_bits::const_bitset< _Bits, T >::iterator = const_iterator

Definition at line 466 of file ct_bitset_cxx17.hpp.

◆ traits [1/2]

template<size_t _Bits, class T >
using compile_time_bits::const_bitset< _Bits, T >::traits = bitset_traits<_Ty, _Words, int>

Definition at line 151 of file ct_bitset_cxx14.hpp.

◆ traits [2/2]

template<size_t _Bits, class T >
using compile_time_bits::const_bitset< _Bits, T >::traits = bitset_traits<_Ty, _Words, int>

Definition at line 235 of file ct_bitset_cxx17.hpp.

◆ u_type [1/2]

template<size_t _Bits, class T >
using compile_time_bits::const_bitset< _Bits, T >::u_type = typename real_underlying_type<T>::type

Definition at line 144 of file ct_bitset_cxx14.hpp.

◆ u_type [2/2]

template<size_t _Bits, class T >
using compile_time_bits::const_bitset< _Bits, T >::u_type = typename real_underlying_type<T>::type

Definition at line 228 of file ct_bitset_cxx17.hpp.

Constructor & Destructor Documentation

◆ const_bitset() [1/14]

template<size_t _Bits, class T >
constexpr compile_time_bits::const_bitset< _Bits, T >::const_bitset ( )
constexprdefault

◆ const_bitset() [2/14]

template<size_t _Bits, class T >
constexpr compile_time_bits::const_bitset< _Bits, T >::const_bitset ( std::initializer_list< T _init)
inlineconstexpr

Definition at line 155 of file ct_bitset_cxx14.hpp.

◆ const_bitset() [3/14]

template<size_t _Bits, class T >
constexpr compile_time_bits::const_bitset< _Bits, T >::const_bitset ( T  _init)
inlineconstexpr

Definition at line 159 of file ct_bitset_cxx14.hpp.

◆ const_bitset() [4/14]

template<size_t _Bits, class T >
template<size_t N>
constexpr compile_time_bits::const_bitset< _Bits, T >::const_bitset ( char const (&)  _init[N])
inlineexplicitconstexpr

Definition at line 164 of file ct_bitset_cxx14.hpp.

◆ const_bitset() [5/14]

template<size_t _Bits, class T >
template<size_t N>
constexpr compile_time_bits::const_bitset< _Bits, T >::const_bitset ( const const_array< char, N > &  _init)
inlineexplicitconstexpr

Definition at line 169 of file ct_bitset_cxx14.hpp.

◆ const_bitset() [6/14]

template<size_t _Bits, class T >
constexpr compile_time_bits::const_bitset< _Bits, T >::const_bitset ( const range _range)
inlineexplicitconstexpr

Definition at line 178 of file ct_bitset_cxx14.hpp.

◆ const_bitset() [7/14]

template<size_t _Bits, class T >
constexpr compile_time_bits::const_bitset< _Bits, T >::const_bitset ( const _Array_t args)
inlineexplicitconstexprprivate

Definition at line 356 of file ct_bitset_cxx14.hpp.

◆ const_bitset() [8/14]

template<size_t _Bits, class T >
constexpr compile_time_bits::const_bitset< _Bits, T >::const_bitset ( )
constexprdefault

◆ const_bitset() [9/14]

template<size_t _Bits, class T >
constexpr compile_time_bits::const_bitset< _Bits, T >::const_bitset ( std::initializer_list< T _init)
inlineconstexpr

Definition at line 239 of file ct_bitset_cxx17.hpp.

◆ const_bitset() [10/14]

template<size_t _Bits, class T >
constexpr compile_time_bits::const_bitset< _Bits, T >::const_bitset ( T  _init)
inlineconstexpr

Definition at line 243 of file ct_bitset_cxx17.hpp.

◆ const_bitset() [11/14]

template<size_t _Bits, class T >
template<size_t N>
constexpr compile_time_bits::const_bitset< _Bits, T >::const_bitset ( char const (&)  _init[N])
inlineexplicitconstexpr

Definition at line 248 of file ct_bitset_cxx17.hpp.

◆ const_bitset() [12/14]

template<size_t _Bits, class T >
template<size_t N>
constexpr compile_time_bits::const_bitset< _Bits, T >::const_bitset ( const const_array< char, N > &  _init)
inlineexplicitconstexpr

Definition at line 253 of file ct_bitset_cxx17.hpp.

◆ const_bitset() [13/14]

template<size_t _Bits, class T >
constexpr compile_time_bits::const_bitset< _Bits, T >::const_bitset ( const range _range)
inlineexplicitconstexpr

Definition at line 262 of file ct_bitset_cxx17.hpp.

◆ const_bitset() [14/14]

template<size_t _Bits, class T >
constexpr compile_time_bits::const_bitset< _Bits, T >::const_bitset ( const _Array_t args)
inlineexplicitconstexprprivate

Definition at line 483 of file ct_bitset_cxx17.hpp.

Member Function Documentation

◆ _Subscript() [1/2]

template<size_t _Bits, class T >
constexpr bool compile_time_bits::const_bitset< _Bits, T >::_Subscript ( size_t  _Pos) const
inlineconstexprprivate

◆ _Subscript() [2/2]

template<size_t _Bits, class T >
constexpr bool compile_time_bits::const_bitset< _Bits, T >::_Subscript ( size_t  _Pos) const
inlineconstexprprivate

Definition at line 492 of file ct_bitset_cxx17.hpp.

◆ _Xran() [1/2]

template<size_t _Bits, class T >
void compile_time_bits::const_bitset< _Bits, T >::_Xran ( ) const
inlineprivate

◆ _Xran() [2/2]

template<size_t _Bits, class T >
void compile_time_bits::const_bitset< _Bits, T >::_Xran ( ) const
inlineprivate

Definition at line 497 of file ct_bitset_cxx17.hpp.

◆ begin() [1/2]

template<size_t _Bits, class T >
constexpr const_iterator compile_time_bits::const_bitset< _Bits, T >::begin ( void  ) const
inlineconstexpr

◆ begin() [2/2]

template<size_t _Bits, class T >
constexpr const_iterator compile_time_bits::const_bitset< _Bits, T >::begin ( void  ) const
inlineconstexprnoexcept

Definition at line 470 of file ct_bitset_cxx17.hpp.

◆ capacity() [1/2]

template<size_t _Bits, class T >
static constexpr size_t compile_time_bits::const_bitset< _Bits, T >::capacity ( void  )
inlinestaticconstexpr

◆ capacity() [2/2]

template<size_t _Bits, class T >
static constexpr size_t compile_time_bits::const_bitset< _Bits, T >::capacity ( void  )
inlinestaticconstexpr

Definition at line 271 of file ct_bitset_cxx17.hpp.

◆ cbegin() [1/2]

template<size_t _Bits, class T >
constexpr const_iterator compile_time_bits::const_bitset< _Bits, T >::cbegin ( ) const
inlineconstexpr

◆ cbegin() [2/2]

template<size_t _Bits, class T >
constexpr const_iterator compile_time_bits::const_bitset< _Bits, T >::cbegin ( ) const
inlineconstexprnoexcept

Definition at line 468 of file ct_bitset_cxx17.hpp.

◆ cend() [1/2]

template<size_t _Bits, class T >
constexpr const_iterator compile_time_bits::const_bitset< _Bits, T >::cend ( ) const
inlineconstexpr

◆ cend() [2/2]

template<size_t _Bits, class T >
constexpr const_iterator compile_time_bits::const_bitset< _Bits, T >::cend ( ) const
inlineconstexprnoexcept

Definition at line 469 of file ct_bitset_cxx17.hpp.

◆ ct_set() [1/2]

template<size_t _Bits, class T >
constexpr bool compile_time_bits::const_bitset< _Bits, T >::ct_set ( T  _v)
inlineconstexpr

Definition at line 268 of file ct_bitset_cxx14.hpp.

◆ ct_set() [2/2]

template<size_t _Bits, class T >
constexpr bool compile_time_bits::const_bitset< _Bits, T >::ct_set ( T  _v)
inlineconstexpr

Definition at line 349 of file ct_bitset_cxx17.hpp.

◆ ct_test()

template<size_t _Bits, class T >
constexpr bool compile_time_bits::const_bitset< _Bits, T >::ct_test ( T  _Pos) const
inlineconstexpr

Definition at line 363 of file ct_bitset_cxx17.hpp.

◆ empty() [1/2]

template<size_t _Bits, class T >
constexpr bool compile_time_bits::const_bitset< _Bits, T >::empty ( void  ) const
inlineconstexpr

◆ empty() [2/2]

template<size_t _Bits, class T >
constexpr bool compile_time_bits::const_bitset< _Bits, T >::empty ( void  ) const
inlineconstexpr

Definition at line 281 of file ct_bitset_cxx17.hpp.

◆ end() [1/2]

template<size_t _Bits, class T >
constexpr const_iterator compile_time_bits::const_bitset< _Bits, T >::end ( void  ) const
inlineconstexpr

◆ end() [2/2]

template<size_t _Bits, class T >
constexpr const_iterator compile_time_bits::const_bitset< _Bits, T >::end ( void  ) const
inlineconstexprnoexcept

Definition at line 471 of file ct_bitset_cxx17.hpp.

◆ operator std::vector< _Ty, _Alloc >() [1/2]

template<size_t _Bits, class T >
template<class _Ty , class _Alloc >
compile_time_bits::const_bitset< _Bits, T >::operator std::vector< _Ty, _Alloc > ( ) const
inline

Definition at line 347 of file ct_bitset_cxx14.hpp.

◆ operator std::vector< _Ty, _Alloc >() [2/2]

template<size_t _Bits, class T >
template<class _Ty , class _Alloc >
compile_time_bits::const_bitset< _Bits, T >::operator std::vector< _Ty, _Alloc > ( ) const
inline

Definition at line 474 of file ct_bitset_cxx17.hpp.

◆ operator+=() [1/4]

template<size_t _Bits, class T >
const_bitset& compile_time_bits::const_bitset< _Bits, T >::operator+= ( const const_bitset< _Bits, T > &  _Other)
inline

Definition at line 227 of file ct_bitset_cxx14.hpp.

◆ operator+=() [2/4]

template<size_t _Bits, class T >
const_bitset& compile_time_bits::const_bitset< _Bits, T >::operator+= ( const const_bitset< _Bits, T > &  _Other)
inline

Definition at line 308 of file ct_bitset_cxx17.hpp.

◆ operator+=() [3/4]

template<size_t _Bits, class T >
const_bitset& compile_time_bits::const_bitset< _Bits, T >::operator+= ( T  value)
inline

Definition at line 215 of file ct_bitset_cxx14.hpp.

◆ operator+=() [4/4]

template<size_t _Bits, class T >
const_bitset& compile_time_bits::const_bitset< _Bits, T >::operator+= ( T  value)
inline

Definition at line 296 of file ct_bitset_cxx17.hpp.

◆ operator-=() [1/4]

template<size_t _Bits, class T >
const_bitset& compile_time_bits::const_bitset< _Bits, T >::operator-= ( const const_bitset< _Bits, T > &  _Other)
inline

Definition at line 234 of file ct_bitset_cxx14.hpp.

◆ operator-=() [2/4]

template<size_t _Bits, class T >
const_bitset& compile_time_bits::const_bitset< _Bits, T >::operator-= ( const const_bitset< _Bits, T > &  _Other)
inline

Definition at line 315 of file ct_bitset_cxx17.hpp.

◆ operator-=() [3/4]

template<size_t _Bits, class T >
const_bitset& compile_time_bits::const_bitset< _Bits, T >::operator-= ( T  value)
inline

Definition at line 221 of file ct_bitset_cxx14.hpp.

◆ operator-=() [4/4]

template<size_t _Bits, class T >
const_bitset& compile_time_bits::const_bitset< _Bits, T >::operator-= ( T  value)
inline

Definition at line 302 of file ct_bitset_cxx17.hpp.

◆ reset() [1/2]

template<size_t _Bits, class T >
bool compile_time_bits::const_bitset< _Bits, T >::reset ( T  _v)
inline

◆ reset() [2/2]

template<size_t _Bits, class T >
bool compile_time_bits::const_bitset< _Bits, T >::reset ( T  _v)
inline

Definition at line 322 of file ct_bitset_cxx17.hpp.

◆ set() [1/2]

template<size_t _Bits, class T >
bool compile_time_bits::const_bitset< _Bits, T >::set ( T  _v)
inline

◆ set() [2/2]

template<size_t _Bits, class T >
bool compile_time_bits::const_bitset< _Bits, T >::set ( T  _v)
inline

Definition at line 335 of file ct_bitset_cxx17.hpp.

◆ set_range() [1/2]

template<size_t _Bits, class T >
static constexpr const_bitset compile_time_bits::const_bitset< _Bits, T >::set_range ( T  _from,
T  _to 
)
inlinestaticconstexpr

Definition at line 182 of file ct_bitset_cxx14.hpp.

Referenced by CSeqFeatData::s_GetLegalQualMap().

◆ set_range() [2/2]

template<size_t _Bits, class T >
static constexpr const_bitset compile_time_bits::const_bitset< _Bits, T >::set_range ( T  _from,
T  _to 
)
inlinestaticconstexpr

Definition at line 266 of file ct_bitset_cxx17.hpp.

◆ size() [1/2]

template<size_t _Bits, class T >
constexpr size_t compile_time_bits::const_bitset< _Bits, T >::size ( void  ) const
inlineconstexpr

◆ size() [2/2]

template<size_t _Bits, class T >
constexpr size_t compile_time_bits::const_bitset< _Bits, T >::size ( void  ) const
inlineconstexpr

Definition at line 272 of file ct_bitset_cxx17.hpp.

◆ test() [1/2]

template<size_t _Bits, class T >
constexpr bool compile_time_bits::const_bitset< _Bits, T >::test ( T  _Pos) const
inlineconstexpr

Definition at line 210 of file ct_bitset_cxx14.hpp.

◆ test() [2/2]

template<size_t _Bits, class T >
constexpr bool compile_time_bits::const_bitset< _Bits, T >::test ( T  _Pos) const
inlineconstexpr

Definition at line 291 of file ct_bitset_cxx17.hpp.

◆ x_test() [1/2]

template<size_t _Bits, class T >
constexpr bool compile_time_bits::const_bitset< _Bits, T >::x_test ( size_t  _Pos) const
inlineconstexprprivate

◆ x_test() [2/2]

template<size_t _Bits, class T >
constexpr bool compile_time_bits::const_bitset< _Bits, T >::x_test ( size_t  _Pos) const
inlineconstexprprivate

Definition at line 487 of file ct_bitset_cxx17.hpp.

Member Data Documentation

◆ _Array

template<size_t _Bits, class T >
_Array_t compile_time_bits::const_bitset< _Bits, T >::_Array {}
private

◆ _Bitsperword

template<size_t _Bits, class T >
static constexpr size_t compile_time_bits::const_bitset< _Bits, T >::_Bitsperword = 8 * sizeof(_Ty)
staticconstexpr

◆ _Words

template<size_t _Bits, class T >
static constexpr size_t compile_time_bits::const_bitset< _Bits, T >::_Words = (_Bits + _Bitsperword - 1) / _Bitsperword
staticconstexpr

The documentation for this class was generated from the following files:
Modified on Sat Sep 30 23:14:31 2023 by modify_doxy.py rev. 669887