Public Types | Public Member Functions | Static Public Attributes | List of all members
ML::experimental::fil::detail::bitset< index_t, storage_t > Struct Template Reference

#include <bitset.hpp>

Collaboration diagram for ML::experimental::fil::detail::bitset< index_t, storage_t >:
Collaboration graph

Public Types

using storage_type = storage_t
 
using index_type = index_t
 

Public Member Functions

HOST DEVICE bitset ()
 
HOST DEVICE bitset (storage_type *data, index_type size)
 
HOST DEVICE bitset (storage_type *data)
 
HOST DEVICE auto size () const
 
HOST DEVICE auto bin_count () const
 
HOST DEVICE auto & set (index_type index)
 
HOST DEVICE auto & clear (index_type index)
 
HOST DEVICE auto test (index_type index) const
 
HOST DEVICE auto & flip ()
 
HOST DEVICE auto & operator&= (bitset< storage_type > const &other)
 
HOST DEVICE auto & operator|= (bitset< storage_type > const &other)
 
HOST DEVICE auto & operator^= (bitset< storage_type > const &other)
 
HOST DEVICE auto & operator~ () const
 

Static Public Attributes

constexpr static auto const bin_width = index_type(sizeof(storage_type) * 8)
 

Member Typedef Documentation

◆ index_type

template<typename index_t = size_t, typename storage_t = std::byte>
using ML::experimental::fil::detail::bitset< index_t, storage_t >::index_type = index_t

◆ storage_type

template<typename index_t = size_t, typename storage_t = std::byte>
using ML::experimental::fil::detail::bitset< index_t, storage_t >::storage_type = storage_t

Constructor & Destructor Documentation

◆ bitset() [1/3]

template<typename index_t = size_t, typename storage_t = std::byte>
HOST DEVICE ML::experimental::fil::detail::bitset< index_t, storage_t >::bitset ( )
inline

◆ bitset() [2/3]

template<typename index_t = size_t, typename storage_t = std::byte>
HOST DEVICE ML::experimental::fil::detail::bitset< index_t, storage_t >::bitset ( storage_type data,
index_type  size 
)
inline

◆ bitset() [3/3]

template<typename index_t = size_t, typename storage_t = std::byte>
HOST DEVICE ML::experimental::fil::detail::bitset< index_t, storage_t >::bitset ( storage_type data)
inline

Member Function Documentation

◆ bin_count()

template<typename index_t = size_t, typename storage_t = std::byte>
HOST DEVICE auto ML::experimental::fil::detail::bitset< index_t, storage_t >::bin_count ( ) const
inline

◆ clear()

template<typename index_t = size_t, typename storage_t = std::byte>
HOST DEVICE auto& ML::experimental::fil::detail::bitset< index_t, storage_t >::clear ( index_type  index)
inline

◆ flip()

template<typename index_t = size_t, typename storage_t = std::byte>
HOST DEVICE auto& ML::experimental::fil::detail::bitset< index_t, storage_t >::flip ( )
inline

◆ operator&=()

template<typename index_t = size_t, typename storage_t = std::byte>
HOST DEVICE auto& ML::experimental::fil::detail::bitset< index_t, storage_t >::operator&= ( bitset< storage_type > const &  other)
inline

◆ operator^=()

template<typename index_t = size_t, typename storage_t = std::byte>
HOST DEVICE auto& ML::experimental::fil::detail::bitset< index_t, storage_t >::operator^= ( bitset< storage_type > const &  other)
inline

◆ operator|=()

template<typename index_t = size_t, typename storage_t = std::byte>
HOST DEVICE auto& ML::experimental::fil::detail::bitset< index_t, storage_t >::operator|= ( bitset< storage_type > const &  other)
inline

◆ operator~()

template<typename index_t = size_t, typename storage_t = std::byte>
HOST DEVICE auto& ML::experimental::fil::detail::bitset< index_t, storage_t >::operator~ ( ) const
inline

◆ set()

template<typename index_t = size_t, typename storage_t = std::byte>
HOST DEVICE auto& ML::experimental::fil::detail::bitset< index_t, storage_t >::set ( index_type  index)
inline

◆ size()

template<typename index_t = size_t, typename storage_t = std::byte>
HOST DEVICE auto ML::experimental::fil::detail::bitset< index_t, storage_t >::size ( ) const
inline

◆ test()

template<typename index_t = size_t, typename storage_t = std::byte>
HOST DEVICE auto ML::experimental::fil::detail::bitset< index_t, storage_t >::test ( index_type  index) const
inline

Member Data Documentation

◆ bin_width

template<typename index_t = size_t, typename storage_t = std::byte>
constexpr static auto const ML::experimental::fil::detail::bitset< index_t, storage_t >::bin_width = index_type(sizeof(storage_type) * 8)
staticconstexpr

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