|
| | VecPredRegContainer () |
| |
| | VecPredRegContainer (const VecPredRegContainer &)=default |
| |
| MyClass & | operator= (const MyClass &that) |
| |
| MyClass & | operator= (const std::vector< uint8_t > &that) |
| | Required for de-serialization. More...
|
| |
| void | reset () |
| | Resets the predicate register to an all-false register. More...
|
| |
| void | set () |
| | Sets the predicate register to an all-true value. More...
|
| |
| template<size_t N2, bool P2> |
| bool | operator== (const VecPredRegContainer< N2, P2 > &that) const |
| | Equality operator, required to compare thread contexts. More...
|
| |
| template<size_t N2, bool P2> |
| bool | operator!= (const VecPredRegContainer< N2, P2 > &that) const |
| | Inequality operator, required to compare thread contexts. More...
|
| |
| bool & | operator[] (size_t idx) |
| | Returns a reference to a specific element of the internal container. More...
|
| |
| const bool & | operator[] (size_t idx) const |
| | Returns a const reference to a specific element of the internal container. More...
|
| |
| uint8_t | get_bits (size_t idx, uint8_t nbits) const |
| | Returns a subset of bits starting from a specific element in the container. More...
|
| |
| void | set_bits (size_t idx, uint8_t nbits, uint8_t bval) |
| | Set a subset of bits starting from a specific element in the container. More...
|
| |
| const std::string | print () const |
| | Returns a string representation of the register content. More...
|
| |
|
| template<typename VecElem , size_t NumElems = (Packed ? NumBits : NumBits / sizeof(VecElem))> |
| VecPredRegT< VecElem, NumElems, Packed, true > | as () const |
| | Create a view of this container. More...
|
| |
| template<typename VecElem , size_t NumElems = (Packed ? NumBits : NumBits / sizeof(VecElem))> |
| VecPredRegT< VecElem, NumElems, Packed, false > | as () |
| |
template<size_t NumBits, bool Packed>
class VecPredRegContainer< NumBits, Packed >
Generic predicate register container.
This generic class implements the Model in an MVC pattern, similarly to
- See also
- VecRegContainer.
- Template Parameters
-
| NumBits | Size of the container in bits. |
| Packed | See . |
Definition at line 51 of file vec_pred_reg.hh.
template<size_t NumBits, bool Packed>
template<typename VecElem , size_t NumElems = (Packed ? NumBits : NumBits / sizeof(VecElem))>
Create a view of this container.
If NumElems is provided, the size of the container is bounds-checked, otherwise the size is inferred from the container size.
- Template Parameters
-
| VecElem | Type of the vector elements. |
| NumElems | Number of vector elements making up the view. |
Definition at line 356 of file vec_pred_reg.hh.