|
Safe DDS
|
Template class to hold a bitmap and its memory. More...
#include <BitmapSet.hpp>
Public Types | |
| using | ExposedBitmapFunctionality = BitmapFunctionality< T, BitmapHelper, NBITS > |
| Exposed BitmapFunctionality alias. More... | |
| using | InnerBitmap = Bitmap< T, ExposedBitmapFunctionality::NITEMS > |
| Inner bitmap alias. More... | |
Public Member Functions | |
| BitmapSet () noexcept | |
| Default constructor. More... | |
| BitmapSet (const Bitmap< T, ExposedBitmapFunctionality::NITEMS > &bitmap) noexcept | |
| Constructor from a bitmap. More... | |
| virtual | ~BitmapSet () noexcept=default |
| Default destructor. More... | |
| BitmapSet (const BitmapSet &other) noexcept | |
| Copy allowed. More... | |
| BitmapSet (const BitmapSet &&other) noexcept | |
| Movement allowed. More... | |
| BitmapSet & | operator= (const BitmapSet &other) noexcept=default |
| Default copy operator allowed. More... | |
| BitmapSet & | operator= (BitmapSet &&other) &noexcept=default |
| Default movement operator allowed. More... | |
| Bitmap< T > | get_bitmap () const noexcept override |
| Copy the Bitmap contents of this map into another Bitmap instance. More... | |
| T | base () const noexcept override |
| Get base of the bitmap. More... | |
| void | add_range (const T &from, const T &to) noexcept |
| Add a range of items to the bitmap. More... | |
| void | add (const T &item) noexcept |
| Add an item to the bitmap. More... | |
| void | base_update (const T &new_base) noexcept |
| Set a new base for the range, keeping old values where possible. More... | |
| void | base (const T &new_base) noexcept |
| Set a new base for the range. More... | |
| uint32_t | count () const noexcept override |
| Counts the number of bits set in the bitmap. More... | |
| bool | empty () const noexcept override |
| Check if the bitmap is empty. More... | |
| bool | is_set (const T &item) const noexcept override |
| Check if an item is set in the bitmap. More... | |
| ReturnCode | max (T &result) const noexcept override |
| Get the maximum value in the bitmap. More... | |
| void | merge (const Bitmap< T, ExposedBitmapFunctionality::NITEMS > &bitmap) noexcept |
| Merge two bitmaps. More... | |
| ReturnCode | min_max (T &min_value, T &max_value) const noexcept override |
| Get the minimum and maximum values in the bitmap. More... | |
| ReturnCode | min (T &result) const noexcept override |
| Get the minimum value in the bitmap. More... | |
| void | remove_all () noexcept override |
| Removes all elements from the bitmap. More... | |
| void | remove_range (const T &from, const T &to) noexcept override |
| Removes a set of consecutive elements from the bitmap. More... | |
| void | remove (const T &item) noexcept override |
| Removes an element from the bitmap. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from eprosima::safedds::memory::IRemovableBitmapSet< T > | |
| ~IRemovableBitmapSet () noexcept=default | |
| Protected destructor ownership defined on creation. More... | |
| IRemovableBitmapSet () noexcept=default | |
| Default creation. More... | |
| IRemovableBitmapSet (const IRemovableBitmapSet &) noexcept=default | |
| Copy allowed. More... | |
| IRemovableBitmapSet (IRemovableBitmapSet &&) noexcept=default | |
| Movement allowed. More... | |
| IRemovableBitmapSet & | operator= (const IRemovableBitmapSet &) noexcept=default |
| Copy operator allowed. More... | |
| IRemovableBitmapSet & | operator= (IRemovableBitmapSet &&) noexcept=default |
| Movement operator allowed. More... | |
Protected Member Functions inherited from eprosima::safedds::memory::IBaseBitmapSet< T > | |
| ~IBaseBitmapSet () noexcept=default | |
| Protected destructor ownership defined on creation. More... | |
| IBaseBitmapSet () noexcept=default | |
| Default creation. More... | |
| IBaseBitmapSet (const IBaseBitmapSet &) noexcept=default | |
| Copy allowed. More... | |
| IBaseBitmapSet (IBaseBitmapSet &&) noexcept=default | |
| Movement allowed. More... | |
| IBaseBitmapSet & | operator= (const IBaseBitmapSet &) noexcept=default |
| Copy operator allowed. More... | |
| IBaseBitmapSet & | operator= (IBaseBitmapSet &&) noexcept=default |
| Movement operator allowed. More... | |
Template class to hold a bitmap and its memory.
| using eprosima::safedds::memory::container::BitmapSet< T, BitmapHelper, NBITS >::ExposedBitmapFunctionality = BitmapFunctionality<T, BitmapHelper, NBITS> |
Exposed BitmapFunctionality alias.
| using eprosima::safedds::memory::container::BitmapSet< T, BitmapHelper, NBITS >::InnerBitmap = Bitmap<T, ExposedBitmapFunctionality::NITEMS> |
Inner bitmap alias.
|
inlinenoexcept |
Default constructor.
|
inlineexplicitnoexcept |
Constructor from a bitmap.
| bitmap | input bitmap. |
|
virtualdefaultnoexcept |
Default destructor.
|
inlinenoexcept |
Copy allowed.
| other | other bitmap. |
|
inlinenoexcept |
Movement allowed.
| other | other bitmap. |
|
inlinenoexcept |
|
inlinenoexcept |
Add a range of items to the bitmap.
| from | Starting value of the range to add (Will be added). |
| to | Ending value of the range to add. |
|
inlineoverridevirtualnoexcept |
Get base of the bitmap.
Implements eprosima::safedds::memory::IBaseBitmapSet< T >.
|
inlinenoexcept |
Set a new base for the range.
This method resets the bitmap and sets a new value for its base.
| new_base | New base value to set. |
|
inlinenoexcept |
Set a new base for the range, keeping old values where possible.
This method implements a sliding window mechanism for changing the base of the range.
| new_base | New base value to set. |
|
inlineoverridevirtualnoexcept |
Counts the number of bits set in the bitmap.
Implements eprosima::safedds::memory::IBaseBitmapSet< T >.
|
inlineoverridevirtualnoexcept |
Check if the bitmap is empty.
Implements eprosima::safedds::memory::IBaseBitmapSet< T >.
|
inlineoverridevirtualnoexcept |
Copy the Bitmap contents of this map into another Bitmap instance.
Implements eprosima::safedds::memory::IBaseBitmapSet< T >.
|
inlineoverridevirtualnoexcept |
Check if an item is set in the bitmap.
| item | Value to check. |
Implements eprosima::safedds::memory::IBaseBitmapSet< T >.
|
inlineoverridevirtualnoexcept |
Get the maximum value in the bitmap.
| result | Maximum value in the bitmap. |
Implements eprosima::safedds::memory::IBaseBitmapSet< T >.
|
inlinenoexcept |
|
inlineoverridevirtualnoexcept |
Get the minimum value in the bitmap.
| result | Minimum value in the bitmap. |
Implements eprosima::safedds::memory::IBaseBitmapSet< T >.
|
inlineoverridevirtualnoexcept |
Get the minimum and maximum values in the bitmap.
| min_value | Minimum value in the bitmap. |
| max_value | Maximum value in the bitmap. |
Implements eprosima::safedds::memory::IBaseBitmapSet< T >.
|
defaultnoexcept |
|
defaultnoexcept |
|
inlineoverridevirtualnoexcept |
Removes an element from the bitmap.
| item | Value to be removed. |
Implements eprosima::safedds::memory::IRemovableBitmapSet< T >.
|
inlineoverridevirtualnoexcept |
Removes all elements from the bitmap.
Implements eprosima::safedds::memory::IRemovableBitmapSet< T >.
|
inlineoverridevirtualnoexcept |
Removes a set of consecutive elements from the bitmap.
| from | Starting value of the range to remove (Will be removed). |
| to | Ending value of the range to remove. |
Implements eprosima::safedds::memory::IRemovableBitmapSet< T >.