Style cleanup.
This commit is contained in:
parent
0e8316cc90
commit
3a1a1e1b82
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2007-2010, Axel Dörfler, axeld@pinc-software.de.
|
||||
* Copyright 2007-2012, Axel Dörfler, axeld@pinc-software.de.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef SUDOKU_FIELD_H
|
||||
@ -37,16 +37,19 @@ public:
|
||||
uint32 Size() const { return fSize; }
|
||||
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;
|
||||
|
||||
void SetValidMaskAt(uint32 x, uint32 y, uint32 validMask);
|
||||
void SetValidMaskAt(uint32 x, uint32 y,
|
||||
uint32 validMask);
|
||||
uint32 ValidMaskAt(uint32 x, uint32 y) const;
|
||||
|
||||
void SetFlagsAt(uint32 x, uint32 y, uint32 flags);
|
||||
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;
|
||||
|
||||
void Dump();
|
||||
@ -62,11 +65,14 @@ private:
|
||||
};
|
||||
|
||||
bool _ValidValueAt(uint32 x, uint32 y) const;
|
||||
void _ComputeValidMask(uint32 x, uint32 y, bool setSolved);
|
||||
void _UpdateValidMaskChanged(uint32 x, uint32 y, bool setSolved);
|
||||
void _ComputeValidMask(uint32 x, uint32 y,
|
||||
bool setSolved);
|
||||
void _UpdateValidMaskChanged(uint32 x, uint32 y,
|
||||
bool setSolved);
|
||||
const field& _FieldAt(uint32 x, uint32 y) const;
|
||||
field& _FieldAt(uint32 x, uint32 y);
|
||||
|
||||
private:
|
||||
uint32 fSize;
|
||||
uint32 fBlockSize;
|
||||
uint32 fMaxMask;
|
||||
|
Loading…
x
Reference in New Issue
Block a user