Public Types | |
| using | BlockType = blockType |
| using | blockViewType = Kokkos::View< BlockType *, Kokkos::LayoutLeft, MemorySpace > |
| using | deviceType = typename blockViewType::device_type |
| using | memory_space = typename blockViewType::memory_space |
| using | execution_space = typename blockViewType::execution_space |
Public Member Functions | |
| bitsetHD (const word &name, int32 numBits) | |
| bitsetHD (const bitsetHD &)=default | |
| bitsetHD (bitsetHD &&)=default | |
| bitsetHD & | operator= (const bitsetHD &)=default |
| bitsetHD & | operator= (bitsetHD &&)=default |
| void | set () |
| void | reset () |
| void | clear () |
| INLINE_FUNCTION_HD void | set (int32 pos) const |
| INLINE_FUNCTION_HD void | unset (int32 pos) const |
| INLINE_FUNCTION_HD void | reset (int32 pos) const |
| INLINE_FUNCTION_HD void | flip (int32 pos) const |
| INLINE_FUNCTION_HD bool | isSet (int32 pos) const |
| INLINE_FUNCTION_HD bool | isUnset (int32 pos) const |
| INLINE_FUNCTION_HD bool | isSetReset (int32 pos) const |
| INLINE_FUNCTION_HD int32 | numBlocks () const |
| INLINE_FUNCTION_HD int32 | numBits () const |
| INLINE_FUNCTION_HD int32 | size () const |
| INLINE_FUNCTION_HD int32 | capacity () const |
| INLINE_FUNCTION_H void | realloc (int32 numBits) |
Static Protected Member Functions | |
| static INLINE_FUNCTION_HD int32 | blockIndex (int32 pos) |
| static INLINE_FUNCTION_HD BlockType | bitIndex (int32 pos) |
| static INLINE_FUNCTION_HD BlockType | blockMask (int32 pos) |
| static INLINE_FUNCTION_HD int32 | calculateBlockSize (int32 numBits) |
Protected Attributes | |
| int32 | numBlocks_ |
| int32 | numBits_ |
| blockViewType | blocks_ |
Static Protected Attributes | |
| const static int32 | bitsPerBlock_ = std::numeric_limits<BlockType>::digits |
| const static int32 | blockMask_ = bitsPerBlock_ - 1 |
Definition at line 37 of file bitsetHD.hpp.
| using BlockType = blockType |
Definition at line 41 of file bitsetHD.hpp.
| using blockViewType = Kokkos::View<BlockType*, Kokkos::LayoutLeft, MemorySpace> |
Definition at line 43 of file bitsetHD.hpp.
| using deviceType = typename blockViewType::device_type |
Definition at line 45 of file bitsetHD.hpp.
| using memory_space = typename blockViewType::memory_space |
Definition at line 47 of file bitsetHD.hpp.
| using execution_space = typename blockViewType::execution_space |
Definition at line 49 of file bitsetHD.hpp.
Definition at line 93 of file bitsetHD.hpp.
|
inlinestaticprotected |
Definition at line 66 of file bitsetHD.hpp.
References bitsetHD< blockType, MemorySpace >::bitsPerBlock_.
Referenced by bitsetHD< blockType, MemorySpace >::flip(), bitsetHD< blockType, MemorySpace >::isSet(), bitsetHD< blockType, MemorySpace >::isSetReset(), bitsetHD< blockType, MemorySpace >::set(), and bitsetHD< blockType, MemorySpace >::unset().

|
inlinestaticprotected |
Definition at line 72 of file bitsetHD.hpp.
References bitsetHD< blockType, MemorySpace >::bitsPerBlock_.
|
inlinestaticprotected |
Definition at line 78 of file bitsetHD.hpp.
References bitsetHD< blockType, MemorySpace >::blockMask_.
Referenced by bitsetHD< blockType, MemorySpace >::flip(), bitsetHD< blockType, MemorySpace >::isSet(), bitsetHD< blockType, MemorySpace >::isSetReset(), bitsetHD< blockType, MemorySpace >::set(), and bitsetHD< blockType, MemorySpace >::unset().

|
inlinestaticprotected |
Definition at line 84 of file bitsetHD.hpp.
References bitsetHD< blockType, MemorySpace >::bitsPerBlock_, and bitsetHD< blockType, MemorySpace >::numBits().
Referenced by bitsetHD< blockType, MemorySpace >::realloc().


