#include <SgBWArray.h>
Definition at line 17 of file 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] |
Constructor.
Constructs elements with the default constructor of type T.
Definition at line 53 of file SgBWArray.h.
Definition at line 58 of file SgBWArray.h.
References SgBWArray< T >::m_array, SG_BLACK, and SG_WHITE.
Definition at line 65 of file SgBWArray.h.
References SgBWArray< T >::m_array, SG_BLACK, and SG_WHITE.
Definition at line 72 of file SgBWArray.h.
References SgBWArray< T >::m_array, SG_BLACK, and SG_WHITE.
Referenced by SgBWArray< T >::operator!=().
| const T & SgBWArray< T >::operator[] | ( | SgBlackWhite | color | ) | const |
| T & SgBWArray< T >::operator[] | ( | SgBlackWhite | color | ) |
Definition at line 49 of file SgBWArray.h.
Referenced by SgBWArray< T >::operator==(), SgBWArray< T >::operator[](), and SgBWArray< T >::SgBWArray().