Static array. More...
#include <SgArray.h>

Classes | |
| class | Iterator |
| Local const iterator. More... | |
| class | NonConstIterator |
| Local non-const iterator. More... | |
Public Member Functions | |
| SgArray () | |
| SgArray (const SgArray &array) | |
| SgArray (const T &val) | |
| SgArray & | operator= (const SgArray &array) |
| T & | operator[] (int index) |
| const T & | operator[] (int index) const |
| SgArray & | operator*= (T val) |
| void | Fill (const T &val) |
Private Attributes | |
| T | m_array [SIZE] |
Friends | |
| class | Iterator |
| class | NonConstIterator |
Static array.
Wrapper class around a C style array. Uses assertions for indices in range in debug mode.
Definition at line 84 of file SgArray.h.
Definition at line 210 of file SgArray.h.
References SgArray< T, SIZE >::Fill().
| void SgArray< T, SIZE >::Fill | ( | const T & | val | ) |
Definition at line 249 of file SgArray.h.
References SgArray< T, SIZE >::m_array.
Referenced by SgBoardConst::BoardConstImpl::BoardConstImpl(), SgMarker::Init(), SgPointUtil::PointToCol::PointToCol(), SgPointUtil::PointToRow::PointToRow(), and SgArray< T, SIZE >::SgArray().
Definition at line 240 of file SgArray.h.
References SgArray< T, SIZE >::m_array.
| SgArray< T, SIZE > & SgArray< T, SIZE >::operator= | ( | const SgArray< T, SIZE > & | array | ) |
Definition at line 216 of file SgArray.h.
References SgArray< T, SIZE >::m_array, and SG_ASSERT.
| const T & SgArray< T, SIZE >::operator[] | ( | int | index | ) | const |
Definition at line 232 of file SgArray.h.
References SgArray< T, SIZE >::m_array, and SG_ASSERT.
| T & SgArray< T, SIZE >::operator[] | ( | int | index | ) |
Definition at line 224 of file SgArray.h.
References SgArray< T, SIZE >::m_array, and SG_ASSERT.
friend class Iterator [friend] |
friend class NonConstIterator [friend] |
Definition at line 143 of file SgArray.h.
Referenced by SgArray< T, SIZE >::Fill(), SgArray< T, SIZE >::operator*=(), SgArray< T, SIZE >::operator=(), and SgArray< T, SIZE >::operator[]().