An array of two values of type T, indexed by SG_BLACK and SG_WHITE. More...
#include <SgBWArray.h>
Public Member Functions | |
SgBWArray () | |
Constructor. | |
SgBWArray (const T &val) | |
SgBWArray (const T &black, const T &white) | |
bool | operator== (const SgBWArray &bwArray) const |
bool | operator!= (const SgBWArray &bwArray) const |
T & | operator[] (SgBlackWhite color) |
const T & | operator[] (SgBlackWhite color) const |
Private Member Functions | |
BOOST_STATIC_ASSERT (SG_BLACK==0) | |
BOOST_STATIC_ASSERT (SG_WHITE==1) | |
Private Attributes | |
T | m_array [2] |
An array of two values of type T, indexed by SG_BLACK and SG_WHITE.
Definition at line 16 of file SgBWArray.h.
Constructor.
Constructs elements with the default constructor of type T.
Definition at line 51 of file SgBWArray.h.
Definition at line 56 of file SgBWArray.h.
References SgBWArray< T >::m_array, SG_BLACK, and SG_WHITE.
Definition at line 63 of file SgBWArray.h.
References SgBWArray< T >::m_array, SG_BLACK, and SG_WHITE.
Definition at line 77 of file SgBWArray.h.
References SgBWArray< T >::operator==().
Definition at line 70 of file SgBWArray.h.
References SgBWArray< T >::m_array, SG_BLACK, and SG_WHITE.
Referenced by SgBWArray< T >::operator!=().
T & SgBWArray< T >::operator[] | ( | SgBlackWhite | color | ) |
Definition at line 83 of file SgBWArray.h.
References SgBWArray< T >::m_array, and SG_ASSERT_BW.
const T & SgBWArray< T >::operator[] | ( | SgBlackWhite | color | ) | const |
Definition at line 90 of file SgBWArray.h.
References SgBWArray< T >::m_array, and SG_ASSERT_BW.
Definition at line 47 of file SgBWArray.h.
Referenced by SgBWArray< T >::operator==(), SgBWArray< T >::operator[](), and SgBWArray< T >::SgBWArray().