#include <base/Application.h>
#include <base/collection/BitSet.h>
#include <base/collection/Functor.h>
#include <base/Functor.h>
#include <base/TypeInfo.h>
using namespace com::azure::dev::base;
private:
static const unsigned int MAJOR_VERSION = 1;
static const unsigned int MINOR_VERSION = 0;
public:
BitSetApplication()
{
}
void main() {
fout << getFormalName() << " version "
<< MAJOR_VERSION << '.' << MINOR_VERSION << EOL
<< "The Base Framework (Test Suite)" << EOL
<< ENDL;
fout <<
"Size: " << bitSet.
getSize() << ENDL;
bitSet[256] = !bitSet[256];
bitSet[512] = true;
{
fout << "Bits: ";
fout << (enu.
next() ?
'1' :
'0');
}
fout << ENDL;
}
bitSet >>= 128 - 1;
bitSet <<= 128 - 2;
fout <<
"Size: " << bitSet.
getSize() << ENDL;
{
bool value = false;
value = !value;
}
}
{
fout << "Bits: ";
fout << (enu.
next() ?
'1' :
'0');
}
fout << ENDL;
}
}
};
APPLICATION_STUB(BitSetApplication);