This file contains the declaration of class Index. More...
#include <stdint.h>

Go to the source code of this file.
Classes | |
| struct | cwchess::IndexData |
| The POD base type of class Index. More... | |
| class | cwchess::Index |
| The index of a chess square. More... | |
Namespaces | |
| namespace | cwchess |
A namespace for all chess related objects that are not related to the GUI. | |
Defines | |
| #define | DEBUG_INDEX_INITIALIZATION_AND_RANGE_CHECK 0 |
Functions | |
| bool | cwchess::operator== (IndexData i1, IndexData i2) |
| bool | cwchess::operator!= (IndexData i1, IndexData i2) |
Variables | |
| uint8_t const | cwchess::col_mask = 0x07 |
| A mask for the bits used for the column in IndexData. | |
| uint8_t const | cwchess::row_mask = 0x38 |
| A mask for the bits used for the row in IndexData. | |
| IndexData const | cwchess::ia1 = { 0 } |
| A constant representing the index to square a1. | |
| IndexData const | cwchess::ib1 = { 1 } |
| A constant representing the index to square b1. | |
| IndexData const | cwchess::ic1 = { 2 } |
| A constant representing the index to square c1. | |
| IndexData const | cwchess::id1 = { 3 } |
| A constant representing the index to square d1. | |
| IndexData const | cwchess::ie1 = { 4 } |
| A constant representing the index to square e1. | |
| IndexData const | cwchess::if1 = { 5 } |
| A constant representing the index to square f1. | |
| IndexData const | cwchess::ig1 = { 6 } |
| A constant representing the index to square g1. | |
| IndexData const | cwchess::ih1 = { 7 } |
| A constant representing the index to square h1. | |
| IndexData const | cwchess::ia2 = { 8 } |
| A constant representing the index to square a2. | |
| IndexData const | cwchess::ib2 = { 9 } |
| A constant representing the index to square b2. | |
| IndexData const | cwchess::ic2 = { 10 } |
| A constant representing the index to square c2. | |
| IndexData const | cwchess::id2 = { 11 } |
| A constant representing the index to square d2. | |
| IndexData const | cwchess::ie2 = { 12 } |
| A constant representing the index to square e2. | |
| IndexData const | cwchess::if2 = { 13 } |
| A constant representing the index to square f2. | |
| IndexData const | cwchess::ig2 = { 14 } |
| A constant representing the index to square g2. | |
| IndexData const | cwchess::ih2 = { 15 } |
| A constant representing the index to square h2. | |
| IndexData const | cwchess::ia3 = { 16 } |
| A constant representing the index to square a3. | |
| IndexData const | cwchess::ib3 = { 17 } |
| A constant representing the index to square b3. | |
| IndexData const | cwchess::ic3 = { 18 } |
| A constant representing the index to square c3. | |
| IndexData const | cwchess::id3 = { 19 } |
| A constant representing the index to square d3. | |
| IndexData const | cwchess::ie3 = { 20 } |
| A constant representing the index to square e3. | |
| IndexData const | cwchess::if3 = { 21 } |
| A constant representing the index to square f3. | |
| IndexData const | cwchess::ig3 = { 22 } |
| A constant representing the index to square g3. | |
| IndexData const | cwchess::ih3 = { 23 } |
| A constant representing the index to square h3. | |
| IndexData const | cwchess::ia4 = { 24 } |
| A constant representing the index to square a4. | |
| IndexData const | cwchess::ib4 = { 25 } |
| A constant representing the index to square b4. | |
| IndexData const | cwchess::ic4 = { 26 } |
| A constant representing the index to square c4. | |
| IndexData const | cwchess::id4 = { 27 } |
| A constant representing the index to square d4. | |
| IndexData const | cwchess::ie4 = { 28 } |
| A constant representing the index to square e4. | |
| IndexData const | cwchess::if4 = { 29 } |
| A constant representing the index to square f4. | |
| IndexData const | cwchess::ig4 = { 30 } |
| A constant representing the index to square g4. | |
| IndexData const | cwchess::ih4 = { 31 } |
| A constant representing the index to square h4. | |
| IndexData const | cwchess::ia5 = { 32 } |
| A constant representing the index to square a5. | |
| IndexData const | cwchess::ib5 = { 33 } |
| A constant representing the index to square b5. | |
| IndexData const | cwchess::ic5 = { 34 } |
| A constant representing the index to square c5. | |
| IndexData const | cwchess::id5 = { 35 } |
| A constant representing the index to square d5. | |
| IndexData const | cwchess::ie5 = { 36 } |
| A constant representing the index to square e5. | |
| IndexData const | cwchess::if5 = { 37 } |
| A constant representing the index to square f5. | |
| IndexData const | cwchess::ig5 = { 38 } |
| A constant representing the index to square g5. | |
| IndexData const | cwchess::ih5 = { 39 } |
| A constant representing the index to square h5. | |
| IndexData const | cwchess::ia6 = { 40 } |
| A constant representing the index to square a6. | |
| IndexData const | cwchess::ib6 = { 41 } |
| A constant representing the index to square b6. | |
| IndexData const | cwchess::ic6 = { 42 } |
| A constant representing the index to square c6. | |
| IndexData const | cwchess::id6 = { 43 } |
| A constant representing the index to square d6. | |
| IndexData const | cwchess::ie6 = { 44 } |
| A constant representing the index to square e6. | |
| IndexData const | cwchess::if6 = { 45 } |
| A constant representing the index to square f6. | |
| IndexData const | cwchess::ig6 = { 46 } |
| A constant representing the index to square g6. | |
| IndexData const | cwchess::ih6 = { 47 } |
| A constant representing the index to square h6. | |
| IndexData const | cwchess::ia7 = { 48 } |
| A constant representing the index to square a7. | |
| IndexData const | cwchess::ib7 = { 49 } |
| A constant representing the index to square b7. | |
| IndexData const | cwchess::ic7 = { 50 } |
| A constant representing the index to square c7. | |
| IndexData const | cwchess::id7 = { 51 } |
| A constant representing the index to square d7. | |
| IndexData const | cwchess::ie7 = { 52 } |
| A constant representing the index to square e7. | |
| IndexData const | cwchess::if7 = { 53 } |
| A constant representing the index to square f7. | |
| IndexData const | cwchess::ig7 = { 54 } |
| A constant representing the index to square g7. | |
| IndexData const | cwchess::ih7 = { 55 } |
| A constant representing the index to square h7. | |
| IndexData const | cwchess::ia8 = { 56 } |
| A constant representing the index to square a8. | |
| IndexData const | cwchess::ib8 = { 57 } |
| A constant representing the index to square b8. | |
| IndexData const | cwchess::ic8 = { 58 } |
| A constant representing the index to square c8. | |
| IndexData const | cwchess::id8 = { 59 } |
| A constant representing the index to square d8. | |
| IndexData const | cwchess::ie8 = { 60 } |
| A constant representing the index to square e8. | |
| IndexData const | cwchess::if8 = { 61 } |
| A constant representing the index to square f8. | |
| IndexData const | cwchess::ig8 = { 62 } |
| A constant representing the index to square g8. | |
| IndexData const | cwchess::ih8 = { 63 } |
| A constant representing the index to square h8. | |
| IndexData const | cwchess::index_pre_begin = { 255 } |
| A constant representing 'one before the start'. | |
| IndexData const | cwchess::index_begin = { 0 } |
| A constant representing the 'first' index. | |
| IndexData const | cwchess::index_end = { 64 } |
| A constant representing 'one past the end'. | |
This file contains the declaration of class Index.
Definition in file Index.h.