HOG2
|
#include <RubiksCubeCorners.h>
Public Member Functions | |
RubiksCornerStateBits () | |
void | Reset () |
int | GetCubeInLoc (unsigned int whichLoc) const |
void | SetCubeInLoc (unsigned int whichLoc, int cube) |
uint64_t | GetCubeOrientation (unsigned int whichLoc) const |
void | SetCubeOrientation (unsigned int whichLoc, int orient) |
int | GetFaceInLoc (unsigned int whichLoc) const |
void | Rotate (uint64_t a, uint64_t b, uint64_t c, uint64_t d) |
void | Swap (uint64_t a, uint64_t b, uint64_t c, uint64_t d) |
Public Attributes | |
uint64_t | state |
Definition at line 19 of file RubiksCubeCorners.h.
RubiksCornerStateBits::RubiksCornerStateBits | ( | ) |
Definition at line 137 of file RubiksCubeCorners.cpp.
References Reset().
int RubiksCornerStateBits::GetCubeInLoc | ( | unsigned int | whichLoc | ) | const |
Definition at line 150 of file RubiksCubeCorners.cpp.
References state.
uint64_t RubiksCornerStateBits::GetCubeOrientation | ( | unsigned int | whichLoc | ) | const |
Definition at line 163 of file RubiksCubeCorners.cpp.
References state.
int RubiksCornerStateBits::GetFaceInLoc | ( | unsigned int | whichLoc | ) | const |
Definition at line 180 of file RubiksCubeCorners.cpp.
void RubiksCornerStateBits::Reset | ( | ) |
Definition at line 141 of file RubiksCubeCorners.cpp.
References SetCubeInLoc(), and state.
Referenced by RubiksCornerStateBits().
void RubiksCornerStateBits::Rotate | ( | uint64_t | a, |
uint64_t | b, | ||
uint64_t | c, | ||
uint64_t | d | ||
) |
Definition at line 189 of file RubiksCubeCorners.cpp.
void RubiksCornerStateBits::SetCubeInLoc | ( | unsigned int | whichLoc, |
int | cube | ||
) |
void RubiksCornerStateBits::SetCubeOrientation | ( | unsigned int | whichLoc, |
int | orient | ||
) |
Definition at line 170 of file RubiksCubeCorners.cpp.
References state.
void RubiksCornerStateBits::Swap | ( | uint64_t | a, |
uint64_t | b, | ||
uint64_t | c, | ||
uint64_t | d | ||
) |
Definition at line 207 of file RubiksCubeCorners.cpp.
uint64_t RubiksCornerStateBits::state |
Definition at line 35 of file RubiksCubeCorners.h.
Referenced by GetCubeInLoc(), GetCubeOrientation(), std::hash< RubiksCornerStateBits >::operator()(), operator==(), Reset(), Rotate(), SetCubeInLoc(), SetCubeOrientation(), and Swap().