Dune::array< T, N > Class Template Reference
[Common]
#include <fixedarray.hh>
Detailed Description
template<class T, int N>
class Dune::array< T, N >
Simple fixed size array class.
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 | |
array () | |
Create uninitialized array. | |
array (const T &t) DUNE_DEPRECATED | |
Initialize all components with same entry. | |
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. | |
reference | operator[] (size_type i) |
Component access. | |
const_reference | operator[] (size_type i) const |
Const component access. |
Constructor & Destructor Documentation
template<class T, int N>
Dune::array< T, N >::array | ( | const T & | t | ) | [inline] |
Initialize all components with same entry.
- Deprecated:
- Deprecated because the stl implementation of array doesn't have it
The documentation for this class was generated from the following file: