43 #ifndef PackedBoolList_H 44 #define PackedBoolList_H 76 template<
class LabelListType>
77 label setIndices(
const LabelListType& indices);
81 template<
class LabelListType>
82 label unsetIndices(
const LabelListType& indices);
85 template<
class LabelListType>
86 label subsetIndices(
const LabelListType& indices);
void unset(const PackedList< 1 > &)
Unset specified bits.
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)...
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.
label size() const
Number of entries.
List< PackedBoolList > PackedBoolListList
void transfer(PackedBoolList &)
Transfer the contents of the argument list into this list.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
PackedBoolList()
Construct null.
A List with indirect addressing.
PackedBoolList & operator&=(const PackedList< 1 > &)
And operator (lists may be dissimilar sizes)
PackedBoolList & operator+=(const PackedList< 1 > &)
Add entries to this list, synonymous with the or operator.
PackedBoolList operator~() const
Complement operator.
Xfer< labelList > used() const
Return indices of the used (true) elements as a list of labels.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Xfer< PackedBoolList > xfer()
Transfer contents to the Xfer container.
void subset(const PackedList< 1 > &)
Subset with the specified list.
PackedBoolList & operator=(const bool val)
Assignment of all entries to the given value.
autoPtr< PackedBoolList > clone() const
Clone.
A dynamically allocatable list of packed unsigned integers.
PackedBoolList & operator^=(const PackedList< 1 > &)
Xor operator (lists may be dissimilar sizes)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
PackedBoolList & operator-=(const PackedList< 1 > &)
Remove entries from this list - unset the specified bits.