|
dune-common
2.2.0
|
Simple fixed size array class. This replaces std::array, if that is not available. More...
#include <dune/common/array.hh>
Public Types | |
| typedef T | value_type |
| Remember the storage type. | |
| typedef value_type & | reference |
| Reference to an object. | |
| typedef const value_type & | const_reference |
| Const reference to an object. | |
| typedef value_type * | iterator |
| Iterator type. | |
| typedef const value_type * | const_iterator |
| Const iterator type. | |
| typedef std::size_t | size_type |
| Type used for array indices. | |
| typedef std::ptrdiff_t | difference_type |
| Difference type. | |
| typedef std::reverse_iterator < iterator > | reverse_iterator |
| Reverse iterator type. | |
| typedef std::reverse_iterator < const_iterator > | const_reverse_iterator |
| Const reverse iterator type. | |
Public Member Functions | |
| size_type | size () const |
| Return array size. | |
| array< T, N > & | operator= (const T &t) |
| Assign value to all entries. | |
| void | assign (const T &t) |
| Assign value to all entries (according to C++0x the fill method is to be prefered) | |
| void | fill (const T &t) |
| Assign value to all entries (according to C++0x the fill method is to be prefered) | |
| reference | operator[] (size_type i) |
| Component access. | |
| const_reference | operator[] (size_type i) const |
| Const component access. | |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
Public Attributes | |
| T | a [(N > 0)?N:1] |
Simple fixed size array class. This replaces std::array, if that is not available.
| typedef const value_type* Dune::array< T, N >::const_iterator |
Const iterator type.
| typedef const value_type& Dune::array< T, N >::const_reference |
Const reference to an object.
| typedef std::reverse_iterator<const_iterator> Dune::array< T, N >::const_reverse_iterator |
Const reverse iterator type.
| typedef std::ptrdiff_t Dune::array< T, N >::difference_type |
Difference type.
| typedef value_type* Dune::array< T, N >::iterator |
Iterator type.
| typedef value_type& Dune::array< T, N >::reference |
Reference to an object.
| typedef std::reverse_iterator<iterator> Dune::array< T, N >::reverse_iterator |
Reverse iterator type.
| typedef std::size_t Dune::array< T, N >::size_type |
Type used for array indices.
| typedef T Dune::array< T, N >::value_type |
Remember the storage type.
| void Dune::array< T, N >::assign | ( | const T & | t | ) | [inline] |
Assign value to all entries (according to C++0x the fill method is to be prefered)
| iterator Dune::array< T, N >::begin | ( | ) | [inline] |
Referenced by Dune::ParameterTree::Parser< array< T, n > >::parse().
| const_iterator Dune::array< T, N >::begin | ( | ) | const [inline] |
| iterator Dune::array< T, N >::end | ( | ) | [inline] |
Referenced by Dune::ParameterTree::Parser< array< T, n > >::parse().
| const_iterator Dune::array< T, N >::end | ( | ) | const [inline] |
| void Dune::array< T, N >::fill | ( | const T & | t | ) | [inline] |
Assign value to all entries (according to C++0x the fill method is to be prefered)
Referenced by Dune::array< FieldVector< K, COLS >, ROWS >::assign(), and Dune::array< FieldVector< K, COLS >, ROWS >::operator=().
| array<T,N>& Dune::array< T, N >::operator= | ( | const T & | t | ) | [inline] |
Assign value to all entries.
| reference Dune::array< T, N >::operator[] | ( | size_type | i | ) | [inline] |
Component access.
| const_reference Dune::array< T, N >::operator[] | ( | size_type | i | ) | const [inline] |
Const component access.
| size_type Dune::array< T, N >::size | ( | ) | const [inline] |
Return array size.
| T Dune::array< T, N >::a[(N > 0)?N:1] |
1.7.6.1