#include
◆mask()[1/2]
Creates a mask
-
Parameters
-
initial_set |
If true, the mask is initialized with 1s, otherise it is initialized with 0s. |
◆mask()[2/2]
Construct from unsigned (32b) words. Each bit in the input words is used to initialize one of the elements in the mask.
-
Parameters
-
w |
First word used to initialize the mask. |
words |
Rest of words used to initialize the mask. |
◆clear()
Sets the value of the element in the given index to 0.
-
Parameters
-
◆clz()
Returns the count of consecutive elements, starting at the high part of the mask, whose value is 0.
◆count()
Returns the count of elements whose value is 1.
◆empty()
Returns a bool that says whether the value of all the elements in the mask is 0.
◆operator&()
Returns the result of merging the current and the given masks using the AND operation.
-
Parameters
-
◆operator&=()
Updates the mask with the result of merging the current with the given masks using the AND operation. Returns a reference to the updated mask.
-
Parameters
-
◆operator==()
Compares whether two masks are equal.
-
Parameters
-
a |
Maskto compare against. |
◆operator|()
Returns the result of merging the current and the given masks using the OR operation.
-
Parameters
-
◆operator|=()
Updates the mask with the result of merging the current and the given masks using the OR operation. Returns a reference to the updated mask.
-
Parameters
-
◆operator~()
Returns a mask that contains the negation of the values of all the elements in the mask (0->1, 1->0).
◆set()
Sets the value of the element in the given index to 1.
-
Parameters
-
◆size()
Returns the number of elements in the mask
◆test()
Returns the value of the element in the given index.
-
Parameters
-
The documentation for this class was generated from the following file: