LocalArray2d Class Template Reference

Inheritance diagram for LocalArray2d:

LocalTorus List of all members.

Detailed Description

template<class T, int Rows, int Columns>
class LocalArray2d< T, Rows, Columns >

Author:
Bill Smart

Version:
1.0
Date:
May 2005

Definition at line 126 of file LocalArray.H.

STL integration

typedef T value_type
typedef value_typepointer
typedef const value_typeconst_pointer
typedef value_typereference
typedef const value_typeconst_reference
typedef ptrdiff_t difference_type
typedef size_t size_type
typedef pointer iterator
typedef const_pointer const_iterator
typedef std::reverse_iterator<
iterator
reverse_iterator
typedef std::reverse_iterator<
const_iterator
const_reverse_iterator
iterator begin ()
iterator end ()
const_iterator begin () const
const_iterator end () const
reverse_iterator rbegin ()
reverse_iterator rend ()
const_reverse_iterator rbegin () const
const_reverse_iterator rend () const

Public Member Functions

 LocalArray2d ()
 LocalArray2d (const T &value)
 LocalArray2d (const LocalArray2d< T, Rows, Columns > &array)
 ~LocalArray2d ()
Assignment
LocalArray2d< T, Rows, Columns > & operator= (const LocalArray2d< T, Rows, Columns > &array)
 Assign one array to another.
LocalArray2d< T, Rows, Columns > & operator= (const T &value)
 Assign a value to all elements of the array.
Element access
reference operator() (const size_type row, const size_type column)
const_reference operator() (const size_type row, const size_type column) const
Sizes
size_type size () const
size_type rows () const
size_type columns () const

Private Attributes

m_data [Rows *Columns]


Member Typedef Documentation

typedef T value_type

Reimplemented in LocalTorus.

Definition at line 155 of file LocalArray.H.

typedef value_type* pointer

Reimplemented in LocalTorus.

Definition at line 157 of file LocalArray.H.

typedef const value_type* const_pointer

Reimplemented in LocalTorus.

Definition at line 158 of file LocalArray.H.

typedef value_type& reference

Reimplemented in LocalTorus.

Definition at line 159 of file LocalArray.H.

typedef const value_type& const_reference

Reimplemented in LocalTorus.

Definition at line 160 of file LocalArray.H.

typedef ptrdiff_t difference_type

Reimplemented in LocalTorus.

Definition at line 162 of file LocalArray.H.

typedef size_t size_type

Reimplemented in LocalTorus.

Definition at line 163 of file LocalArray.H.

typedef pointer iterator

Reimplemented in LocalTorus.

Definition at line 165 of file LocalArray.H.

typedef const_pointer const_iterator

Reimplemented in LocalTorus.

Definition at line 166 of file LocalArray.H.

typedef std::reverse_iterator<iterator> reverse_iterator

Reimplemented in LocalTorus.

Definition at line 174 of file LocalArray.H.

typedef std::reverse_iterator<const_iterator> const_reverse_iterator

Reimplemented in LocalTorus.

Definition at line 175 of file LocalArray.H.


Constructor & Destructor Documentation

LocalArray2d (  )  [inline]

Allocate an array.

Definition at line 129 of file LocalArray.H.

LocalArray2d ( const T &  value  )  [inline]

Allocate an array, and initialize each element to a particular value.

Parameters:
[in] value The initial value for each element.

Definition at line 133 of file LocalArray.H.

References m_data.

LocalArray2d ( const LocalArray2d< T, Rows, Columns > &  array  )  [inline]

Definition at line 135 of file LocalArray.H.

References m_data.

~LocalArray2d (  )  [inline]

Definition at line 137 of file LocalArray.H.


Member Function Documentation

LocalArray2d<T, Rows, Columns>& operator= ( const LocalArray2d< T, Rows, Columns > &  array  )  [inline]

Assign one array to another.

Parameters:
[in] array The array to be assigned from.
Returns:
A reference to the modified array.

Definition at line 144 of file LocalArray.H.

References m_data.

LocalArray2d<T, Rows, Columns>& operator= ( const T &  value  )  [inline]

Assign a value to all elements of the array.

Parameters:
[in] value The value to be assigned.
Returns:
A reference to the modified array.

Definition at line 149 of file LocalArray.H.

References m_data.

iterator begin (  )  [inline]

Definition at line 168 of file LocalArray.H.

References m_data.

Referenced by rend().

iterator end (  )  [inline]

Definition at line 169 of file LocalArray.H.

References m_data.

Referenced by rbegin().

const_iterator begin (  )  const [inline]

Definition at line 171 of file LocalArray.H.

References m_data.

const_iterator end (  )  const [inline]

Definition at line 172 of file LocalArray.H.

References m_data.

reverse_iterator rbegin (  )  [inline]

Definition at line 177 of file LocalArray.H.

References end().

reverse_iterator rend (  )  [inline]

Definition at line 178 of file LocalArray.H.

References begin().

const_reverse_iterator rbegin (  )  const [inline]

Definition at line 180 of file LocalArray.H.

References end().

const_reverse_iterator rend (  )  const [inline]

Definition at line 181 of file LocalArray.H.

References begin().

reference operator() ( const size_type  row,
const size_type  column 
) [inline]

Reimplemented in LocalTorus.

Definition at line 186 of file LocalArray.H.

References assert_range, and m_data.

const_reference operator() ( const size_type  row,
const size_type  column 
) const [inline]

Reimplemented in LocalTorus.

Definition at line 188 of file LocalArray.H.

References assert_range, and m_data.

size_type size (  )  const [inline]

Definition at line 194 of file LocalArray.H.

size_type rows (  )  const [inline]

Definition at line 195 of file LocalArray.H.

Referenced by LocalTorus::operator()().

size_type columns (  )  const [inline]

Definition at line 196 of file LocalArray.H.

Referenced by LocalTorus::operator()().


Member Data Documentation

T m_data[Rows *Columns] [private]

Definition at line 200 of file LocalArray.H.

Referenced by begin(), end(), LocalArray2d(), operator()(), and operator=().


The documentation for this class was generated from the following file:
Generated on Thu Feb 1 15:31:55 2007 for WURDE by  doxygen 1.5.1