![]()  | 
  
    Vc
    0.7.5-dev
    
   SIMD Vector Classes for C++ 
   | 
            | 
 
#include <Vc/float_v>
Public Member Functions | |
| float_m () | |
| default constructor   | |
| float_m (Vc::Zero) | |
| Constructs a mask with the entries initialized to zero.  | |
| float_m (Vc::One) | |
| Constructs a mask with the entries initialized to one.  | |
| float_m (bool b) | |
| Constructs a mask with the entries initialized to.   | |
| float_m (const float_m &) | |
| Standard copy constructor.  | |
| template<typename OtherMask > | |
| float_m (const OtherMask &) | |
| Constructs a mask object from a mask of different size/type.  | |
| bool | operator== (const float_m &) const | 
| Returns whether the two masks are equal in all entries.  | |
| bool | operator!= (const float_m &) const | 
| Returns whether the two masks differ in at least one entry.  | |
| float_m | operator&& (const float_m &) const | 
| Return the per-entry resulting mask of a logical (in this case same as bitwise) AND operation.  | |
| float_m | operator& (const float_m &) const | 
| Return the per-entry resulting mask of a logical (in this case same as bitwise) AND operation.  | |
| float_m | operator|| (const float_m &) const | 
| Return the per-entry resulting mask of a logical (in this case same as bitwise) OR operation.  | |
| float_m | operator| (const float_m &) const | 
| Return the per-entry resulting mask of a logical (in this case same as bitwise) OR operation.  | |
| float_m | operator^ (const float_m &) const | 
| Return the per-entry resulting mask of a logical (in this case same as bitwise) XOR operation.  | |
| float_m | operator! () const | 
| Return the per-entry resulting mask of a logical (in this case same as bitwise) NOT operation.  | |
| float_m | operator&= (const float_m &) | 
| Modify the mask per-entry using a logical (in this case same as bitwise) AND operation.  | |
| float_m | operator|= (const float_m &) | 
| Modify the mask per-entry using a logical (in this case same as bitwise) OR operation.  | |
| bool | isFull () const | 
| Return whether all entries of the mask are one.  | |
| bool | isEmpty () const | 
| Return whether all entries of the mask are zero.  | |
| bool | isMix () const | 
| Return whether the mask is neither full nor empty.  | |
| operator bool () const | |
| Cast to bool operator.   | |
| bool | operator[] (int i) const | 
| Read-only access to mask entries.   | |
| int | count () const | 
| Return how many entries of the mask are set to one.  | |
| int | firstOne () const | 
| Returns the index of the first one in the mask.  | |
| int | toInt () const | 
| Convert mask to an integer.   | |
| float_m | ( | ) | 
default constructor
Leaves the mask uninitialized.
      
  | 
  explicit | 
Constructs a mask with the entries initialized to.
b is true b is false | b | Determines the initial state of the mask. | 
| operator bool | ( | ) | const | 
Cast to bool operator.
Returns the same as isFull().
| bool operator[] | ( | int | i | ) | const | 
Read-only access to mask entries.
| i | Determines the boolean to be accessed. | 
i th entry of the mask as a bool. | int toInt | ( | ) | const | 
Convert mask to an integer.
E.g. a mask like [true, false, false, true] would result in a 9 (in binary: 1001).