47 rows_(height), columns_(width), wordsPerRow_(
57 for (
int row = 0; row <
rows_; ++row) {
76 rows_(another.rows_), columns_(another.columns_),
77 wordsPerRow_(another.wordsPerRow_) {
81 for (
int row = 0; row <
rows_; ++row) {
95 for (
int row = 0; row <
rows_; ++row) {
108 for (
int row = 0; row <
rows_; ++row) {
125 std::ostringstream s;
126 for (
int row = 0; row <
rows_; ++row) {
127 for (
int col = 0; col <
columns_; ++col) {
128 s <<
bitAt(col, row) <<
" ";
148 for (
int row = 0; row <
rows_; ++row) {
149 for (
int col = 0; col <
columns_; ++col) {
166 std::string theString =
"";
167 for (
int row = 0; row <
rows_; ++row) {
168 for (
int column = 0; column <
columns_;
170 if (
bitAt(column, row))
194 for (
int row = 0; row <
rows_; ++row) {
195 for (
int column = 0; column <
columns_; ++column) {
196 bool left =
bitAt(column, row);
197 bool right = rightHand.
bitAt(column, row);
199 return static_cast<int>(left) <
static_cast<int>(right);
bool bitAt(int column, int row) const
bool operator==(const BitMatrix &other) const
BitMatrix(int width, int height, bool initialValue)
std::string toDotString() const
std::string toString() const
bool operator<(const BitMatrix &rightHand) const