highlighter application
1.1
HCE project utils : highlighter
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
BitsetBase.hpp
Go to the documentation of this file.
1
8
#ifndef _BITSET_BASE_HPP
9
#define _BITSET_BASE_HPP
10
11
#include <bitset>
12
13
namespace
HCE
14
{
15
16
17
template
<
size_t
N>
18
class
BitsetBase
19
{
20
protected
:
21
std::bitset<N>
_bitset
;
22
public
:
23
BitsetBase<N>
() {}
24
virtual
~
BitsetBase<N>
() = 0;
25
public
:
26
virtual
const
unsigned
long
getMask
()
const
{
return
BitsetBase<N>::_bitset
.to_ulong(); }
27
virtual
void
setMask
(
const
unsigned
short
& mask) {
if
(
BitsetBase<N>::_bitset
.size()>mask)
BitsetBase<N>::_bitset
.set( mask ); }
28
};
29
30
template
<
size_t
N>
31
BitsetBase<N>::~BitsetBase
() {}
32
33
34
}
35
36
37
#endif
sources
utils
refine
src
BitsetBase.hpp
Generated on Mon Jan 13 2014 16:16:17 for highlighter application by
1.8.1.2