1 #ifndef PhysicsTools_MVAComputer_BitSet_h 2 #define PhysicsTools_MVAComputer_BitSet_h 53 inline operator bool()
const {
return *
word &
mask; }
63 word(word),
mask((Word_t)1 << bit) {}
80 inline operator bool()
const {
return store <
end; }
83 inline size_t operator () ()
const 112 {
Iterator orig = *
this; ++*
this;
return orig; }
118 begin(begin),
store(begin), end(end),
pos(0)
119 {
if (
store < end && !(*
store & 1)) ++*
this; }
132 store =
new Word_t[words];
133 std::memcpy(
store, orig.
store, words *
sizeof(Word_t));
143 store =
new Word_t[words];
144 std::memset(
store, 0,
sizeof(Word_t) * words);
157 store =
new Word_t[words];
158 std::memcpy(
store, orig.
store, words *
sizeof(Word_t));
192 namespace Calibration {
203 #endif // PhysicsTools_MVAComputer_BitSet_h