Go to the documentation of this file.
43 #ifndef PackedBoolList_H
44 #define PackedBoolList_H
76 template<
class LabelListType>
81 template<
class LabelListType>
85 template<
class LabelListType>
autoPtr< PackedBoolList > clone() const
Clone.
Xfer< PackedBoolList > xfer()
Transfer contents to the Xfer container.
label setIndices(const LabelListType &indices)
Set the listed indices. Return number of elements changed.
void unset(const PackedList< 1 > &)
Unset specified bits.
label subsetIndices(const LabelListType &indices)
Subset with the listed indices. Return number of elements subsetted.
void set(const PackedList< 1 > &)
Set specified bits.
bool bitorPrepare(const PackedList< 1 > &lst, label &maxPackLen)
Preparation, resizing before a bitor operation.
PackedBoolList()
Construct null.
PackedBoolList & operator=(const bool val)
Assignment of all entries to the given value.
void transfer(PackedBoolList &)
Transfer the contents of the argument list into this list.
PackedBoolList & operator&=(const PackedList< 1 > &)
And operator (lists may be dissimilar sizes)
A simple container for copying or transferring objects of type <T>.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
PackedBoolList & operator|=(const PackedList< 1 > &)
Or operator (lists may be dissimilar sizes)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
PackedBoolList & operator^=(const PackedList< 1 > &)
Xor operator (lists may be dissimilar sizes)
PackedBoolList & operator+=(const PackedList< 1 > &)
Add entries to this list, synonymous with the or operator.
List< PackedBoolList > PackedBoolListList
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
PackedBoolList operator~() const
Complement operator.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A dynamically allocatable list of packed unsigned integers.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
A List with indirect addressing.
PackedBoolList & operator-=(const PackedList< 1 > &)
Remove entries from this list - unset the specified bits.
label size() const
Number of entries.
label unsetIndices(const LabelListType &indices)
Unset the listed indices. Return number of elements changed.
void subset(const PackedList< 1 > &)
Subset with the specified list.
Xfer< labelList > used() const
Return indices of the used (true) elements as a list of labels.