Scanframe Modular Application
0.1.0
Loading...
Searching...
No Matches
TBitSet.h
Go to the documentation of this file.
1
#pragma once
2
#include <climits>
3
#include <
misc/gen/TSet.h
>
4
5
namespace
sf
6
{
7
13
template
<
size_t
_size>
14
class
TBitSet
15
{
16
public
:
20
TBitSet
();
21
25
bool
has
(
int
bit);
26
30
void
set
(
int
bit);
31
35
void
reset
(
int
bit);
36
40
void
clear
();
41
45
bool
isClear
();
46
47
private
:
51
int
_mask[_size /
sizeof
(int) + 1]{};
52
};
53
54
}
// namespace sf
55
56
#ifndef __JETBRAINS_IDE__
57
// Include all inlined functions and template implementations.
58
#include <misc/gen/TBitSet.hpp>
59
#endif
TSet.h
sf::TBitSet::clear
void clear()
Clears all bits.
sf::TBitSet::has
bool has(int bit)
Tests if a bit has been Set.
sf::TBitSet::reset
void reset(int bit)
Resets a single bit.
sf::TBitSet::set
void set(int bit)
Sets a single bit.
sf::TBitSet::TBitSet
TBitSet()
Default constructor.
sf::TBitSet::isClear
bool isClear()
Returns true if one of the bits has been Set.
sf
Definition
Application.h:10
src
com
misc
gen
TBitSet.h
Generated by
1.16.1