Dune Core Modules (2.3.1)

Dune::array< T, N > Class Template Reference

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_typereference
 Reference to an object.
 
typedef const value_typeconst_reference
 Const reference to an object.
 
typedef value_typeiterator
 Iterator type.
 
typedef const value_typeconst_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< iteratorreverse_iterator
 Reverse iterator type.
 
typedef std::reverse_iterator< const_iteratorconst_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) DUNE_DEPRECATED
 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.
 

Detailed Description

template<class T, size_t N>
class Dune::array< T, N >

Simple fixed size array class. This replaces std::array, if that is not available.


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 11, 23:29, 2024)