![]() |
|
A VdfMask is placed on connections to specify the data flowing through them. More...
#include <mask.h>
Classes | |
| struct | ArbitraryLessThan |
| Arbitrary total ordering of masks. More... | |
| struct | HashFunctor |
| Hash Functor. More... | |
| class | iterator |
| Iterator class used to iterate through the elements of the mask. More... | |
Public Types | |
| typedef TfCompressedBits | Bits |
| Typedef on the internal bitset implementation used. | |
Public Member Functions | |
| VdfMask () | |
| Constructs an empty mask. | |
| VdfMask (size_t size) | |
Constructs a mask of size size. | |
| VdfMask (VdfMask::Bits const &bits) | |
| Constructs a mask from VdfMask::Bits. | |
| VdfMask (VdfMask::Bits &&bits) | |
Constructs a mask by moving the contents of bits into the mask. | |
| void | Swap (VdfMask &rhs) noexcept |
Swap this mask's bits with rhs. | |
| void | SetAll () |
| Enables all the bits in the mask. | |
| void | SetIndex (size_t index) |
Adds the given index to the mask. | |
| bool | IsSet (size_t index) const |
| Returns true if mask at index is set. | |
| void | ClearIndex (size_t index) |
Removes the given index from the mask. | |
| size_t | GetSize () const |
| Returns the size of the mask. | |
| bool | IsEmpty () const |
Returns true if this mask is empty, i.e. | |
| bool | Overlaps (const VdfMask &mask) const |
Returns true if this mask and mask have any set entries in common, and false otherwise. | |
| bool | Contains (const VdfMask &mask) const |
Returns true if mask is a subset-of or equal to this mask, false otherwise. | |
| bool | IsAllOnes () const |
| Returns true if this mask has all entries set. | |
| bool | IsAllZeros () const |
| Returns true if this mask has all entries unset. | |
| bool | IsAnySet () const |
| Returns true, if there is at least a single set entry. | |
| size_t | GetFirstSet () const |
| Returns the first set bit in the mask. | |
| size_t | GetLastSet () const |
| Returns the last set bit in the mask. | |
| size_t | GetNumSet () const |
| Returns the number of set bits in the mask. | |
| bool | IsContiguous () const |
| Returns true if the set bits in the mask are contiguous. | |
| iterator | begin () const |
| Returns an iterator that can be used to iterate through the elements of the mask. | |
Operators | |
| bool | operator== (const VdfMask &rhs) const |
Returns true if this and rhs are equal, false otherwise. | |
| bool | operator!= (const VdfMask &rhs) const |
| VdfMask & | operator&= (const VdfMask &rhs) |
| Ands two masks together. | |
| VdfMask | operator& (const VdfMask &rhs) const |
| VdfMask & | operator|= (const VdfMask &rhs) |
| Ors two masks together. | |
| VdfMask | operator| (const VdfMask &rhs) const |
| VdfMask & | operator^= (const VdfMask &rhs) |
| Xors two masks together. | |
| VdfMask | operator^ (const VdfMask &rhs) const |
| VdfMask & | operator-= (const VdfMask &rhs) |
| Performs an asymmetric set difference. | |
| VdfMask | operator- (const VdfMask &rhs) const |
| VdfMask & | Complement () |
| Complement. | |
| VdfMask & | SetOrAppend (const VdfMask &rhs) |
Sets this mask to rhs if this mask is of zero size. | |
Debugging API | |
| std::string | GetRLEString () const |
| Returns the mask in an RLE format. | |
| size_t | GetMemoryUsage () const |
| Returns the amount of memory in bytes used by this mask. | |
Performance Considerations | |
| VdfMask::Bits const & | GetBits () const |
| Get this mask's content as CtCompressedfBits. | |
| size_t | GetHash () const |
| Returns a hash for the mask. | |
Static Public Member Functions | |
| static VdfMask | AllOnes (size_t size) |
| Returns a mask of the requested size that will iterate over all elements. | |
| static VdfMask | AllZeros (size_t size) |
| Returns a mask of the requested size where no element is set. | |
Friends | |
| class | Vdf_MaskRegistry |
| void | swap (VdfMask &lhs, VdfMask &rhs) noexcept |
Swap lhs's bits with rhs. | |
| VDF_API std::ostream & | operator<< (std::ostream &os, const VdfMask &mask) |
| void | TfDelegatedCountIncrement (_BitsImpl *p) noexcept |
| void | TfDelegatedCountDecrement (_BitsImpl *p) noexcept |
A VdfMask is placed on connections to specify the data flowing through them.
| typedef TfCompressedBits Bits |
|
inlineexplicit |
|
inlineexplicit |
Constructs a mask from VdfMask::Bits.
|
inlineexplicit |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
|
friend |
|
friend |