Style cleanup.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2007-2010, Axel Dörfler, [email protected].
|
* Copyright 2007-2012, Axel Dörfler, [email protected].
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
#ifndef SUDOKU_FIELD_H
|
#ifndef SUDOKU_FIELD_H
|
||||||
@@ -37,16 +37,19 @@ public:
|
|||||||
uint32 Size() const { return fSize; }
|
uint32 Size() const { return fSize; }
|
||||||
uint32 BlockSize() const { return fBlockSize; }
|
uint32 BlockSize() const { return fBlockSize; }
|
||||||
|
|
||||||
void SetHintMaskAt(uint32 x, uint32 y, uint32 hintMask);
|
void SetHintMaskAt(uint32 x, uint32 y,
|
||||||
|
uint32 hintMask);
|
||||||
uint32 HintMaskAt(uint32 x, uint32 y) const;
|
uint32 HintMaskAt(uint32 x, uint32 y) const;
|
||||||
|
|
||||||
void SetValidMaskAt(uint32 x, uint32 y, uint32 validMask);
|
void SetValidMaskAt(uint32 x, uint32 y,
|
||||||
|
uint32 validMask);
|
||||||
uint32 ValidMaskAt(uint32 x, uint32 y) const;
|
uint32 ValidMaskAt(uint32 x, uint32 y) const;
|
||||||
|
|
||||||
void SetFlagsAt(uint32 x, uint32 y, uint32 flags);
|
void SetFlagsAt(uint32 x, uint32 y, uint32 flags);
|
||||||
uint32 FlagsAt(uint32 x, uint32 y) const;
|
uint32 FlagsAt(uint32 x, uint32 y) const;
|
||||||
|
|
||||||
void SetValueAt(uint32 x, uint32 y, uint32 value, bool setSolved = false);
|
void SetValueAt(uint32 x, uint32 y, uint32 value,
|
||||||
|
bool setSolved = false);
|
||||||
uint32 ValueAt(uint32 x, uint32 y) const;
|
uint32 ValueAt(uint32 x, uint32 y) const;
|
||||||
|
|
||||||
void Dump();
|
void Dump();
|
||||||
@@ -62,11 +65,14 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
bool _ValidValueAt(uint32 x, uint32 y) const;
|
bool _ValidValueAt(uint32 x, uint32 y) const;
|
||||||
void _ComputeValidMask(uint32 x, uint32 y, bool setSolved);
|
void _ComputeValidMask(uint32 x, uint32 y,
|
||||||
void _UpdateValidMaskChanged(uint32 x, uint32 y, bool setSolved);
|
bool setSolved);
|
||||||
|
void _UpdateValidMaskChanged(uint32 x, uint32 y,
|
||||||
|
bool setSolved);
|
||||||
const field& _FieldAt(uint32 x, uint32 y) const;
|
const field& _FieldAt(uint32 x, uint32 y) const;
|
||||||
field& _FieldAt(uint32 x, uint32 y);
|
field& _FieldAt(uint32 x, uint32 y);
|
||||||
|
|
||||||
|
private:
|
||||||
uint32 fSize;
|
uint32 fSize;
|
||||||
uint32 fBlockSize;
|
uint32 fBlockSize;
|
||||||
uint32 fMaxMask;
|
uint32 fMaxMask;
|
||||||
|
|||||||
Reference in New Issue
Block a user