Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SgArray< T, SIZE > Class Template Reference

#include <SgArray.h>

Inheritance diagram for SgArray< T, SIZE >:

Inheritance graph
[legend]
List of all members.

Detailed Description

template<typename T, int SIZE>
class SgArray< T, SIZE >

Static array.

Wrapper class around a C style array. Uses assertions for indices in range in debug mode.

Deprecated:
Use boost::array instead

Definition at line 87 of file SgArray.h.

Public Member Functions

 SgArray ()
 SgArray (const SgArray &array)
 SgArray (const T &val)
SgArrayoperator= (const SgArray &array)
T & operator[] (int index)
const T & operator[] (int index) const
SgArrayoperator *= (T val)
void Fill (const T &val)

Private Attributes

m_array [SIZE]

Friends

class Iterator
class NonConstIterator

Classes

class  Iterator
 Local const iterator. More...
class  NonConstIterator
 Local non-const iterator. More...


Constructor & Destructor Documentation

template<typename T, int SIZE>
SgArray< T, SIZE >::SgArray (  ) 

Definition at line 201 of file SgArray.h.

template<typename T, int SIZE>
SgArray< T, SIZE >::SgArray ( const SgArray< T, SIZE > &  array  ) 

Definition at line 206 of file SgArray.h.

References SG_ASSERT.

template<typename T, int SIZE>
SgArray< T, SIZE >::SgArray ( const T &  val  )  [explicit]

Definition at line 213 of file SgArray.h.

References SgArray< T, SIZE >::Fill().


Member Function Documentation

template<typename T, int SIZE>
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().

template<typename T, int SIZE>
SgArray< T, SIZE > & SgArray< T, SIZE >::operator *= ( val  ) 

Definition at line 243 of file SgArray.h.

References SgArray< T, SIZE >::m_array.

template<typename T, int SIZE>
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.

template<typename T, int SIZE>
const T & SgArray< T, SIZE >::operator[] ( int  index  )  const

Definition at line 235 of file SgArray.h.

References SgArray< T, SIZE >::m_array, and SG_ASSERT.

template<typename T, int SIZE>
T & SgArray< T, SIZE >::operator[] ( int  index  ) 

Definition at line 227 of file SgArray.h.

References SgArray< T, SIZE >::m_array, and SG_ASSERT.


Friends And Related Function Documentation

template<typename T, int SIZE>
friend class Iterator [friend]

Definition at line 143 of file SgArray.h.

template<typename T, int SIZE>
friend class NonConstIterator [friend]

Definition at line 144 of file SgArray.h.


Member Data Documentation

template<typename T, int SIZE>
T SgArray< T, SIZE >::m_array[SIZE] [private]

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[]().


The documentation for this class was generated from the following file:


17 Jun 2010 Doxygen 1.4.7