Belofte  version 2.1.5
A promising chess program using the UCI or Winboard interface
bCase Class Referencefinal

position on board, defined as 255 if invalid used primarily to compose a move or a source or destination field does not contain the piece that occupies it More...

Public Member Functions

 bCase ()
 
 bCase (bCase &&) noexcept
 
 bCase (case_t c)
 
 bCase (std::string const &s)
 
 bCase (column_t const c, rank_t const r)
 
 ~bCase ()
 
 bCase (bCase const &)=default
 
bCaseoperator= (bCase const &)=default
 
bCaseoperator= (bCase &&)=default
 
bCaseoperator= (std::string const &s)
 
 operator std::string () const
 
bool operator== (bCase const rhs) const
 
column_t column () const
 
rank_t rank () const
 
case_t getCaseT () const
 

Static Public Member Functions

static constexpr case_t coordToCase (column_t const c, rank_t const r)
 
static constexpr column_t column (case_t const c)
 
static constexpr rank_t rank (case_t const c)
 

Friends

std::ostream & operator<< (std::ostream &os, bCase const &bc)
 

Detailed Description

position on board, defined as 255 if invalid used primarily to compose a move or a source or destination field does not contain the piece that occupies it

Definition at line 17 of file move.h.

Constructor & Destructor Documentation

◆ bCase() [1/6]

bCase::bCase ( )

Definition at line 13 of file move.cpp.

◆ bCase() [2/6]

bCase::bCase ( bCase &&  )
noexcept

◆ bCase() [3/6]

bCase::bCase ( case_t  c)
explicit

Definition at line 17 of file move.cpp.

◆ bCase() [4/6]

bCase::bCase ( std::string const &  s)
explicit

Definition at line 28 of file move.cpp.

+ Here is the call graph for this function:

◆ bCase() [5/6]

bCase::bCase ( column_t const  c,
rank_t const  r 
)

Definition at line 22 of file move.cpp.

◆ ~bCase()

bCase::~bCase ( )

Definition at line 35 of file move.cpp.

◆ bCase() [6/6]

bCase::bCase ( bCase const &  )
default

Member Function Documentation

◆ operator=() [1/3]

bCase& bCase::operator= ( bCase const &  )
default

◆ operator=() [2/3]

bCase& bCase::operator= ( bCase &&  )
default

◆ operator=() [3/3]

bCase & bCase::operator= ( std::string const &  s)

Definition at line 39 of file move.cpp.

+ Here is the call graph for this function:

◆ operator std::string()

bCase::operator std::string ( ) const

Definition at line 66 of file move.cpp.

◆ operator==()

bool bCase::operator== ( bCase const  rhs) const

Definition at line 47 of file move.cpp.

◆ column() [1/2]

◆ rank() [1/2]

◆ getCaseT()

case_t bCase::getCaseT ( ) const

Definition at line 51 of file move.cpp.

◆ coordToCase()

◆ column() [2/2]

static constexpr column_t bCase::column ( case_t const  c)
inlinestaticconstexpr

Definition at line 43 of file move.h.

◆ rank() [2/2]

static constexpr rank_t bCase::rank ( case_t const  c)
inlinestaticconstexpr

Definition at line 46 of file move.h.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
bCase const &  bc 
)
friend

Definition at line 72 of file move.cpp.