Empirical
Public Member Functions | Public Attributes | List of all members
emp::Othello_Game< BOARD_SIZE >::Index Struct Reference

#include <Othello.h>

Public Member Functions

 Index ()
 
 Index (size_t _pos)
 
 Index (size_t x, size_t y)
 
 Index (const Index &_in)
 
 operator size_t () const
 
size_t x () const
 
size_t y () const
 
void Set (size_t x, size_t y)
 
bool IsValid () const
 
Index CalcNeighbor (Facing dir)
 

Public Attributes

size_t pos
 

Constructor & Destructor Documentation

template<size_t BOARD_SIZE>
emp::Othello_Game< BOARD_SIZE >::Index::Index ( )
inline
template<size_t BOARD_SIZE>
emp::Othello_Game< BOARD_SIZE >::Index::Index ( size_t  _pos)
inline
template<size_t BOARD_SIZE>
emp::Othello_Game< BOARD_SIZE >::Index::Index ( size_t  x,
size_t  y 
)
inline
template<size_t BOARD_SIZE>
emp::Othello_Game< BOARD_SIZE >::Index::Index ( const Index _in)
inline

Member Function Documentation

template<size_t BOARD_SIZE>
Index emp::Othello_Game< BOARD_SIZE >::Index::CalcNeighbor ( Facing  dir)
inline
template<size_t BOARD_SIZE>
bool emp::Othello_Game< BOARD_SIZE >::Index::IsValid ( ) const
inline
template<size_t BOARD_SIZE>
emp::Othello_Game< BOARD_SIZE >::Index::operator size_t ( ) const
inline
template<size_t BOARD_SIZE>
void emp::Othello_Game< BOARD_SIZE >::Index::Set ( size_t  x,
size_t  y 
)
inline
template<size_t BOARD_SIZE>
size_t emp::Othello_Game< BOARD_SIZE >::Index::x ( ) const
inline
template<size_t BOARD_SIZE>
size_t emp::Othello_Game< BOARD_SIZE >::Index::y ( ) const
inline

Member Data Documentation

template<size_t BOARD_SIZE>
size_t emp::Othello_Game< BOARD_SIZE >::Index::pos

The documentation for this struct was generated from the following file: