Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::TBitSet< _size > Class Template Reference

Template for creating large memory inexpensive bitmasks or bit sets. More...

#include <TBitSet.h>

Public Member Functions

 TBitSet ()
 Default constructor.
 
bool has (int bit)
 Tests if a bit has been Set.
 
void set (int bit)
 Sets a single bit.
 
void reset (int bit)
 Resets a single bit.
 
void clear ()
 Clears all bits.
 
bool isClear ()
 Returns true if one of the bits has been Set.
 

Detailed Description

template<size_t _size>
class sf::TBitSet< _size >

Template for creating large memory inexpensive bitmasks or bit sets.

Template Parameters
_sizeAmount of bits needed.

Constructor & Destructor Documentation

◆ TBitSet()

template<size_t Size>
sf::TBitSet< Size >::TBitSet ( )
inline

Default constructor.

Member Function Documentation

◆ clear()

template<size_t Size>
void sf::TBitSet< Size >::clear ( )
inline

Clears all bits.

◆ has()

template<size_t Size>
bool sf::TBitSet< Size >::has ( int  bit)
inline

Tests if a bit has been Set.

◆ isClear()

template<size_t Size>
bool sf::TBitSet< Size >::isClear ( )

Returns true if one of the bits has been Set.

◆ reset()

template<size_t Size>
void sf::TBitSet< Size >::reset ( int  bit)
inline

Resets a single bit.

◆ set()

template<size_t Size>
void sf::TBitSet< Size >::set ( int  bit)
inline

Sets a single bit.


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