Safe DDS
eprosima::safedds::memory::IRemovableBitmapSet< T > Class Template Referenceabstract

Interface class with the remove method of Bitmap. More...

#include <IRemovableBitmapSet.hpp>

Public Member Functions

virtual void remove (const T &item) noexcept=0
 Removes an element from the bitmap. More...
 
virtual void remove_all () noexcept=0
 Removes all elements from the bitmap. More...
 
virtual void remove_range (const T &from, const T &to) noexcept=0
 Removes a set of consecutive elements from the bitmap. More...
 
- Public Member Functions inherited from eprosima::safedds::memory::IBaseBitmapSet< T >
virtual Bitmap< T > get_bitmap () const noexcept=0
 Copy the Bitmap contents of this map into another Bitmap instance. More...
 
virtual T base () const noexcept=0
 Get base of the bitmap. More...
 
virtual bool empty () const noexcept=0
 Checks if the bitmap contains setted values. More...
 
virtual uint32_t count () const noexcept=0
 Returns the number of values set in the bitmap. More...
 
virtual ReturnCode max (T &result) const noexcept=0
 Returns the highest value set in the bitmap. More...
 
virtual ReturnCode min (T &result) const noexcept=0
 Returns the lowest value set in the bitmap. More...
 
virtual ReturnCode min_max (T &min_value, T &max_value) const noexcept=0
 Returns the lowest and highest value set in the bitmap. More...
 
virtual bool is_set (const T &item) const noexcept=0
 Checks if an element is present in the bitmap. More...
 

Protected Member Functions

 ~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...
 
IRemovableBitmapSetoperator= (const IRemovableBitmapSet &) noexcept=default
 Copy operator allowed. More...
 
IRemovableBitmapSetoperator= (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...
 
IBaseBitmapSetoperator= (const IBaseBitmapSet &) noexcept=default
 Copy operator allowed. More...
 
IBaseBitmapSetoperator= (IBaseBitmapSet &&) noexcept=default
 Movement operator allowed. More...
 

Detailed Description

template<class T>
class eprosima::safedds::memory::IRemovableBitmapSet< T >

Interface class with the remove method of Bitmap.

Constructor & Destructor Documentation

◆ ~IRemovableBitmapSet()

template<class T >
eprosima::safedds::memory::IRemovableBitmapSet< T >::~IRemovableBitmapSet ( )
protecteddefaultnoexcept

Protected destructor ownership defined on creation.

◆ IRemovableBitmapSet() [1/3]

template<class T >
eprosima::safedds::memory::IRemovableBitmapSet< T >::IRemovableBitmapSet ( )
protecteddefaultnoexcept

Default creation.

◆ IRemovableBitmapSet() [2/3]

template<class T >
eprosima::safedds::memory::IRemovableBitmapSet< T >::IRemovableBitmapSet ( const IRemovableBitmapSet< T > &  )
protecteddefaultnoexcept

Copy allowed.

◆ IRemovableBitmapSet() [3/3]

template<class T >
eprosima::safedds::memory::IRemovableBitmapSet< T >::IRemovableBitmapSet ( IRemovableBitmapSet< T > &&  )
protecteddefaultnoexcept

Movement allowed.

Member Function Documentation

◆ operator=() [1/2]

template<class T >
IRemovableBitmapSet& eprosima::safedds::memory::IRemovableBitmapSet< T >::operator= ( const IRemovableBitmapSet< T > &  )
protecteddefaultnoexcept

Copy operator allowed.

Returns
IRemovableBitmapSet&.

◆ operator=() [2/2]

template<class T >
IRemovableBitmapSet& eprosima::safedds::memory::IRemovableBitmapSet< T >::operator= ( IRemovableBitmapSet< T > &&  )
protecteddefaultnoexcept

Movement operator allowed.

Returns
IRemovableBitmapSet&.

◆ remove()

template<class T >
virtual void eprosima::safedds::memory::IRemovableBitmapSet< T >::remove ( const T &  item)
pure virtualnoexcept

Removes an element from the bitmap.

Parameters
itemValue to be removed.

Implemented in eprosima::safedds::memory::container::BitmapSet< T, BitmapHelper, NBITS >.

◆ remove_all()

template<class T >
virtual void eprosima::safedds::memory::IRemovableBitmapSet< T >::remove_all ( )
pure virtualnoexcept

Removes all elements from the bitmap.

Implemented in eprosima::safedds::memory::container::BitmapSet< T, BitmapHelper, NBITS >.

◆ remove_range()

template<class T >
virtual void eprosima::safedds::memory::IRemovableBitmapSet< T >::remove_range ( const T &  from,
const T &  to 
)
pure virtualnoexcept

Removes a set of consecutive elements from the bitmap.

Removes all elements in the [from, to) range. Equivalent to for(T i = from; i < to; i++) remove(i);

Parameters
fromStarting value of the range to remove (Will be removed).
toEnding value of the range to remove.

Implemented in eprosima::safedds::memory::container::BitmapSet< T, BitmapHelper, NBITS >.


The documentation for this class was generated from the following file: