HOG2
Public Member Functions | Public Attributes | List of all members
RubiksCornerStateBits Class Reference

#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
 

Detailed Description

Definition at line 19 of file RubiksCubeCorners.h.

Constructor & Destructor Documentation

◆ RubiksCornerStateBits()

RubiksCornerStateBits::RubiksCornerStateBits ( )

Definition at line 137 of file RubiksCubeCorners.cpp.

References Reset().

Member Function Documentation

◆ GetCubeInLoc()

int RubiksCornerStateBits::GetCubeInLoc ( unsigned int  whichLoc) const

Definition at line 150 of file RubiksCubeCorners.cpp.

References state.

◆ GetCubeOrientation()

uint64_t RubiksCornerStateBits::GetCubeOrientation ( unsigned int  whichLoc) const

Definition at line 163 of file RubiksCubeCorners.cpp.

References state.

◆ GetFaceInLoc()

int RubiksCornerStateBits::GetFaceInLoc ( unsigned int  whichLoc) const

Definition at line 180 of file RubiksCubeCorners.cpp.

◆ Reset()

void RubiksCornerStateBits::Reset ( )

Definition at line 141 of file RubiksCubeCorners.cpp.

References SetCubeInLoc(), and state.

Referenced by RubiksCornerStateBits().

◆ Rotate()

void RubiksCornerStateBits::Rotate ( uint64_t  a,
uint64_t  b,
uint64_t  c,
uint64_t  d 
)

Definition at line 189 of file RubiksCubeCorners.cpp.

References bits(), d, and state.

◆ SetCubeInLoc()

void RubiksCornerStateBits::SetCubeInLoc ( unsigned int  whichLoc,
int  cube 
)

Definition at line 155 of file RubiksCubeCorners.cpp.

References state.

Referenced by Reset().

◆ SetCubeOrientation()

void RubiksCornerStateBits::SetCubeOrientation ( unsigned int  whichLoc,
int  orient 
)

Definition at line 170 of file RubiksCubeCorners.cpp.

References state.

◆ Swap()

void RubiksCornerStateBits::Swap ( uint64_t  a,
uint64_t  b,
uint64_t  c,
uint64_t  d 
)

Definition at line 207 of file RubiksCubeCorners.cpp.

References bits(), d, and state.

Member Data Documentation

◆ state

uint64_t RubiksCornerStateBits::state

The documentation for this class was generated from the following files: