#include <SgArray.h>
Inheritance diagram for SgArray< T, SIZE >:

Wrapper class around a C style array. Uses assertions for indices in range in debug mode.
Definition at line 87 of file SgArray.h.
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 |
Classes | |
| class | Iterator |
| Local const iterator. More... | |
| class | NonConstIterator |
| Local non-const iterator. More... | |
| void SgArray< T, SIZE >::Fill | ( | const T & | val | ) |
Definition at line 252 of file SgArray.h.
References SgArray< T, SIZE >::m_array.
Referenced by SgBoardConst::BoardConstImpl::BoardConstImpl(), SgMarker::Init(), and SgArray< T, SIZE >::SgArray().
| SgArray< T, SIZE > & SgArray< T, SIZE >::operator= | ( | const SgArray< T, SIZE > & | array | ) |
Definition at line 219 of file SgArray.h.
References SgArrayAssign< T, SIZE >::Assign(), SgArray< T, SIZE >::m_array, and SG_ASSERT.
| const T & SgArray< T, SIZE >::operator[] | ( | int | index | ) | const |
| T & SgArray< T, SIZE >::operator[] | ( | int | index | ) |
friend class Iterator [friend] |
friend class NonConstIterator [friend] |
Definition at line 146 of file SgArray.h.
Referenced by SgArray< T, SIZE >::Fill(), SgArray< T, SIZE >::operator *=(), SgArray< T, SIZE >::operator=(), and SgArray< T, SIZE >::operator[]().