|
inline |
Definition at line 110 of file bitsetHD.hpp.
References bitsetHD< blockType, MemorySpace >::blocks_.
|
inline |
Definition at line 115 of file bitsetHD.hpp.
References bitsetHD< blockType, MemorySpace >::blocks_.
|
inline |
Definition at line 120 of file bitsetHD.hpp.
References bitsetHD< blockType, MemorySpace >::blocks_.
|
inline |
Definition at line 126 of file bitsetHD.hpp.
References bitsetHD< blockType, MemorySpace >::blockIndex(), bitsetHD< blockType, MemorySpace >::blockMask(), and bitsetHD< blockType, MemorySpace >::blocks_.

|
inline |
Definition at line 133 of file bitsetHD.hpp.
References bitsetHD< blockType, MemorySpace >::blockIndex(), bitsetHD< blockType, MemorySpace >::blockMask(), and bitsetHD< blockType, MemorySpace >::blocks_.
Referenced by bitsetHD< blockType, MemorySpace >::reset().


|
inline |
Definition at line 140 of file bitsetHD.hpp.
References bitsetHD< blockType, MemorySpace >::unset().

|
inline |
Definition at line 146 of file bitsetHD.hpp.
References bitsetHD< blockType, MemorySpace >::blockIndex(), bitsetHD< blockType, MemorySpace >::blockMask(), and bitsetHD< blockType, MemorySpace >::blocks_.

|
inline |
Definition at line 153 of file bitsetHD.hpp.
References bitsetHD< blockType, MemorySpace >::blockIndex(), bitsetHD< blockType, MemorySpace >::blockMask(), and bitsetHD< blockType, MemorySpace >::blocks_.
Referenced by bitsetHD< blockType, MemorySpace >::isUnset().


|
inline |
Definition at line 160 of file bitsetHD.hpp.
References bitsetHD< blockType, MemorySpace >::isSet().

|
inline |
Definition at line 166 of file bitsetHD.hpp.
References bitsetHD< blockType, MemorySpace >::blockIndex(), bitsetHD< blockType, MemorySpace >::blockMask(), and bitsetHD< blockType, MemorySpace >::blocks_.

|
inline |
Definition at line 176 of file bitsetHD.hpp.
References bitsetHD< blockType, MemorySpace >::numBlocks_.
|
inline |
Definition at line 182 of file bitsetHD.hpp.
References bitsetHD< blockType, MemorySpace >::numBits_.
Referenced by bitsetHD< blockType, MemorySpace >::calculateBlockSize(), and bitsetHD< blockType, MemorySpace >::realloc().

|
inline |
Definition at line 188 of file bitsetHD.hpp.
References bitsetHD< blockType, MemorySpace >::numBits_.
|
inline |
Definition at line 194 of file bitsetHD.hpp.
References bitsetHD< blockType, MemorySpace >::bitsPerBlock_, and bitsetHD< blockType, MemorySpace >::numBlocks_.
|
inline |
Definition at line 200 of file bitsetHD.hpp.
References bitsetHD< blockType, MemorySpace >::blocks_, bitsetHD< blockType, MemorySpace >::calculateBlockSize(), bitsetHD< blockType, MemorySpace >::numBits(), bitsetHD< blockType, MemorySpace >::numBits_, bitsetHD< blockType, MemorySpace >::numBlocks_, and pFlow::realloc().

|
protected |
Definition at line 53 of file bitsetHD.hpp.
Referenced by bitsetHD< blockType, MemorySpace >::capacity(), bitsetHD< blockType, MemorySpace >::numBlocks(), and bitsetHD< blockType, MemorySpace >::realloc().
|
protected |
Definition at line 55 of file bitsetHD.hpp.
Referenced by bitsetHD< blockType, MemorySpace >::numBits(), bitsetHD< blockType, MemorySpace >::realloc(), and bitsetHD< blockType, MemorySpace >::size().
|
protected |
Definition at line 57 of file bitsetHD.hpp.
Referenced by bitsetHD< blockType, MemorySpace >::clear(), bitsetHD< blockType, MemorySpace >::flip(), bitsetHD< blockType, MemorySpace >::isSet(), bitsetHD< blockType, MemorySpace >::isSetReset(), bitsetHD< blockType, MemorySpace >::realloc(), bitsetHD< blockType, MemorySpace >::reset(), bitsetHD< blockType, MemorySpace >::set(), and bitsetHD< blockType, MemorySpace >::unset().
Definition at line 60 of file bitsetHD.hpp.
Referenced by bitsetHD< blockType, MemorySpace >::bitIndex(), bitsetHD< blockType, MemorySpace >::blockIndex(), bitsetHD< blockType, MemorySpace >::calculateBlockSize(), and bitsetHD< blockType, MemorySpace >::capacity().
|
inlinestaticprotected |
Definition at line 63 of file bitsetHD.hpp.
Referenced by bitsetHD< blockType, MemorySpace >::blockMask().