Created
March 18, 2014 23:27
-
-
Save wallstop/9632168 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
class BoolArray | |
{ | |
public: | |
BoolArray(); // Default | |
BoolArray(const BoolArray& copy); // Copy constructor | |
BoolArray(BoolArray&& move); // Move constructor | |
~BoolArray(); // Destructor | |
bool get(unsigned int index) const; | |
void set(unsigned int index, bool value); | |
void push_back(bool value); | |
void* data(); | |
const void* data() const; | |
void assign(const void* data); | |
private: | |
unsigned char* m_data; | |
unsigned int m_bitCount; | |
unsigned int m_byteCount; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment