An array of three values of type T, indexed by SG_EMPTY, SG_BLACK and SG_WHITE. More...
#include <SgEBWArray.h>
Public Member Functions | |
SgEBWArray () | |
Constructor. | |
SgEBWArray (const T &val) | |
SgEBWArray (const T &empty, const T &black, const T &white) | |
const T & | operator[] (SgEmptyBlackWhite c) const |
T & | operator[] (SgEmptyBlackWhite c) |
Private Attributes | |
T | m_array [3] |
An array of three values of type T, indexed by SG_EMPTY, SG_BLACK and SG_WHITE.
Stores index SG_EMPTY (=4) at array[0].
Definition at line 17 of file SgEBWArray.h.
SgEBWArray< T >::SgEBWArray | ( | ) |
Constructor.
Constructs elements with the default constructor of type T.
Definition at line 22 of file SgEBWArray.h.
SgEBWArray< T >::SgEBWArray | ( | const T & | val | ) |
Definition at line 26 of file SgEBWArray.h.
SgEBWArray< T >::SgEBWArray | ( | const T & | empty, | |
const T & | black, | |||
const T & | white | |||
) |
Definition at line 33 of file SgEBWArray.h.
References SgEBWArray< T >::m_array, SG_BLACK, SG_EMPTY, and SG_WHITE.
const T& SgEBWArray< T >::operator[] | ( | SgEmptyBlackWhite | c | ) | const |
Definition at line 40 of file SgEBWArray.h.
References SgEBWArray< T >::m_array, SG_BLACK, SG_EMPTY, and SG_WHITE.
T& SgEBWArray< T >::operator[] | ( | SgEmptyBlackWhite | c | ) |
Definition at line 46 of file SgEBWArray.h.
T SgEBWArray< T >::m_array[3] [private] |
Definition at line 53 of file SgEBWArray.h.
Referenced by SgEBWArray< T >::operator[](), and SgEBWArray< T >::SgEBWArray().